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.
Published: 2026-08-23
Score: 3.7 Low
EPSS: < 1% Very Low
KEV: No
Impact: Authentication bypass via predictable session cookie
Action: Migrate
AI Analysis

Impact

Apache AppSamurai Util up to version 1.01 generates session authentication keys using only the current time and the process ID, producing 64‑character hex strings that are largely deterministic. Because the first microsecond of a high‑resolution timestamp and the process ID are within a small, predictable range, an attacker who can estimate the creation moment of a session is able to enumerate a limited set of candidate keys. Using a valid key, the attacker can forge the session cookie, bypass authentication, and access protected resources, effectively compromising confidentiality and integrity of user data.

Affected Systems

All installations of Apache AppSamurai Util for Perl through version 1.01 are affected. The module has not been updated since 2008 and is no longer maintained, so organizations using this legacy component run an unpatched vulnerability.

Risk and Exploitability

The vulnerability has a CVSS score of 3.7, categorizing it as low severity. The EPSS score is less than 1 % and the issue is not listed in CISA’s KEV catalog. Attackers may exploit the predictability of session keys if they can approximate the second a session was created and identify the worker process ID, enabling enumeration of potential keys that, when matched against the server, would allow forging of session cookies and bypass authentication. Although the key space is small, the deterministic algorithm makes enumeration feasible, so the risk of exploitation remains tangible, albeit lower than in higher‑severity cases.

Generated by OpenCVE AI on August 25, 2026 at 21:44 UTC.

Remediation

Vendor Workaround

Apache::AppSamurai has not been released since 2008. Users should migrate to an alternative solution.


OpenCVE Recommended Actions

  • Identify all Apache AppSamurai Util deployments and confirm they are version 1.01 or earlier.
  • Migrate the affected sites to a modern, actively maintained session management solution that generates cryptographically secure random session keys.
  • Verify that the new session system correctly ties the session cookie to the server’s secret key and that no predictable data is used in key generation.

Generated by OpenCVE AI on August 25, 2026 at 21:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 24 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
First Time appeared Pauldoom
Pauldoom app Samurai Util
Vendors & Products Pauldoom
Pauldoom app Samurai Util

Sun, 23 Aug 2026 22:30:00 +0000

Type Values Removed Values Added
References

Sun, 23 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
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.
Title Apache::AppSamurai::Util versions through 1.01 for Perl generate predictable session authentication keys from the clock and process id in CreateSessionAuthKey
Weaknesses CWE-341
References

Subscriptions

Pauldoom App Samurai Util
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-08-25T19:31:51.184Z

Reserved: 2026-08-11T18:08:03.462Z

Link: CVE-2026-19565

cve-icon Vulnrichment

Updated: 2026-08-23T22:05:03.347Z

cve-icon NVD

Status : Deferred

Published: 2026-08-23T20:16:50.053

Modified: 2026-08-26T16:51:19.490

Link: CVE-2026-19565

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T21:45:03Z

Weaknesses
  • CWE-341

    Predictable from Observable State