{"id":"CVE-2026-3255","summary":"HTTP::Session2 versions before 1.12 for Perl may generate weak session ids using the rand() function","details":"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.","modified":"2026-08-12T03:51:12.605149753Z","published":"2026-02-27T20:12:35.414Z","database_specific":{"cwe_ids":["CWE-338","CWE-340"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3255.json","cna_assigner":"CPANSec"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/02/27/12"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"WEB","url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.01/source/lib/HTTP/Session2/ServerStore.pm#L68"},{"type":"WEB","url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.11/source/lib/HTTP/Session2/Random.pm#L35"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3255.json"},{"type":"ADVISORY","url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.12/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3255"},{"type":"FIX","url":"https://github.com/tokuhirom/HTTP-Session2/commit/9cfde4d7e0965172aef5dcfa3b03bb48df93e636.patch"},{"type":"PACKAGE","url":"https://github.com/tokuhirom/HTTP-Session2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tokuhirom/http-session2","events":[{"introduced":"0"},{"fixed":"7baa6f0ef8a1e7ca602d7751fb3956e16e165f30"},{"fixed":"9cfde4d7e0965172aef5dcfa3b03bb48df93e636"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:tokuhirom:http\\:\\:session2:*:*:*:*:*:perl:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.12"}]}}],"versions":["1.10","1.09","1.08","1.07","1.06","1.05","1.04","1.03","1.02","1.01","1.00","0.05","0.04","0.03","0.02","0.01"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-3255.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"}]}