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

Published May 3, 2025
·
Updated

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 Software

2 affected components
Mojolicious Mojolicious>=0.999922<=9.40
Mojolicious Mojolicious Perl>=0.999922<=9.40

Event History

May 3, 2025
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-58134?

CVE-2024-58134 has a high severity due to its potential to allow an attacker to forge session cookies.

2

How do I fix CVE-2024-58134?

To fix CVE-2024-58134, update Mojolicious to a version later than 9.39 or change the default HMAC session secret to a more secure, random value.

3

What versions of Mojolicious are affected by CVE-2024-58134?

CVE-2024-58134 affects Mojolicious versions from 0.999922 through 9.39.

4

What is the impact of exploiting CVE-2024-58134?

Exploiting CVE-2024-58134 could allow attackers to impersonate users by forging valid session cookies.

5

Is it safe to use default settings for session secrets in Mojolicious due to CVE-2024-58134?

No, using default settings for session secrets in Mojolicious is not safe due to the predictability of the HMAC session secret.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203