{"id":"CVE-2026-3255","published":"2026-02-27T20:12:35Z","modified":"2026-03-03T20:23:53Z","title":"HTTP::Session2 versions before 1.12 for Perl may generate weak session ids using the rand() function","vendor":"TOKUHIROM","product":"HTTP::Session2","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00461,"percentile":0.40861,"provenance":"source"},"cwes":[{"id":"CWE-340","name":"Generation of Predictable Numbers or Identifiers"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.11/source/lib/HTTP/Session2/Random.pm#L35","tags":[]},{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.01/source/lib/HTTP/Session2/ServerStore.pm#L68","tags":[]},{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.12/changes","tags":["release-notes"]},{"url":"https://github.com/tokuhirom/HTTP-Session2/commit/9cfde4d7e0965172aef5dcfa3b03bb48df93e636.patch","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/02/27/12","tags":[]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":8.17},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"tokuhirom","affectedVersions":[{"vendor":"TOKUHIROM","product":"HTTP::Session2","versions":["< 1.12"]}],"solutions":{"items":["HTTP::Session2 has been deprecated since version 1.11. Migrate to a different solution."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Upgrade to version 1.12 or later."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-115","name":"Authentication Bypass"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-03T20:23:27.914632Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-9063","exploited":false,"provenance":"source"}}