CVE-2026-19565
Received Received - Intake

Predictable Session Key Generation in Apache::AppSamurai::Util

Vulnerability report for CVE-2026-19565, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-23

Last updated on: 2026-08-23

Assigner: CPANSec

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-23
Last Modified
2026-08-23
Generated
2026-08-24
AI Q&A
2026-08-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-341 A number or object is predictable based on observations that the attacker can make about the state of the system or network, such as time, process ID, etc.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves Apache::AppSamurai::Util versions up to 1.01 for Perl generating predictable session authentication keys. The keys are created using predictable inputs like the system clock, process ID, and fixed SHA-256 rounds. Attackers can exploit this by guessing the exact time and process ID to recreate session cookies and bypass authentication.

Detection Guidance

Detecting this vulnerability requires checking if Apache::AppSamurai::Util versions through 1.01 are installed and if session keys are generated predictably. Inspect Perl modules for the vulnerable version and review session cookie generation logic in Apache::AppSamurai.pm.

Impact Analysis

An attacker could gain unauthorized access to protected resources by predicting session cookies. This allows bypassing login mechanisms, potentially exposing sensitive data or performing actions on behalf of legitimate users without their credentials.

Compliance Impact

This vulnerability could lead to unauthorized access to personal or sensitive data, violating confidentiality requirements in GDPR and HIPAA. Organizations using affected software may face compliance failures, legal penalties, and reputational damage due to data breaches.

Mitigation Strategies

Upgrade Apache::AppSamurai::Util to a patched version if available. If not, disable session key generation via predictable methods and implement stronger session key generation using cryptographically secure random values.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-19565. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart