8.1
HIGH
CVE-2024-58134
Mojolicious Default HMAC Session Secret Vulnerability
Description

Mojolicious versions from 0.999922 through 9.40 for Perl uses a hard coded string, or the application's class name, as a HMAC session secret by default. These predictable default secrets can be exploited to forge session cookies. An attacker who knows or guesses the secret could compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user’s session.

INFO

Published Date :

May 3, 2025, 4:15 p.m.

Last Modified :

June 17, 2025, 2:15 p.m.

Source :

9b29abf9-4ab0-4765-b253-1875cd9b441e

Remotely Exploitable :

Yes !

Impact Score :

5.2

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2024-58134 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Mojolicious mojolicious
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-58134 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-58134 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jun. 17, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:mojolicious:mojolicious:*:*:*:*:*:perl:*:* versions from (including) 0.999922 up to (including) 9.40
    Added Reference Type CPANSec: https://github.com/hashcat/hashcat/pull/4090 Types: Issue Tracking, Patch
    Added Reference Type CPANSec: https://github.com/mojolicious/mojo/pull/1791 Types: Issue Tracking, Patch
    Added Reference Type CPANSec: https://github.com/mojolicious/mojo/pull/2200 Types: Issue Tracking, Patch
    Added Reference Type CPANSec: https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802 Types: Third Party Advisory
    Added Reference Type CPANSec: https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51 Types: Product
    Added Reference Type CPANSec: https://www.synacktiv.com/publications/baking-mojolicious-cookies Types: Exploit
  • CVE Modified by 9b29abf9-4ab0-4765-b253-1875cd9b441e

    May. 12, 2025

    Action Type Old Value New Value
    Changed Description Mojolicious versions from 0.999922 through 9.39 for Perl uses a hard coded string, or the application's class name, as a HMAC session secret by default. These predictable default secrets can be exploited to forge session cookies. An attacker who knows or guesses the secret could compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user’s session. Mojolicious versions from 0.999922 through 9.40 for Perl uses a hard coded string, or the application's class name, as a HMAC session secret by default. These predictable default secrets can be exploited to forge session cookies. An attacker who knows or guesses the secret could compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user’s session.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    May. 12, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • New CVE Received by 9b29abf9-4ab0-4765-b253-1875cd9b441e

    May. 03, 2025

    Action Type Old Value New Value
    Added Description Mojolicious versions from 0.999922 through 9.39 for Perl uses a hard coded string, or the application's class name, as a HMAC session secret by default. These predictable default secrets can be exploited to forge session cookies. An attacker who knows or guesses the secret could compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user’s session.
    Added CWE CWE-331
    Added CWE CWE-321
    Added Reference https://github.com/hashcat/hashcat/pull/4090
    Added Reference https://github.com/mojolicious/mojo/pull/1791
    Added Reference https://github.com/mojolicious/mojo/pull/2200
    Added Reference https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802
    Added Reference https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51
    Added Reference https://www.synacktiv.com/publications/baking-mojolicious-cookies
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-58134 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-58134 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jun. 18, 2025 18:50