Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
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 application's session keys. Release 9.46 fixes the issue by providing high quality randomness, even in absence of CryptX. Users should be aware that the update does not replace previously generated weak secrets. A secret generated with the previous version MUST be replaced to ensure the updated version is using a strong secret.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| SRI | Mojolicious | 7.28 – 9.45 | — | No fix listed | CNA |
- Mojolicious VendorSRI Affected 7.28 – 9.45 Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mojolicious:mojolicious:*:*:*:*:*:perl:*:* | 7.28 – 9.40 | Vulnerable | Mojolicious |
- cpe:2.3:a:mojolicious:mojolicious:*:*:*:*:*:perl:*:* Versions 7.28 – 9.40 Vulnerable ·Mojolicious
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-58135
- 2026-10-03 Alias added: GHSA-3r5v-gmfp-3mh9
References
Patch 2
Other 9
- https://perldoc.perl.org/functions/rand
- https://metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojo/Util.pm#L181
- https://metacpan.org/release/SRI/Mojolicious-9.38/source/lib/Mojolicious/Command/Author/generate/app.pm#L202
- https://metacpan.org/release/SRI/Mojolicious-7.28/source/lib/Mojolicious/Command/generate/app.pm#L220
- https://security.metacpan.org/docs/guides/random-data-for-security.html
- https://lists.debian.org/debian-perl/2025/05/msg00016.html
- https://lists.debian.org/debian-perl/2025/05/msg00017.html
- https://lists.debian.org/debian-perl/2025/05/msg00018.html
- https://metacpan.org/release/SRI/Mojolicious-9.46/source/Changes
More SRI vulnerabilities
- TI-2026-13247 Cross-site request forgery in SRI Mojolicious CVSS 3.1CRITICAL 9.1
- TI-2026-12479 Uncontrolled recursion in SRI Mojo::JSON CVSS 3.1MEDIUM 6.5
Sources
- CVE-2024-58135 · CVE Program
- CVE-2024-58135 · NVD
- FIRST EPSS
- GHSA-3r5v-gmfp-3mh9 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-58135 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences