CVE-2024-58134
HIGH EPSS 35.3%
Published May 3, 20251y ago · Modified Jun 17, 20262w ago
8.1 CVSS 3.1
Published May 3, 2025 1y ago
Last Modified Jun 17, 2026 2w ago
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability None
Threat Intelligence
EPSS Exploit Probability
35.3% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 2
CWE-321
CWE-331
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| mojolicious | mojolicious | * | ≥0.999922 – ≤9.40 |
References 11
- docs.mojolicious.org https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
- github.com https://github.com/hashcat/hashcat/pull/4090
- github.com https://github.com/mojolicious/mojo/pull/1791
- github.com https://github.com/mojolicious/mojo/pull/2200
- github.com https://github.com/mojolicious/mojo/pull/2252
- lists.debian.org https://lists.debian.org/debian-perl/2025/05/msg00016.html
- lists.debian.org https://lists.debian.org/debian-perl/2025/05/msg00017.html
- lists.debian.org https://lists.debian.org/debian-perl/2025/05/msg00018.html
- medium.com https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802
- metacpan.org https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51
- synacktiv.com https://www.synacktiv.com/publications/baking-mojolicious-cookies
Remediation
- github.com https://github.com/hashcat/hashcat/pull/4090
- github.com https://github.com/mojolicious/mojo/pull/1791
- github.com https://github.com/mojolicious/mojo/pull/2200