CVE-2025-40932

Apache::SessionX versions through 2.01 for Perl create insecure session id

Published Feb 26, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
Description
Apache::SessionX versions through 2.01 for Perl create insecure session id.

Apache::SessionX generates session ids insecurely. The default session id generator in Apache::SessionX::Generate::MD5 returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. 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.

Remediation

Vendor Solution

Consider alternate solutions like https://metacpan.org/pod/Apache::SessionX::Generate::Random

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Grichter apache\
CPEs cpe:2.3:a:grichter:apache\:\:sessionx:*:*:*:*:*:perl:*:*
Vendors & Products Grichter apache\
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Grichter
Grichter apache::sessionx
Vendors & Products Grichter
Grichter apache::sessionx
Type Values Removed Values Added
Description Apache::SessionX versions through 2.01 for Perl create insecure session id. Apache::SessionX generates session ids insecurely. The default session id generator in Apache::SessionX::Generate::MD5 returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. 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.
Title Apache::SessionX versions through 2.01 for Perl create insecure session id
Weaknesses CWE-338
CWE-340
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Feb 27, 2026, 6:41 PM
Reserved
Apr 16, 2025, 9:05 AM
Status
Analyzed
Published
Feb 27, 2026, 12:16 AM
Modified
Jun 17, 2026, 9:22 AM