CVEfocus › CVE database › CVE-2024-58134

CVE-2024-58134Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the…

CVSS 8.1 HighEPSS 1.0% (higher than 62% of CVEs)Published 2025-05-03Updated 2025-10-20Assigner: CPANSec

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.

CWE-321CWE-331

What to do

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libmojolicious-perlFix pendingUBUNTU-CVE-2024-58134
Ubuntu 26.04libmojolicious-perlUnder investigationUBUNTU-CVE-2024-58134
Ubuntu 25.10libmojolicious-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-58134
Ubuntu 24.04libmojolicious-perlUnder investigationUBUNTU-CVE-2024-58134
Ubuntu 22.04libmojolicious-perlUnder investigationUBUNTU-CVE-2024-58134
Ubuntu 20.04libmojolicious-perlFix pendingUBUNTU-CVE-2024-58134
Ubuntu 18.04libmojolicious-perlFix pendingUBUNTU-CVE-2024-58134
Ubuntu 16.04libmojolicious-perlFix pendingUBUNTU-CVE-2024-58134
Debian 14libmojolicious-perlFix pendingDEBIAN-CVE-2024-58134
Debian 13libmojolicious-perlFix pendingDEBIAN-CVE-2024-58134
Debian 12libmojolicious-perlFix pendingDEBIAN-CVE-2024-58134

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Ensure that your Mojolicious application uses a unique secret of at least 128 bit of cryptographically secure random data. For example, to generate a 256 bit secret, one could use the output generated by the "openssl rand -base64 32" command.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.