CVE-2025-40931

NameCVE-2025-40931
DescriptionApache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id. Apache::Session::Generate::MD5 generates session ids insecurely. The default session id generator returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. Predicable session ids could allow an attacker to gain access to systems.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libapache-session-perl (PTS)bullseye1.94-1vulnerable
bookworm, forky, sid, trixie1.94-2vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libapache-session-perlsource(unstable)(unfixed)

Notes

[trixie] - libapache-session-perl <no-dsa> (Minor issue)
[bookworm] - libapache-session-perl <no-dsa> (Minor issue)
https://lists.security.metacpan.org/cve-announce/msg/37639294/

Search for package or bug name: Reporting problems