Skip to main content
VulnerabilityPublished Updated

CVE-2024-58135: Libmojolicious perl · Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC

Affects libmojolicious-perlSource GCVE Database

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 28 Oct 2026, 22:28 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 May 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10libmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=stonkingOther threatsAffected
  • 9.42+dfsg-1 – 9.48+dfsg-1
4 affected builds
Fixed in–
Ubuntu 26.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=resoluteOther threatsAffected
  • =9.39+dfsg-1
  • =9.42+dfsg-1
Fixed in–
Ubuntu 25.10libmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=questingOther threatsAffected
  • =9.39+dfsg-1
Fixed in–
Ubuntu 24.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=nobleOther threatsAffected
  • =9.33+dfsg-1
  • =9.35+dfsg-1
Fixed in–
Ubuntu 22.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=jammyOther threatsAffected
  • =8.71+dfsg-1
  • =9.22+dfsg-1
Fixed in–
Ubuntu 20.04 LTSlibmojolicious-perlpkg:deb/ubuntu/libmojolicious-perl?arch=source&distro=focalOther threatsAffected
  • 8.22+dfsg-1 – 8.33+dfsg-1
6 affected builds
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

Community reviews

Loading reviews…