# CVE-2026-56016: CGI::Session::ID::md5 versions before 4.49 for Perl generate predictable session ids from low-entropy sources

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/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.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-07-01T06:46:23.589Z
- Modified: 2026-10-25T17:10:00.197Z
- Weaknesses: CWE-338, CWE-340
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## Description

CGI::Session::ID::md5 versions before 4.49 for Perl generate predictable session ids from low-entropy sources.

The generate_id method builds the session id from a MD5 digest of the process id, the epoch time, and the built-in rand() function. All three are predictable, low-entropy sources: the PID is drawn from a small range, the epoch time can be guessed or read from the HTTP Date header, and Perl's rand() is unsuitable for security purposes because it is predictable and reversible.

An attacker who predicts a session id can impersonate the corresponding session and bypass authentication.

(As written by CVE List.)

## Affected

- CGI-Session: before 4.49

## References

- <https://metacpan.org/release/MARKSTOS/CGI-Session-4.49/changes> (release-notes)
- <https://metacpan.org/release/MARKSTOS/CGI-Session-4.49/source/lib/CGI/Session/ID/md5.pm> (related)
- <http://www.openwall.com/lists/oss-security/2026/07/01/6>

## Sources

- CVE List: [CVE-2026-56016](https://www.cve.org/CVERecord?id=CVE-2026-56016), CVE Terms of Use, modified 2026-07-01
- NVD: [CVE-2026-56016](https://nvd.nist.gov/vuln/detail/CVE-2026-56016), Public domain, modified 2026-10-25

---

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