Weak HMAC Session Secrets in Mojolicious for Perl
CVE-2024-58135

5.3MEDIUM

Key Information:

Vendor

Sri

Vendor
CVE Published:
3 May 2025

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2024-58135?

Mojolicious versions from 7.28 to 9.39 for Perl have a security flaw related to the generation of HMAC session secrets. When applications are created using the 'mojo generate app' tool, it generates a weak secret based on the insecure rand() function, which is retained in the application's configuration file. This flaw compromises the authentication and integrity of the application's sessions, making them susceptible to brute-force attacks that could allow unauthorized access.

Affected Version(s)

Mojolicious 7.28 <= 9.45

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

.