
CVE catalog
CVE-2025-40931
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 M
- Severity
- Critical · CVSS 9.1
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.61% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libapache-session-perl | sid | 1.94-2 | vulnerable |
| Debian | libapache-session-perl | forky | 1.94-2 | vulnerable |
| Debian | libapache-session-perl | trixie | 1.94-2 | vulnerable |
| Debian | libapache-session-perl | bookworm | 1.94-2 | vulnerable |
| Cpe | libapache-session-perl | Not reported | Not reported | vulnerable |
| Ubuntu | libapache-session-perl | 16.04 | 1.93-2 | vulnerable |
| Ubuntu | libapache-session-perl | 16.04 | 1.93-2ubuntu1 | vulnerable |
| Ubuntu | libapache-session-perl | 18.04 | 1.93-2ubuntu1 | vulnerable |
| Ubuntu | libapache-session-perl | 20.04 | 1.93-3 | vulnerable |
| Ubuntu | libapache-session-perl | 22.04 | 1.94-1 | vulnerable |
| Ubuntu | libapache-session-perl | 24.04 | 1.94-2 | vulnerable |
| Ubuntu | libapache-session-perl | 25.10 | 1.94-2 | vulnerable |
| Ubuntu | libapache-session-perl | 26.10 | 1.94-2 | vulnerable |
| Ubuntu | libapache-session-perl | 26.04 | 1.94-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libapache-session-perl | source | sid | (unfixed) | not yet assigned | Not reported | [1130891] |
| Debian | libapache-session-perl | source | forky | (unfixed) | not yet assigned | Not reported | [1130891] |
| Debian | libapache-session-perl | source | trixie | (unfixed) | not yet assigned | Not reported | [1130891] |
| Debian | libapache-session-perl | source | bookworm | (unfixed) | not yet assigned | Not reported | [1130891] |
Notes
[trixie] libapache-session-perl: Minor issue, revisit when fixed upstream [bookworm] libapache-session-perl: Minor issue, revisit when fixed upstream
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libapache-session-perl]Affected
Details (2)
1.94-2· all · bookwormAffected
nvd · libapache-session-perl · debian · bookworm; nvd · libapache-session-perl · debian · 12
1.94-2· all · bookwormAffected
nvd · libapache-session-perl · debian · bookworm; nvd · libapache-session-perl · debian · 12
[Debian 13 (Trixie)]
- [libapache-session-perl]Affected
Details (2)
1.94-2· all · trixieAffected
nvd · libapache-session-perl · debian · 13
1.94-2· all · trixieAffected
nvd · libapache-session-perl · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2025-40931]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-40931]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-40931]
- [https://security-tracker.debian.org/tracker/CVE-2025-40931]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]