Insecure Session ID Generation in Plack-Middleware-Session for Perl
CVE-2025-40923
7.3HIGH
What is CVE-2025-40923?
The Plack-Middleware-Session prior to version 0.35 for Perl suffers from insecure session ID generation. The default generator produces session IDs using a SHA-1 hash combined with a random seed from a built-in function that is not cryptographically secure. This approach, utilizing the process ID and epoch time, can lead to predictability, allowing potential attackers to exploit the system by guessing valid session IDs. If attackers successfully predict these session IDs, they can potentially hijack user sessions, gaining unauthorized access to sensitive data and functionality within applications.
Affected Version(s)
Plack::Middleware::Session 0.01 < 0.35