CVE-2024-58134Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libmojolicious-perl | Fix pending | UBUNTU-CVE-2024-58134 | |
| Ubuntu 26.04 | libmojolicious-perl | Under investigation | UBUNTU-CVE-2024-58134 | |
| Ubuntu 25.10 | libmojolicious-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-58134 | |
| Ubuntu 24.04 | libmojolicious-perl | Under investigation | UBUNTU-CVE-2024-58134 | |
| Ubuntu 22.04 | libmojolicious-perl | Under investigation | UBUNTU-CVE-2024-58134 | |
| Ubuntu 20.04 | libmojolicious-perl | Fix pending | UBUNTU-CVE-2024-58134 | |
| Ubuntu 18.04 | libmojolicious-perl | Fix pending | UBUNTU-CVE-2024-58134 | |
| Ubuntu 16.04 | libmojolicious-perl | Fix pending | UBUNTU-CVE-2024-58134 | |
| Debian 14 | libmojolicious-perl | Fix pending | DEBIAN-CVE-2024-58134 | |
| Debian 13 | libmojolicious-perl | Fix pending | DEBIAN-CVE-2024-58134 | |
| Debian 12 | libmojolicious-perl | Fix pending | DEBIAN-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.
- SRI Mojolicious: affected: 0.999922 and later
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
- https://github.com/mojolicious/mojo/pull/1791
- https://github.com/mojolicious/mojo/pull/2200
- https://www.synacktiv.com/publications/baking-mojolicious-cookies
- 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://github.com/hashcat/hashcat/pull/4090
- 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://github.com/mojolicious/mojo/pull/2252
- https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Your-secret-passphrase-needs-to-be-changed-mean
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.