PT-2025-18941 · Unknown+1 · Mojolicious+1
Published
2025-05-03
·
Updated
2025-10-20
·
CVE-2024-58135
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Mojolicious versions 7.28 through 9.39
Description
The issue concerns the generation of weak HMAC session secrets in Mojolicious for Perl. When creating a default app, a weak secret is written to the application's configuration file using the insecure
rand() function. This secret is used for authenticating and protecting the integrity of the application's sessions, potentially allowing an attacker to brute force the application's session keys.Recommendations
For Mojolicious versions 7.28 through 9.39, consider regenerating the session secrets with a secure random number generator to mitigate the risk of brute force attacks. As a temporary workaround, restrict access to sensitive areas of the application that rely on session authentication until a secure secret can be generated.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Mojolicious