CVE-2024-58135

NameCVE-2024-58135
DescriptionMojolicious versions from 7.28 through 9.39 for Perl may generate weak HMAC session secrets. When creating a default app 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1104633

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libmojolicious-perl (PTS)bullseye8.71+dfsg-1vulnerable
bookworm9.31+dfsg-1vulnerable
sid, trixie9.39+dfsg-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libmojolicious-perlsource(unstable)(unfixed)1104633

Notes

https://lists.security.metacpan.org/cve-announce/msg/29241187/
https://github.com/mojolicious/mojo/pull/2200

Search for package or bug name: Reporting problems