CVE-2025-40924 Details
Description
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.
A vulnerability exists in Catalyst::Plugin::Session versions prior to 0.44 for Perl, where session IDs are generated insecurely. The session ID is created from a low-entropy mix of a counter, epoch time, a non-cryptographic random value, the process ID, and the current Catalyst context. This predictable generation method could allow an attacker to guess session IDs and gain unauthorized access.
Users can update to Catalyst::Plugin::Session version 0.44 or later, where the session ID generation has been improved to use Crypt::SysRandom, a module that provides access to high-quality random data from the system's entropy source.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 17, 2025CISA-ADP
Assessed Jul 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/perl-catalyst/Catalyst-Plugin-Session/commit/c0e2b4ab1e42ebce1008286db8c571b6ee98c22c.patch | CPANSec | Source CodeVendor |
| https://github.com/perl-catalyst/Catalyst-Plugin-Session/pull/5 | CPANSec | Issue TrackingVendor |
| https://metacpan.org/release/HAARG/Catalyst-Plugin-Session-0.43/source/lib/Catalyst/Plugin/Session.pm#L632 | CPANSec | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
| CWE-340 | Generation of Predictable Numbers or Identifiers | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Perl Catalyst::Plugin::Session | < 0.44 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 17, 2025 | CVE Modified | CISA-ADP |
| Jul 17, 2025 | New CVE Received | CPANSec |
Volerion