CVEfocus › CVE database › CVE-2025-40924

CVE-2025-40924Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely

CVSS 6.5 MediumEPSS 0.6% (higher than 41% of CVEs)Published 2025-07-17Updated 2025-07-17Assigner: CPANSec

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.

CWE-338CWE-340

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
6Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libcatalyst-plugin-session-perlFix pendingUBUNTU-CVE-2025-40924
Ubuntu 26.04libcatalyst-plugin-session-perlUnder investigationUBUNTU-CVE-2025-40924
Ubuntu 25.10libcatalyst-plugin-session-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-40924
Ubuntu 24.04libcatalyst-plugin-session-perlUnder investigationUBUNTU-CVE-2025-40924
Ubuntu 22.04libcatalyst-plugin-session-perlUnder investigationUBUNTU-CVE-2025-40924
Ubuntu 20.04libcatalyst-plugin-session-perlFix pendingUBUNTU-CVE-2025-40924
Ubuntu 18.04libcatalyst-plugin-session-perlFix pendingUBUNTU-CVE-2025-40924
Ubuntu 16.04libcatalyst-plugin-session-perlFix pendingUBUNTU-CVE-2025-40924
Debian 14libcatalyst-plugin-session-perlFixed0.44-1DEBIAN-CVE-2025-40924
Debian 13libcatalyst-plugin-session-perlFix pendingDEBIAN-CVE-2025-40924
Debian 12libcatalyst-plugin-session-perlFix pendingDEBIAN-CVE-2025-40924

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Users are advised to upgrade to Catalyst-Plugin-Session version 0.44 or later.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.