CVE-2025-40931 json
Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id
published 2026-03-05 8 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-208297
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
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.
Patch / fix
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 8 mo ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected products
- CHORNY Apache::Session::Generate::MD5
Classification
References
-
salsa.debian.org
/perl-team/modules/packages/libapache-session-perl/-/commit/bdabd71c2f91b18526e31a9dc52b4c17b3d246b7#898a4b8b0
patch
-
metacpan.org
/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27
product
-
security.metacpan.org
/docs/guides/random-data-for-security.html
technical-description, mailing-list, third-party-advisory
-
github.com
/chorny/Apache-Session/issues/4
issue-tracking
-
rt.cpan.org
/Ticket/Display.html?id=173631
issue-tracking, third-party-advisory
-
openwall.com
/lists/oss-security/2019/06/15/1
mailing-list
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=930659
issue-tracking
-
gitlab.ow2.org
/lemonldap-ng/lemonldap-ng/-/work_items/1633
issue-tracking
- metacpan.org /pod/Apache::Session::Generate::Random
-
openwall.com
/lists/oss-security/2026/03/05/3
mailing-list, third-party-advisory
Sources
- CVE List CVE-2025-40931
- NVD CVE-2025-40931
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.