# CVE-2025-40933: Apache::AuthAny::Cookie v0.201 or earlier for Perl generates session ids insecurely

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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.41%, higher than 37% of CVEs (2026-12-02)
- Published: 2025-09-17T14:25:10.826Z
- Modified: 2026-09-26T00:10:00.127Z
- Weaknesses: CWE-338, CWE-340
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Apache::AuthAny::Cookie v0.201 or earlier for Perl generates session ids insecurely.

Session ids are generated using an MD5 hash of the epoch time and a call to the built-in rand function. 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-AuthAny: from 0.19 up to 0.201

## References

- <https://metacpan.org/release/KGOLDOV/Apache2-AuthAny-0.201/source/lib/Apache2/AuthAny/Cookie.pm>

## Sources

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

---

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