CVE-2025-40923: Libplack middleware session perl · Plack-Middleware-Session before version 0.35 for Perl generates
Affects libplack-middleware-session-perlSource GCVE Database
Not known to be exploited · CVSS 7.3 High.
Data as of 24 Nov 2026, 20:10 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 7.3 |
|---|
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 16 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10libplack-middleware-session-perlpkg:deb/ubuntu/libplack-middleware-session-perl?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibplack-middleware-session-perlpkg:deb/ubuntu/libplack-middleware-session-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlibplack-middleware-session-perlpkg:deb/ubuntu/libplack-middleware-session-perl?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSlibplack-middleware-session-perlpkg:deb/ubuntu/libplack-middleware-session-perl?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSlibplack-middleware-session-perlpkg:deb/ubuntu/libplack-middleware-session-perl?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 16.04 LTSlibplack-middleware-session-perlpkg:deb/ubuntu/libplack-middleware-session-perl?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Plack-Middleware-Session before version 0.35 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. Predicable session ids could allow an attacker to gain access to systems.
References
- ubuntu.com/security/CVE-2025-40923 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40923 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/31223483/ (opens in a new tab)
- github.com/plack/Plack-Middleware-Session/pull/52 (opens in a new tab)
- metacpan.org/release/MIYAGAWA/Plack-Middleware-Session-0.34/source/lib/Plack/Session/State.pm (opens in a new tab)
- security.metacpan.org/docs/guides/random-data-for-security.html (opens in a new tab)