CVE Explorer
CVE-2026-3255
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 /d
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"HTTP-Session2","product":"HTTP::Session2","repo":"https://github.com/tokuhirom/HTTP-Session2","vendor":"TOKUHIROM","versions":[{"lessThan":"1.12","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/adp/1/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"url":"http://www.openwall.com/lists/oss-security/2026/02/27/12"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/adp/0/references/0
{"tags":["patch"],"url":"https://github.com/tokuhirom/HTTP-Session2/commit/9cfde4d7e0965172aef5dcfa3b03bb48df93e636.patch"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/references/3
{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.01/source/lib/HTTP/Session2/ServerStore.pm#L68"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/references/1
{"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.11/source/lib/HTTP/Session2/Random.pm#L35"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/references/0
{"tags":["release-notes"],"url":"https://metacpan.org/release/TOKUHIROM/HTTP-Session2-1.12/changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ba04f73f06dd15fb0d7ac21216c9204c2ff177841d47e41f9daf17251da0afc7 · sha256:1732a2f3431d2188… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.