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

HIGH
8.1
CVSS Score
Published: May 3, 2025 at 04:08 PM UTC
Updated: June 17, 2026 at 08:14 AM UTC
2 products affected across 2 vendorsMojoliciousMojolicious

Using Mojolicious by SRI?

Get instant alerts when new vulnerabilities affect Mojolicious - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.1
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

Mojolicious versions from 0.999922 through 9.40 for Perl uses a hard coded string, or the application's class name, as a HMAC session secret by default. These predictable default secrets can be exploited 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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.999922 ≤ v ≤ 9.40
v ≥ 0.9999220.999922

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (11)

ExploitIssue TrackingPatch
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://github.com/hashcat/hashcat/pull/4090
Issue TrackingPatch
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://github.com/mojolicious/mojo/pull/1791
Issue TrackingPatch
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://github.com/mojolicious/mojo/pull/2200
RelatedProduct
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51
Technical DescriptionExploit
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
https://www.synacktiv.com/publications/baking-mojolicious-cookies

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.1HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-321CWE-331

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card