CVE-2024-58135: Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo
CVE-2024-58135 is a medium-severity flaw (CVSS 5.3) affecting mojolicious. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo generate app" by default. When creating a default app skeleton with the "mojo generate app" tool, a weak secret is written to the application's configuration file using the insecure rand() function, and used for authenticating and protecting the integrity of the application's sessions. This may allow an attacker to brute force the applic
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.6% (top 53%) |
| CISA exploited list | No |
| Weakness | CWE-338 |
| Published | 2025-05-03 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-58135?
mojolicious: upgrade to newer than 9.40. Exact commands for each OS are on this page.
Is CVE-2024-58135 being exploited?
CVE-2024-58135 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-58135 affect?
CVE-2024-58135 affects mojolicious. Severity is medium (CVSS 5.3). Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo generate app" by default. When creating a default app skeleton with the "mojo generate app" tool, a weak secret is written to the
How urgent is CVE-2024-58135?
Priority 40/100. Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2024-58134 HIGH 8.1 UPGRADE Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the application's class name, as an H
- CVE-2021-47208 MEDIUM 4.3 UPGRADE The Mojolicious module before 9.11 for Perl has a bug in format detection that can potentially be exploited fo