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
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.1
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
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.
- Record
CVE-2024-58134- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-321, CWE-331
- Updated
- 2026-11-02
EUVDEUVD-2025-13360
8.1
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.
- Record
EUVD-2025-13360- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-3g23-7g3r-898j
8.1
Mojolicious versions from 0.999922 through 9.39 for Perl uses a hard coded string, or the...
Mojolicious versions from 0.999922 through 9.39 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.
- Record
GHSA-3g23-7g3r-898j- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-321
- Updated
- 2026-11-02
NVD
8.1
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.
- Record
CVE-2024-58134- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-321, CWE-331
- Updated
- 2026-11-02
OSV
8.1
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
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.
- Record
CVE-2024-58134- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-321, CWE-331
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-58134
8.1
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.
- Record
DEBIAN-CVE-2024-58134- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-58134
8.1
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.
- Record
UBUNTU-CVE-2024-58134- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVAZL-61673 No score
CVE-2024-58134 affecting package perl-Mojolicious 8.57-3
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.
- Record
AZL-61673- Updated
- 2026-11-02
OSVAZL-61825 No score
CVE-2024-58134 affecting package perl-Mojolicious 8.57-3
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.
- Record
AZL-61825- Updated
- 2026-11-05
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
perl-MojoliciousAzure Linux:2 |
through 8.57-3 | None known |
perl-MojoliciousAzure Linux:3 |
through 8.57-3 | None known |
libmojolicious-perlDebian:12 |
All versions, plus listed versions 9.31+dfsg-19.33+dfsg-19.34+dfsg-19.35+dfsg-19.36+dfsg-1 Show 15 moreShow less9.36+dfsg-1~bpo12+29.37+dfsg-19.37+dfsg-29.37+dfsg-2~bpo12+19.38+dfsg-19.39+dfsg-19.42+dfsg-19.42+dfsg-1~bpo13+29.45+dfsg-19.45+dfsg-29.46+dfsg-19.47+dfsg-19.48+dfsg-19.49+dfsg-19.53+dfsg-1 |
None known |
libmojolicious-perlDebian:13 |
All versions, plus listed versions 9.39+dfsg-19.42+dfsg-19.42+dfsg-1~bpo13+29.45+dfsg-19.45+dfsg-2 Show 5 moreShow less9.46+dfsg-19.47+dfsg-19.48+dfsg-19.49+dfsg-19.53+dfsg-1 |
None known |
libmojolicious-perlDebian:14 |
All versions, plus listed versions 9.39+dfsg-19.42+dfsg-19.42+dfsg-1~bpo13+29.45+dfsg-19.45+dfsg-2 Show 5 moreShow less9.46+dfsg-19.47+dfsg-19.48+dfsg-19.49+dfsg-19.53+dfsg-1 |
None known |
libmojolicious-perlUbuntu:16.04:LTS |
All versions, plus listed versions 6.15+dfsg-16.15+dfsg-1ubuntu1 |
None known |
libmojolicious-perlUbuntu:18.04:LTS |
All versions, plus listed versions 7.39+dfsg-1ubuntu17.43+dfsg-1ubuntu17.57+dfsg-1ubuntu17.59+dfsg-1ubuntu1 |
None known |
libmojolicious-perlUbuntu:20.04:LTS |
All versions, plus listed versions 8.22+dfsg-18.23+dfsg-18.26+dfsg-18.27+dfsg-18.32+dfsg-18.33+dfsg-1 |
None known |
libmojolicious-perlUbuntu:22.04:LTS |
All versions, plus listed versions 8.71+dfsg-19.22+dfsg-1 |
None known |
libmojolicious-perlUbuntu:24.04:LTS |
All versions, plus listed versions 9.33+dfsg-19.35+dfsg-1 |
None known |
libmojolicious-perlUbuntu:25.10 |
All versions, plus listed versions 9.39+dfsg-1 |
None known |
libmojolicious-perlUbuntu:26.10 |
All versions, plus listed versions 9.42+dfsg-19.45+dfsg-29.46+dfsg-19.48+dfsg-1 |
None known |
libmojolicious-perlUbuntu:26.04:LTS |
All versions, plus listed versions 9.39+dfsg-19.42+dfsg-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-58134 is a high vulnerability (CVSS 8.1) in Mojolicious, published May 3, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.56%, the 46th percentile. No source names a fixed version.
References
github.com/mojolicious/mojo/pull/1791
github.com/mojolicious/mojo/pull/2200
synacktiv.com/publications/baking-mojolicious-cookies
medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802
metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm
github.com/hashcat/hashcat/pull/4090
Show 14 moreShow less
lists.debian.org/debian-perl/2025/05/msg00016.html
lists.debian.org/debian-perl/2025/05/msg00017.html
lists.debian.org/debian-perl/2025/05/msg00018.html
github.com/mojolicious/mojo/pull/2252
docs.mojolicious.org/Mojolicious/Guides/FAQ
nvd.nist.gov/vuln/detail/CVE-2024-58134
github.com/advisories/GHSA-3g23-7g3r-898j
cpan.org/modules
github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58134.json
github.com/mojolicious/mojo
security-tracker.debian.org/tracker/CVE-2024-58134
ubuntu.com/security/CVE-2024-58134
cve.org/CVERecord?id=CVE-2024-58134
lists.security.metacpan.org/cve-announce/msg/29247502