CVE-2024-58135: Libmojolicious perl · Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC
Affects libmojolicious-perlSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium.
Data as of 28 Oct 2026, 22:28 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10libmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10libmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2024-58135 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-58135 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/29241187/ (opens in a new tab)
- github.com/mojolicious/mojo/pull/2200 (opens in a new tab)
- github.com/hashcat/hashcat/pull/4090 (opens in a new tab)
- metacpan.org/release/SRI/Mojolicious-7.28/source/lib/Mojolicious/Command/generate/app.pm (opens in a new tab)
- metacpan.org/release/SRI/Mojolicious-9.38/source/lib/Mojolicious/Command/Author/generate/app.pm (opens in a new tab)
- metacpan.org/release/SRI/Mojolicious-9.39/source/lib/Mojo/Util.pm (opens in a new tab)
- perldoc.perl.org/functions/rand (opens in a new tab)
- security.metacpan.org/docs/guides/random-data-for-security.html (opens in a new tab)