CVE-2026-3256
published critical CVSS 3.1 · 9.8HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| KTAT | — | http-sessionHTTP::Session · 0 to < 0.54 · Other versions: unaffected | Affected | Not stated | CPANSec |
Description
HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids. HTTP::Session defaults to using HTTP::Session::ID::SHA1 to generate session ids using a SHA-1 hash seeded with the built-in rand function, the high resolution 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. The distribution includes HTTP::session::ID::MD5 which contains a similar flaw, but uses the MD5 hash instead.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| KTAT | HTTP::Session | 0 to < 0.54 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-340 CWE-340 Generation of Predictable Numbers or Identifiers
- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator
References
5- http://www.openwall.com/lists/oss-security/2026/03/28/5
- https://metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/MD5.pm
- https://metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/SHA1.pm
- https://metacpan.org/release/TOKUHIROM/http-session-0.54/changes
- https://security.metacpan.org/docs/guides/random-data-for-security.html
Provider assertions
3CPANSec · cna
HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ab4de5b925004b92dadb04912ed5c5da436c45fcab5b082dd4043eaa319ec139
- Ingested
- 23 Sep 2026, 09:12:25 UTC
- Source record
- Official CVE record