CVE-2024-58134
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
- State
- Published
- Severity
- 8.1 High
- Published
- May 3, 2025
- Updated
- Oct 20, 2025
- Reserved
- Apr 7, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 8.1 High | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | CISA-ADP |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
MojoliciousSRI |
|
References
- https://github.com/mojolicious/mojo/pull/1791issue-tracking
- https://github.com/mojolicious/mojo/pull/2200issue-tracking
- https://www.synacktiv.com/publications/baking-mojolicious-cookiestechnical-description
- https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802technical-description
- https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51related
- https://github.com/hashcat/hashcat/pull/4090exploit
- https://lists.debian.org/debian-perl/2025/05/msg00016.htmlmailing-list
- https://lists.debian.org/debian-perl/2025/05/msg00017.htmlmailing-list
- https://lists.debian.org/debian-perl/2025/05/msg00018.htmlmailing-list
- https://github.com/mojolicious/mojo/pull/2252issue-tracking
- https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-meantechnical-description
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.