CVE-2026-8503
published medium CVSS 3.1 · 6.5Apache::Session::Generate::SHA256 versions before 1.3.19 for Perl create insecure session ids
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GUIMARD | — | Apache-Session-BrowsableApache::Session::Generate::SHA256 · 0 to < 1.3.19 · Other versions: unaffected | Affected | Not stated | CPANSec |
Description
Apache::Session::Generate::SHA256 versions before 1.3.19 for Perl create insecure session ids. Apache::Session::Generate::SHA256 generated session ids insecurely. The default session id generator returns a SHA-256 hash of the built-in rand() function, the epoch time, and the PID, that is hashed again. These are predictable, low-entropy sources. Predicable session ids could allow an attacker to gain access to systems. Note that version 1.3.19 has a fallback without warning to use insecure session generation method if the call to Crypt::URandom::urandom fails. However, this is unlikely as Crypt::URandom is a hardcoded requirement of the module. This issue is similar to CVE-2025-40931 for Apache::Session::Generate::MD5.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GUIMARD | Apache::Session::Generate::SHA256 | 0 to < 1.3.19 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-340 CWE-340 Generation of Predictable Numbers or Identifiers
- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator
References
5- https://github.com/LemonLDAPNG/Apache-Session-Browseable/commit/cc915cbbd266776eec3dd8bf4748b15fa827dbd0.patch
- https://metacpan.org/release/GUIMARD/Apache-Session-Browseable-1.3.19/changes
- https://metacpan.org/release/GUIMARD/Apache-Session-Browseable-1.3.19/diff/GUIMARD/Apache-Session-Browseable-1.3.18#lib/Apache/Session/Generate/SHA256.pm
- https://www.cve.org/CVERecord?id=CVE-2025-40931
- https://www.cve.org/CVERecord?id=CVE-2025-40932
Provider assertions
2CPANSec · cna
Apache::Session::Generate::SHA256 versions before 1.3.19 for Perl create insecure session ids
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 095a363dceec0042608b8365f73cc5d49265802ee6fd16b973f5e4391bcf97f4
- Ingested
- 23 Sep 2026, 09:39:07 UTC
- Source record
- Official CVE record