Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2025-40931
- 2026-10-03 Alias added: GHSA-32fg-c88m-mcrv
- 2026-10-31 EPSS moved to the 50th–90th percentile
References
Advisory 3
Other 6
- https://metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27
- https://github.com/chorny/Apache-Session/issues/4
- https://www.openwall.com/lists/oss-security/2019/06/15/1
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930659
- https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/1633
- https://metacpan.org/pod/Apache::Session::Generate::Random
More CHORNY Apache vulnerabilities
- TI-2013-06215 Apache::Session versions through 1.94 for Perl re-creates deleted sessions CVSS 3.1CRITICAL 9.1
- TI-2026-04436 Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session… CVSS 3.1CRITICAL 9.1
Sources
- CVE-2025-40931 · CVE Program
- CVE-2025-40931 · NVD
- FIRST EPSS
- GHSA-32fg-c88m-mcrv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences