Skip to content

CVE-2025-40931 Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id

CriticalCVSS 9.1 EPSS 0.64%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebian

Description

Apache::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.

Note that the libapache-session-perl package in some Debian-based Linux distributions may be patched to use Crypt::URandom.

Upgrade path

8 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/libapache-session-perl(Debian 12) = 1.94-2; All versions No fix listed No fix yet
debian/libapache-session-perl(Debian 13) = 1.94-2; All versions No fix listed No fix yet
debian/libapache-session-perl(Debian 14) = 1.94-2; All versions No fix listed No fix yet
ubuntu/libapache-session-perl(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/libapache-session-perl(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/libapache-session-perl(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/libapache-session-perl(Ubuntu 26.10) All versions No fix listed No fix yet
CHORNY Apache::Session::Generate::MD5 <= 1.94 after 1.94 Fixed

Affected products

ProductAffected versionsFixed in
debian/libapache-session-perl(Debian:12) All versions No fix listed
debian/libapache-session-perl(Debian:12) = 1.94-2 No fix listed
debian/libapache-session-perl(Debian:13) All versions No fix listed
debian/libapache-session-perl(Debian:13) = 1.94-2 No fix listed
debian/libapache-session-perl(Debian:14) All versions No fix listed
debian/libapache-session-perl(Debian:14) = 1.94-2 No fix listed
CHORNY Apache::Session::Generate::MD5 <= 1.94 No fix listed
ubuntu/libapache-session-perl(Ubuntu:22.04) All versions No fix listed
ubuntu/libapache-session-perl(Ubuntu:24.04) All versions No fix listed
ubuntu/libapache-session-perl(Ubuntu:26.04) All versions No fix listed
ubuntu/libapache-session-perl(Ubuntu:26.10) All versions No fix listed

References