CVE-2025-40924
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-07-17

Last updated on: 2025-07-17

Assigner: CPANSec

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-17
Last Modified
2025-07-17
Generated
2026-05-27
AI Q&A
2025-07-17
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
perl catalyst_plugin_session *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-340 The product uses a scheme that generates numbers or identifiers that are more predictable than required.
CWE-338 The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Catalyst::Plugin::Session before version 0.44 for Perl, where session IDs are generated insecurely. The session ID is created using a hash (usually SHA-1) of low-entropy data including a simple counter, the epoch time, the built-in rand function, the process ID (PID), and the current Catalyst context. Because these inputs are predictable or guessable, the resulting session IDs are predictable.


How can this vulnerability impact me? :

Predictable session IDs could allow an attacker to guess or predict valid session identifiers, potentially enabling unauthorized access to user sessions or systems that rely on these session IDs for authentication or session management.


What immediate steps should I take to mitigate this vulnerability?

Upgrade Catalyst::Plugin::Session to version 0.44 or later to ensure session IDs are generated securely with higher entropy, preventing predictability.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart