CVE-2025-40924

Source
https://cve.org/CVERecord?id=CVE-2025-40924
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40924.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40924
Downstream
Published
2025-07-17T13:33:43.739Z
Modified
2026-07-16T03:47:48.513924147Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely
Details

Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely.

The session id is generated from a (usually SHA-1) hash of a simple counter, the epoch time, the built-in rand function, the PID and the current Catalyst context. This information is of low entropy. 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-40924.json",
    "cna_assigner": "CPANSec"
}
References

Affected packages

Git / github.com/perl-catalyst/catalyst-plugin-session

Affected ranges

Type
GIT
Repo
https://github.com/perl-catalyst/catalyst-plugin-session
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "0.01"
        },
        {
            "fixed": "0.44"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

0.*
0.35
0.36
0.40
0.41
v0.*
v0.01
v0.02
v0.03
v0.04
v0.05
v0.06
v0.09
v0.11
v0.12
v0.13
v0.15
v0.16
v0.17
v0.18
v0.19
v0.19_01
v0.20
v0.21
v0.22
v0.23
v0.24
v0.25
v0.26
v0.26_01
v0.27
v0.28
v0.29
v0.30
v0.31
v0.32
v0.34
v0.42
v0.43

Database specific

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