CVE-2024-58134

high

Description

Mojolicious versions from 0.999922 through 9.40 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.

References

https://www.synacktiv.com/publications/baking-mojolicious-cookies

https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojolicious.pm#L51

https://medium.com/securing/baking-mojolicious-cookies-revisited-a-case-study-of-solving-security-problems-through-security-by-13da7c225802

https://github.com/mojolicious/mojo/pull/2200

https://github.com/mojolicious/mojo/pull/1791

https://github.com/hashcat/hashcat/pull/4090

Details

Source: Mitre, NVD

Published: 2025-05-03

Updated: 2025-05-12

Risk Information

CVSS v2

Base Score: 8.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:N

Severity: High

CVSS v3

Base Score: 8.1

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Severity: High

EPSS

EPSS: 0.00023