CVE-2024-58134 – Mojolicious Default HMAC Session Secret Vulnerability

The following table lists the changes that have been made to the
CVE-2024-58134 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution
of a vulnerability, and for identifying the most recent changes that may
impact the vulnerability’s severity, exploitability, or other characteristics.

  • New CVE Received
    by 9b29abf9-4ab0-4765-b253-1875cd9b441e

    May. 03, 2025

    Action Type Old Value New Value
    Added Description 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.

    Added CWE CWE-331
    Added CWE CWE-321
    Added Reference https://github.com/hashcat/hashcat/pull/4090
    Added Reference https://github.com/mojolicious/mojo/pull/1791
    Added Reference https://github.com/mojolicious/mojo/pull/2200
    Added Reference https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802
    Added Reference https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51
    Added Reference https://www.synacktiv.com/publications/baking-mojolicious-cookies
Share the Post:

Related Posts