CVE-2024-58134
CVE-2024-58134 is a high-severity vulnerability in Mojolicious with a CVSS 3.x base score of 8.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-321.
Key facts
- Severity: High (CVSS 3.x base score 8.1)
- EPSS exploit prediction: 0% (37th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-13360
- Weakness: CWE-321
- Affected product: Mojolicious
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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. 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.
- How severe is CVE-2024-58134?
- CVE-2024-58134 has a CVSS 3.x base score of 8.1, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2024-58134 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (37th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-58134?
- CVE-2024-58134 affects Mojolicious. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-58134?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-58134 have an EU (EUVD) identifier?
- Yes. CVE-2024-58134 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-13360.
- When was CVE-2024-58134 published?
- CVE-2024-58134 was published on 2025-05-03 and last updated on 2026-06-17.
References
- https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
- https://github.com/hashcat/hashcat/pull/4090
- https://github.com/mojolicious/mojo/pull/1791
- https://github.com/mojolicious/mojo/pull/2200
- 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-13da7c225802
- https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51
- https://www.synacktiv.com/publications/baking-mojolicious-cookies
Affected products (1)
- cpe:2.3:a:mojolicious:mojolicious:*:*:*:*:*:perl:*:*
More vulnerabilities in Mojolicious
- CVE-2010-4803 — Critical (CVSS 10.0): Mojolicious before 0.999927 does not properly implement HMAC-MD5 checksums, which has unspecified impact and remote…
- CVE-2010-4802 — Critical (CVSS 10.0): Commands.pm in Mojolicious before 0.999928 does not properly perform CGI environment detection, which has unspecified…
- CVE-2009-5074 — Critical (CVSS 10.0): Unspecified vulnerability in the MojoX::Dispatcher::Static implementation in Mojolicious before 0.991250 has unknown…
- CVE-2024-58135 — Medium (CVSS 5.3): Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo generate…
- CVE-2011-1589 — Medium (CVSS 5.0): Directory traversal vulnerability in Path.pm in Mojolicious before 1.16 allows remote attackers to read arbitrary files…
- CVE-2021-47208 — Medium (CVSS 4.3): The Mojolicious module before 9.11 for Perl has a bug in format detection that can potentially be exploited for denial…
All CVEs affecting Mojolicious →
Other CWE-321 vulnerabilities
- CVE-2024-30207 — Critical (CVSS 10.0): A vulnerability has been identified in SIMATIC RTLS Locating Manager (6GT2780-0DA00) (All versions < V3.0.1.1), SIMATIC…
- CVE-2014-5419 — Critical (CVSS 10.0): GE Multilink ML800, ML1200, ML1600, and ML2400 switches with firmware 4.2.1 and earlier and Multilink ML810, ML3000,…
- CVE-2024-35344 — Critical (CVSS 9.9): Certain Anpviz products contain a hardcoded cryptographic key stored in the firmware of the device. This affects…
- CVE-2026-28742 — Critical (CVSS 9.8): Naxclow devices use a uniform request-signing scheme based on a hard-coded, platform-wide salt embedded in every…
- CVE-2026-32644 — Critical (CVSS 9.8): Specific firmware versions of Milesight AIOT cameras use SSL certificates with default private keys.
- CVE-2025-67112 — Critical (CVSS 9.8): Use of a hard-coded AES-256-CBC key in the configuration backup/restore implementation of Small Cell Sercomm SCE4255W…