CVE Catalog

CVE-2026-19565

LowCVSS 3.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.41%

34th percentile - higher than 34% of all known CVEs

Summary

A vulnerability in Apache::AppSamurai::Util versions through 1.01 for Perl: predictable session authentication keys generated from the clock and process id in CreateSessionAuthKey. The function runs five rounds of SHA-256, each over a fresh Time::HiRes reading formatted to six decimal places, the running digest, and the process id. The key is returned to the browser as the session cookie and combined with the server key. An attacker who knows the second of session creation and the PID can enumerate candidate keys and recover the victim's cookie, bypassing authentication.

Risk Assessment

A remote attacker can guess session keys and hijack user sessions, potentially leading to unauthorized access to protected resources and confidentiality breaches.

Recommendation

It is recommended to upgrade Apache::AppSamurai::Util to a patched version or use an alternative key generation mechanism. Also use a cryptographically secure random generator.

Related vulnerabilities

Original NVD description (English source)

Apache::AppSamurai::Util versions through 1.01 for Perl generate predictable session authentication keys from the clock and process id in CreateSessionAuthKey. CreateSessionAuthKey runs five rounds of SHA-256, each over a fresh Time::HiRes reading formatted to six decimal places, the running digest, and the process id. CreateSession calls it with an empty key source on every login, and the optional Keysource directive is the only route to the other branch. The result is 64 hex characters. The microsecond field of the first reading takes one of a million values, the later readings follow it within microseconds, and the process id is drawn from a small range. The key is returned to the browser as the session cookie, and is combined with the configured server key to compute the session id and to encrypt the stored session data. An attacker who knows the second in which a session was created and the process id of the worker that created it can enumerate candidate keys and recover the victim's cookie, bypassing authentication for the protected resources. Each candidate has to be tried against the server, which validates the cookie with a key the attacker does not hold.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS