CVE-2025-40923

Source
https://cve.org/CVERecord?id=CVE-2025-40923
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40923.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40923
Downstream
Published
2025-07-16T13:15:23.997Z
Modified
2026-04-02T12:48:30.415923Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
[none]
Details

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

Affected packages

Git / github.com/plack/Plack-Middleware-Session

Affected ranges

Type
GIT
Repo
https://github.com/plack/Plack-Middleware-Session
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.35"
        }
    ]
}
Type
GIT
Repo
https://github.com/plack/plack-middleware-session
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*
0.09_01
0.09_02
0.09_03
0.10
0.11
0.12
0.13
0.14
0.15
0.16
0.17
0.18
0.19
0.20
0.21
0.22
0.23
0.24
0.25
0.26
0.27
0.28
0.29
0.30
0.31
0.32
0.33
0.34

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40923.json"