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:05:03.782Z
Modified
2026-07-16T03:47:48.885614394Z
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
Plack-Middleware-Session before version 0.35 for Perl generates session ids insecurely
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.

Database specific
{
    "cwe_ids": [
        "CWE-338",
        "CWE-340"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40923.json",
    "cna_assigner": "CPANSec"
}
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
{
    "extracted_events": [
        {
            "introduced": "0.01"
        },
        {
            "fixed": "0.35"
        }
    ],
    "source": "AFFECTED_FIELD"
}

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"