# CVE-2025-40932: Apache::SessionX versions through 2.01 for Perl create insecure session id

- Severity: High 8.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-02)
- Published: 2026-02-26T23:33:37.083Z
- Modified: 2026-06-17T09:22:19.230Z
- Weaknesses: CWE-338, CWE-340
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Apache::SessionX versions through 2.01 for Perl create insecure session id.

Apache::SessionX generates session ids insecurely. The default session id generator in Apache::SessionX::Generate::MD5 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.

(As written by CVE List.)

## Affected

- Apache-SessionX: up to 2.01
- grichter apache::sessionx: up to 2.01

## References

- <https://metacpan.org/release/GRICHTER/Apache-SessionX-2.01/source/SessionX/Generate/MD5.pm#L29> (issue-tracking, related)

## Sources

- CVE List: [CVE-2025-40932](https://www.cve.org/CVERecord?id=CVE-2025-40932), CVE Terms of Use, modified 2026-02-27
- NVD: [CVE-2025-40932](https://nvd.nist.gov/vuln/detail/CVE-2025-40932), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-40932 · Whole record: https://cve.day/CVE-2025-40932.json · Rebuilt by cve.day 2026-11-25T22:59:11.584Z
