{"id":"CVE-2026-3255","aliases":["CVE-2026-3255"],"related":[],"kind":"vulnerability","state":"published","title":"HTTP::Session2 versions before 1.12 for Perl may generate weak session ids using the rand() function","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Las versiones de HTTP::Session2 anteriores a la 1.12 para Perl pueden generar identificadores de sesión débiles utilizando la función rand().\n\nEl generador de identificadores de sesión de HTTP::Session2 devuelve un hash SHA-1 inicializado con la función rand incorporada, el tiempo de época y el PID. El PID provendrá de un pequeño conjunto de números, y el tiempo de época puede ser adivinado, si no se filtra del encabezado HTTP Date. La función rand() incorporada no es adecuada para uso criptográfico.\n\nHTTP::Session2 después de la versión 1.02 intentará usar el dispositivo /dev/urandom para generar un identificador de sesión, pero si el dispositivo no está disponible (por ejemplo, bajo Windows), entonces revertirá al método inseguro descrito anteriormente.","source":"nvd"}],"published":"2026-02-27T20:12:35.414Z","modified":"2026-06-17T10:43:17.030Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-338","CWE-340"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.12","status":"affected"}],"vendor":"TOKUHIROM","product":"HTTP::Session2","package":"HTTP-Session2","repo":"https://github.com/tokuhirom/HTTP-Session2","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.12"}],"vendor":"tokuhirom","product":"http::session2","cpe":"cpe:2.3:a:tokuhirom:http\\:\\:session2:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.11/source/lib/HTTP/Session2/Random.pm#L35","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.01/source/lib/HTTP/Session2/ServerStore.pm#L68","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.12/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/tokuhirom/HTTP-Session2/commit/9cfde4d7e0965172aef5dcfa3b03bb48df93e636.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/02/27/12","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-03-03T20:23:27.914Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-3255","url":"https://www.cve.org/CVERecord?id=CVE-2026-3255","licence":"CVE Terms of Use","modified":"2026-03-03T20:23:53.160Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-3255","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3255","licence":"Public domain","modified":"2026-06-17T10:43:17.030Z"}],"updatedAt":"2026-11-25T22:59:15.043Z","epss":{"score":0.00454,"percentile":0.41154,"date":"2026-12-01T12:00:22.000Z"}}