{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "HTTP::Session2 versions before 1.12 for Perl for Perl may generate weak session ids using the rand() function. The HTTP::Session2 session id generator returns a SHA-1 hash seeded with the built-in rand function, the 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. HTTP::Session2 after version 1.02 will attempt to use the /dev/urandom device to generate a session id, but if the device is unavailable (for example, under Windows), then it will revert to the insecure method described above.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-HTTP-Session2-2026-3255 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-http-session2-2026-3255.json" }, { "category": "external", "summary": "https://github.com/tokuhirom/HTTP-Session2/commit/9cfde4d7e0965172aef5dcfa3b03bb48df93e636.patch", "url": "https://github.com/tokuhirom/HTTP-Session2/commit/9cfde4d7e0965172aef5dcfa3b03bb48df93e636.patch" }, { "category": "external", "summary": "https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.01/source/lib/HTTP/Session2/ServerStore.pm#L68", "url": "https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.01/source/lib/HTTP/Session2/ServerStore.pm#L68" }, { "category": "external", "summary": "https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.11/source/lib/HTTP/Session2/Random.pm#L35", "url": "https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.11/source/lib/HTTP/Session2/Random.pm#L35" }, { "category": "external", "summary": "https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.12/changes", "url": "https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.12/changes" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2026/02/27/12", "url": "http://www.openwall.com/lists/oss-security/2026/02/27/12" }, { "category": "external", "summary": "CVE-2026-3255 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-3255" } ], "title": "HTTP-Session2 vulnerability", "tracking": { "current_release_date": "2026-02-27T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-HTTP-Session2-2026-3255", "initial_release_date": "2026-02-27T00:00:00", "revision_history": [ { "date": "2026-02-27T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/<1.12", "product": { "name": "HTTP-Session2 less than 1.12", "product_id": "CSAFPID-0001", "product_identification_helper": { "purl": "pkg:cpan/HTTP-Session2" } } }, { "category": "product_version_range", "name": "vers:cpan/>=1.12", "product": { "name": "HTTP-Session2 greater than or equal 1.12", "product_id": "CSAFPID-0002", "product_identification_helper": { "purl": "pkg:cpan/HTTP-Session2" } } } ], "category": "product_name", "name": "HTTP-Session2" } ] }, "vulnerabilities": [ { "cve": "CVE-2026-3255", "cwe": { "id": "CWE-338", "name": "Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)" }, "notes": [ { "category": "description", "text": "HTTP::Session2 versions before 1.12 for Perl for Perl may generate weak session ids using the rand() function.\n\nThe HTTP::Session2 session id generator returns a SHA-1 hash seeded with the built-in rand function, the 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.\n\nHTTP::Session2 after version 1.02 will attempt to use the /dev/urandom device to generate a session id, but if the device is unavailable (for example, under Windows), then it will revert to the insecure method described above.", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0002" ], "known_affected": [ "CSAFPID-0001" ] }, "scores": [ { "cvss_v3": { "baseScore": 6.5, "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L", "version": "3.1" }, "products": [ "CSAFPID-0001" ] } ] } ] }