HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids
Summary
| CVE | CVE-2026-3256 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-03-28 19:16:56 UTC |
| Updated | 2026-06-29 07:16:25 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.8 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.005300000 probability, percentile 0.407490000 (date 2026-06-30)
Problem Types: CWE-338 | CWE-340 | CWE-340 CWE-340 Generation of Predictable Numbers or Identifiers | CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | ADP | DECLARED | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | KTAT | HTTPSession | affected 0.54 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| metacpan.org/release/TOKUHIROM/http-session-0.54/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/SHA... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | Product |
| metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/MD5.pm | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | Product |
| www.openwall.com/lists/oss-security/2026/03/28/5 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| security.metacpan.org/docs/guides/random-data-for-security.html | 9b29abf9-4ab0-4765-b253-1875cd9b441e | security.metacpan.org | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-03-28T00:00:00.000Z | CVE-2026-3256 published |
| CNA | 2026-06-27T00:00:00.000Z | HTTP::Session version 0.54 released |
Solutions
CNA: Upgrade to version 0.54 or later. Note that HTTP::Session as of version 0.54 is deprecated. Users should migrate their applications to alternative solutions.
There are currently no legacy QID mappings associated with this CVE.