BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-40931 in Chorny Apache\

Critical 9.1

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 ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.1
EPSS0.9%
EPSS percentile58th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Chorny Apache\ ≤ 1.94

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40931
BreachSpider IDBS-2026-GLOBAL-259426-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2026-03-05
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-338: CWE-338

CWE-340: CWE-340

Analysis AI-written, not human-reviewed

Apache::Session::Generate::MD5 versions through 1.94 for Perl generate insecure session IDs using MD5 hashing with predictable seeds, posing a risk to session hijacking.

An attacker can exploit the predictable nature of the session ID generation to guess or brute-force session IDs, leading to unauthorized access to user sessions.

Questions

What is CVE-2025-40931?

Apache::Session::Generate::MD5 versions through 1.94 for Perl generate insecure session IDs using MD5 hashing with predictable seeds, posing a risk to session hijacking.

What is the CVSS score for CVE-2025-40931?

CVE-2025-40931 has CVSS 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.9%.

Is CVE-2025-40931 actively exploited?

No confirmed active exploitation of CVE-2025-40931 as of 2026-09-25.

How do I remediate CVE-2025-40931?

Priority: IMMEDIATE.

What systems are affected by CVE-2025-40931?

CVE-2025-40931 affects Chorny Apache\.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Chorny","product":"Apache\","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.