CVE-2024-58134
These predictable default secrets can be exploited by an attacker to forge session cookies.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.52%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 3.1
- 8.1 HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS
- 0.52% probability · 43th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-321, CWE-331
- Affected
- mojolicious/mojolicious
- Source
- 9b29abf9-4ab0-4765-b253-1875cd9b441e
References
- https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
- https://github.com/hashcat/hashcat/pull/4090Issue Tracking, Patch
- https://github.com/mojolicious/mojo/pull/1791Issue Tracking, Patch
- https://github.com/mojolicious/mojo/pull/2200Issue Tracking, Patch
- https://github.com/mojolicious/mojo/pull/2252
- https://lists.debian.org/debian-perl/2025/05/msg00016.html
- https://lists.debian.org/debian-perl/2025/05/msg00017.html
- https://lists.debian.org/debian-perl/2025/05/msg00018.html
- https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802Third Party Advisory
- https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51Product
- https://www.synacktiv.com/publications/baking-mojolicious-cookiesExploit
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.