CVE-2026-56016: Libcgi session perl · CGI::Session::ID::md5 versions before 4.49 for Perl generate predictable session
Affects libcgi-session-perlSource GCVE Database
Not known to be exploited · CVSS 5.9 Medium.
Data as of 24 Nov 2026, 21:16 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10libcgi-session-perlpkg:deb/ubuntu/libcgi-session-perl?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSlibcgi-session-perlpkg:deb/ubuntu/libcgi-session-perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10libcgi-session-perlpkg:deb/ubuntu/libcgi-session-perl?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibcgi-session-perlpkg:deb/ubuntu/libcgi-session-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlibcgi-session-perlpkg:deb/ubuntu/libcgi-session-perl?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSlibcgi-session-perlpkg:deb/ubuntu/libcgi-session-perl?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-56016 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-56016 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/41439279/ (opens in a new tab)
- metacpan.org/release/MARKSTOS/CGI-Session-4.49/changes (opens in a new tab)
- metacpan.org/release/MARKSTOS/CGI-Session-4.49/source/lib/CGI/Session/ID/md5.pm (opens in a new tab)