CVE-2024-58134 json
Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the application's class name, as an HMAC session cookie secret by default
published 2025-05-03 18 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-13360
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
Summary
Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the application's class name, as an HMAC session cookie secret by default.
These predictable default secrets can be exploited by an attacker 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.
Patch / fix
- github.com/mojolicious/mojo#1791 pull request
- github.com/mojolicious/mojo#2200 pull request
- github.com/hashcat/hashcat#4090 pull request
- github.com/mojolicious/mojo#2252 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-58134 updated cvss 6.5
Mojolicious: 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
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 17 mo ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hashcat/hashcat/pull/4090 referenced PoC, tagged "exploit" by a source, unverified
- synacktiv.com https://www.synacktiv.com/publications/baking-mojolicious-cookies referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected products
- SRI Mojolicious
Classification
References
-
github.com
/mojolicious/mojo/pull/1791
issue-tracking, patch
-
github.com
/mojolicious/mojo/pull/2200
issue-tracking, patch
-
github.com
/hashcat/hashcat/pull/4090
exploit, issue-tracking, patch
-
github.com
/mojolicious/mojo/pull/2252
issue-tracking
-
synacktiv.com
/publications/baking-mojolicious-cookies
technical-description, exploit
-
medium.com
/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-1
technical-description, third-party-advisory
-
metacpan.org
/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51
related, product
-
lists.debian.org
/debian-perl/2025/05/msg00016.html
mailing-list
-
lists.debian.org
/debian-perl/2025/05/msg00017.html
mailing-list
-
lists.debian.org
/debian-perl/2025/05/msg00018.html
mailing-list
-
docs.mojolicious.org
/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
technical-description
Sources
- CVE List CVE-2024-58134
- NVD CVE-2024-58134
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.