CVE-2026-3256

Source
https://cve.org/CVERecord?id=CVE-2026-3256
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-3256.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-3256
Published
2026-03-28T18:52:39Z
Modified
2026-08-12T03:51:38Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids
Details

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.

Database specific
{
    "cna_assigner": "CPANSec",
    "cwe_ids": [
        "CWE-338",
        "CWE-340"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3256.json"
}
References

Affected packages

Git / github.com/tokuhirom/http-session

Affected ranges

Type
GIT
Repo
https://github.com/tokuhirom/http-session
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.54"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

0.*
0.31
0.32
0.33
0.34
0.35
0.36
0.37
0.38
0.39
0.40
0.41
0.42
0.43
0.44
0.45
0.46
0.48
0.49
0.50
0.51
0.52
0.53

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-3256.json"