CVE-2025-40931 Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2025-40931 vendor-advisory
- metacpan.org product
- security.metacpan.org mailing-list technical-description third-party-advisory
- github.com issue-tracking
- rt.cpan.org issue-tracking third-party-advisory
- www.openwall.com mailing-list
- bugs.debian.org issue-tracking
- salsa.debian.org patch
- gitlab.ow2.org issue-tracking
- metacpan.org
- www.openwall.com mailing-list third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking