Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconReconnaissance (identify Apache::Session SHA256 usage)
-
DeliveryTime synchronization with target server
-
ExploitPID enumeration via error messages or probing
-
InstallGenerate candidate session IDs (hash time/PID/rand combinations)
-
C2Session enumeration via cookie injection
-
ExecuteSession hijacking
-
ImpactAuthenticated access as victim user
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Remote unauthenticated exploitation against default configurations of Apache::Session::Generate::SHA256 versions <1.3.19. Attack effectiveness increases when: (1) Target application exposes timing information (HTTP Date headers, server-timing, login timestamps) enabling accurate time() synchronization within ±10 seconds; (2) Apache/web server process IDs are observable via error pages, debugging endpoints, or predictable (sequential PID allocation on systems without PID randomization); (3) Application serves high user volume with many concurrent sessions, increasing probability that brute-forced session ID matches active session; (4) Session cookies lack additional validation layers (no IP binding, user-agent checks, or CSRF tokens). Limiting factors: Attack complexity scales with session ID length (default 32 hex characters = 2^128 theoretical space, but effective entropy <2^25 with predictable inputs). Requires sustained network access to target during active user sessions - sessions must exist before prediction succeeds. Detection risk increases with enumeration volume (thousands of requests needed for reliable success). |
| Impact | Real-world risk is moderate despite network attack vector. CVSS 6.5 reflects remote unauthenticated session hijacking potential (AV:N/AC:L/PR:N) but partial impact scope (C:L/I:L - read session data and impersonate user, but not full system compromise). EPSS 0.02% (5th percentile) indicates security researchers assess low probability of mass exploitation, consistent with attack requiring custom tooling to brute-force session space during narrow time windows. No public exploit identified and not in CISA KEV - likely targeted risk for high-value deployments (SSO portals, authentication gateways) rather than opportunistic scanning. Session prediction complexity depends on deployment: shared hosting with visible PIDs and predictable Apache worker launch times increases risk; containerized deployments with PID randomization and frequent restarts reduce attack surface. Organizations using Apache::Session in authentication-critical contexts (LemonLDAP::NG, custom auth portals) should prioritize patching despite low EPSS - session hijacking enables privilege escalation and lateral movement. Lower priority for non-authentication session usage (shopping carts, analytics). Key risk qualifier: exploitation requires attacker to enumerate session space during active user sessions, limiting window compared to persistent vulnerabilities. |
| Exploit ScenarioDerived | Attacker monitors target web application using vulnerable Apache::Session SHA256 generator. By probing login timestamps and observing Apache worker PID patterns (via HTTP headers or error messages), attacker constrains time() and $$ values to narrow ranges. Attacker scripts brute-force session ID generation using all combinations of constrained time (±60 seconds), PID (1-32768), and rand() seeds, producing candidate session ID lists. Attacker iterates through candidates by sending HTTP requests with Cookie: session_id=[candidate] to protected endpoints. Valid session IDs return 200 OK instead of 302 redirect to login. Once valid session hijacked, attacker accesses authenticated user data or performs actions as that user (password resets, privilege escalation if admin session captured). Attack most effective during business hours when multiple active sessions exist, increasing hit probability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 15, 2026
Weak session ID generation in Apache::Session::Generate::SHA256 for Perl allows session prediction and hijacking. All versions before 1.3.19 derive session identifiers from low-entropy sources (time, PID, rand, stringified hash ref), enabling remote unauthenticated attackers to predict valid session IDs and gain unauthorized access. EPSS score is low (0.02%, 5th percentile) and no public exploit identified at time of analysis, but CVSS 6.5 with network vector (AV:N/AC:L/PR:N) indicates exploitability against internet-facing systems. Vendor-released patch 1.3.19 replaces predictable hash with Crypt::URandom cryptographically secure source. Similar scope to CVE-2025-40931 for MD5 variant.
RemediationAI
Upgrade to Apache::Session::Generate::SHA256 version 1.3.19 or later, released as part of Apache-Session-Browseable 1.3.19 distribution. Install via CPAN: 'cpan Apache::Session::Browseable' or 'cpanm Apache::Session::Browseable'. The patch commit (https://github.com/LemonLDAPNG/Apache-Session-Browseable/commit/cc915cbbd266776eec3dd8bf4748b15fa827dbd0) replaces Digest::SHA with Crypt::URandom for cryptographically secure random session ID generation. Version 1.3.19 hardeneds the dependency by requiring Crypt::URandom in Build.PL, minimizing fallback risk. If immediate patching is infeasible, implement compensating controls: (1) Enable additional session validation - bind sessions to client IP (breaks mobile users), user-agent fingerprinting (bypassable but raises attack cost), or HTTP-only secure cookies with SameSite=Strict (limits CSRF vectors but does not prevent prediction); (2) Reduce session lifetime to <15 minutes and force re-authentication for sensitive operations (decreases prediction window but impacts UX); (3) Deploy Web Application Firewall rules to detect rapid sequential session ID attempts (rate-limit /login endpoints, monitor for 401/403 bursts) - note this generates false positives under legitimate load spikes. These mitigations increase attack cost but do not eliminate the core entropy weakness. Patch is the only complete solution.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache::Session::Generate::SHA256 is a session ID generator module for Perl's Apache::Session framework, used by web applications including LemonLDAP::NG (authentication/SSO portal). Prior to 1.3.19, the generate() function computed session IDs as SHA-256(SHA-256(time() + {} + rand() + $$)), where {} stringifies to a memory address, rand() uses Perl's non-cryptographic PRNG, and $$ is the process ID. These entropy sources are constrained: time is public, PIDs cycle predictably (typically 1-32768 on Linux), rand() has ~15 bits effective entropy without explicit seeding, and memory addresses follow ASLR patterns. CWE-340 (generation of predictable numbers or identifiers) applies - cryptographic session tokens require ~128 bits entropy from CSPRNG sources, but this implementation provided <32 bits effective entropy. The patch migrates to Crypt::URandom::urandom(), which wraps /dev/urandom (Linux) or CryptGenRandom (Windows) for kernel-supplied cryptographic randomness. The fallback to insecure generation if Crypt::URandom fails is mitigated by hardcoding the module as a build requirement.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-30536
GHSA-2c59-fqg7-rwrx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB