CVE-2024-58134 in Mojolicious
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 signat...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Mojolicious | Mojolicious | ≥ 0.999922, ≤ 9.40 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-58134 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-040221-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| Published | 2025-05-03 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-321: CWE-321
CWE-331: CWE-331
Related attack patterns (CAPEC)
CAPEC-59 Session Credential Falsification through Prediction via CWE-331
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Mojolicious versions from 0.999922 for Perl use predictable default secrets for HMAC session cookies, which can be exploited by attackers to forge session cookies and hijack user sessions.
An attacker who knows or guesses the default secret can compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user's session.
Questions
What is CVE-2024-58134?
Mojolicious versions from 0.999922 for Perl use predictable default secrets for HMAC session cookies, which can be exploited by attackers to forge session cookies and hijack user sessions.
What is the CVSS score for CVE-2024-58134?
CVE-2024-58134 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N. EPSS: 1.0%.
Is CVE-2024-58134 actively exploited?
No confirmed active exploitation of CVE-2024-58134 as of 2026-09-25.
How do I remediate CVE-2024-58134?
Priority: IMMEDIATE.
What systems are affected by CVE-2024-58134?
CVE-2024-58134 affects Mojolicious Mojolicious.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Mojolicious","product":"Mojolicious","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.