CWE
321 331
Advisory Published
Updated

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

First published: Sat May 03 2025(Updated: )

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.

Credit: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Affected SoftwareAffected VersionHow to fix
Mojolicious>=0.999922<=9.39

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

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

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

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203