{"id":"CVE-2026-3256","state":"PUBLISHED","title":"HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids","description":"HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids.\n\nHTTP::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.\n\nThe distribution includes HTTP::session::ID::MD5 which contains a similar flaw, but uses the MD5 hash instead.","publishedAt":"2026-03-28T18:52:39.917Z","updatedAt":"2026-06-29T06:50:16.274Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["KTAT HTTP::Session"],"affected":[{"vendor":"KTAT","product":"HTTP::Session","packageName":"http-session","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.54","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programRoutines":[{"name":"HTTP::Session::ID::SHA1::generate_id"},{"name":"HTTP::Session::ID::MD5::generate_id"}],"repo":"https://github.com/tokuhirom/http-session"}],"references":["https://metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/SHA1.pm","https://metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/MD5.pm","https://security.metacpan.org/docs/guides/random-data-for-security.html","https://metacpan.org/release/TOKUHIROM/http-session-0.54/changes","http://www.openwall.com/lists/oss-security/2026/03/28/5"],"weaknesses":["CWE-340","CWE-338"],"ingestedAt":"2026-10-29T20:11:50.837Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/3xxx/CVE-2026-3256.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-3256","state":"PUBLISHED","datePublished":"2026-03-28T18:52:39.917Z","dateUpdated":"2026-06-29T06:50:16.274Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-02-26T11:59:23.755Z"},"containers":{"cna":{"title":"HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids","descriptions":[{"lang":"en","value":"HTTP::Session versions before 0.54 for Perl defaults to using insecurely generated session ids.\n\nHTTP::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.\n\nThe distribution includes HTTP::session::ID::MD5 which contains a similar flaw, but uses the MD5 hash instead."}],"affected":[{"vendor":"KTAT","product":"HTTP::Session","packageName":"http-session","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.54","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programRoutines":[{"name":"HTTP::Session::ID::SHA1::generate_id"},{"name":"HTTP::Session::ID::MD5::generate_id"}],"repo":"https://github.com/tokuhirom/http-session"}],"references":[{"url":"https://metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/SHA1.pm"},{"url":"https://metacpan.org/release/KTAT/http-session-0.53/source/lib/HTTP/Session/ID/MD5.pm"},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["technical-description"]},{"url":"https://metacpan.org/release/TOKUHIROM/http-session-0.54/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-06-29T06:50:16.274Z"},"impacts":[{"capecId":"CAPEC-115","descriptions":[{"lang":"en","value":"CAPEC-115 Authentication Bypass"}]}],"solutions":[{"lang":"en","value":"Upgrade to version 0.54 or later.\n\nNote that HTTP::Session as of version 0.54 is deprecated. Users should migrate their applications to alternative solutions."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-03-28T00:00:00.000Z","value":"CVE-2026-3256 published"},{"lang":"en","time":"2026-06-27T00:00:00.000Z","value":"HTTP::Session version 0.54 released"}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/03/28/5"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-03-28T20:06:47.537Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-04-01T14:14:27.526725Z","id":"CVE-2026-3256","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-01T14:14:51.886Z"}}]}}}