Vulnerability · Published May 3, 2025 · Assigned by CPANSec

CVE-2024-58134Mojolicious 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

In plain English

A high-severity security flaw in Mojolicious from SRI. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities).

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.6%top 53.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libmojolicious-perlno fix listedDEBIAN-CVE-2024-58134
Debian:13libmojolicious-perlno fix listedDEBIAN-CVE-2024-58134
Debian:14libmojolicious-perlno fix listedDEBIAN-CVE-2024-58134
Ubuntu:22.04:LTSlibmojolicious-perlno fix listedUBUNTU-CVE-2024-58134
Ubuntu:24.04:LTSlibmojolicious-perlno fix listedUBUNTU-CVE-2024-58134
Ubuntu:25.10libmojolicious-perlno fix listedUBUNTU-CVE-2024-58134
Ubuntu:26.04:LTSlibmojolicious-perlno fix listedUBUNTU-CVE-2024-58134
Ubuntu:26.10libmojolicious-perlno fix listedUBUNTU-CVE-2024-58134

Affected products (as reported)

VendorProductVersions
SRI Mojolicious 0.999922 – through *

Weakness: CWE-321, CWE-331 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

References