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

Exp

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.

Published: 2025-05-03 Last update: 2025-10-20 Assigner: 9b29abf9-4ab0-4765-b253-1875cd9b441e Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Conclusion & alert: CVE-2024-58134 is rated High Exploit Risk (66/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.30%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-58134

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-58134

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-02-27 0.06% 0.30% +0.24%
2 2025-10-21 0.03% 0.06% +0.02%
3 2025-09-29 0.03%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-58134

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.1 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 5.2 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2024-58134

OS Trackers for CVE-2024-58134

vendor priority summary link
alpine CVE-2024-58134: 1 source package rows (perl-mojolicious); 2 state rows across 2 repos (3.22-community, edge-community); fixed 0, open 2. https://security.alpinelinux.org/vuln/CVE-2024-58134
debian not yet assigned CVE-2024-58134 not yet assigned priority: Debian including 1 source packages (libmojolicious-perl), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 5. https://security-tracker.debian.org/tracker/CVE-2024-58134
suse high https://www.suse.com/security/cve/CVE-2024-58134/
ubuntu medium CVE-2024-58134 medium priority: Ubuntu including 1 source packages (libmojolicious-perl), 9 status rows across 9 suites (bionic, focal, jammy, noble, oracular, plucky, questing, upstream, xenial): needs-triage 7, ignored 2. https://ubuntu.com/security/CVE-2024-58134

Affected software / configurations for CVE-2024-58134

Vendor Product Version Raw CPE
mojolicious mojolicious >= 0.999922, <= 9.40 cpe:2.3:a:mojolicious:mojolicious:*:*:*:*:*:perl:*:*

References for CVE-2024-58134

URL Tags
https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
https://github.com/hashcat/hashcat/pull/4090 Issue Tracking Patch
https://github.com/mojolicious/mojo/pull/1791 Issue Tracking Patch
https://github.com/mojolicious/mojo/pull/2200 Issue 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-13da7c225802 Third Party Advisory
https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51 Product
https://www.synacktiv.com/publications/baking-mojolicious-cookies Exploit
cvelogic Threat Intelligence