CVE & CISA-KEV Catalog

CVE-2025-40931

CRITICAL
9.1
CVSS v3
NVD

Description

Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id. Apache::Session::Generate::MD5 generates session ids insecurely. The default session id generator 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. Note that the libapache-session-perl package in some Debian-based Linux distributions may be patched to use Crypt::URandom.

How to fix

No published remediation has been found for this vulnerability's affected products yet.

Mitigation guidance may be in the linked vendor advisories in the References section below.

TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploit Intelligence

0.58%probability of exploitation in 30 days
44thpercentile

Moderate risk: more likely to be exploited than 44% of all known CVEs.

References

Related Vulnerabilities

Other CWE-338 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2008-0166High7.571%-Fix
CVE-2009-2367Critical9.823%--
CVE-2024-29868Critical9.16.0%--
CVE-2024-31497Medium5.95.8%-Fix
CVE-2021-43799High8.65.4%-Fix
CVE-2008-3280Medium5.94.0%--
Embed a live status badge for CVE-2025-40931
CVE-2025-40931 severity badge

Markdown

[![CVE-2025-40931](https://tridentstack.com/cve/badge/CVE-2025-40931.svg)](https://tridentstack.com/cve/CVE-2025-40931)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-40931"><img src="https://tridentstack.com/cve/badge/CVE-2025-40931.svg" alt="CVE-2025-40931"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-12.