CVE-2025-40926: Plack::Middleware::Session::Simple - Authentication Bypass
- Cve: CVE-2025-40926
- Name: Plack::Middleware::Session::Simple - Authentication Bypass
- Description: Plack::Middleware::Session::Simple versions before 0.05 for Perl generates session ids insecurely. The default 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. Predictable session ids could allow an attacker to gain access to systems. Plack::Middleware::Session::Simple is intended to be compatible with Plack::Middleware::Session, which had a similar security issue CVE-2025-40923.
- Impact: Attackers can predict session IDs to hijack sessions and gain unauthorized access to user accounts or systems.
- Remediation: Update to the latest version with secure session ID generation.
- Vulnerability type: broken_authentication
- Vulnerability impact: broken_authentication
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00503
- Epss percentile: 0.43906
- Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
- Published at: 2026-03-05T02:16:39Z
- Age in days: 264
- Modified at: 2026-06-17T09:22:18Z
- Patch available: yes
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-40926
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| kazeburo:plack::middleware::session::simple | < 0.05 | no | nvd | /v1/products/kazeburo/plack::middleware::session::simple |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| kazeburo/Plack-Middleware-Session-Simple | commit, fix, pull | yes | /v1/repositories/kazeburo/Plack-Middleware-Session-Simple |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts