CVEfocus › CVE database › CVE-2025-40932

CVE-2025-40932Apache::SessionX versions through 2.01 for Perl create insecure session id

CVSS 8.2 HighEPSS 0.2% (higher than 15% of CVEs)Published 2026-02-26Updated 2026-02-27Assigner: CPANSec

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.

CWE-338CWE-340

What to do

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libapache-sessionx-perlFix pendingUBUNTU-CVE-2025-40932
Ubuntu 26.04libapache-sessionx-perlUnder investigationUBUNTU-CVE-2025-40932
Ubuntu 25.10libapache-sessionx-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-40932
Ubuntu 24.04libapache-sessionx-perlUnder investigationUBUNTU-CVE-2025-40932
Ubuntu 22.04libapache-sessionx-perlUnder investigationUBUNTU-CVE-2025-40932
Ubuntu 20.04libapache-sessionx-perlFix pendingUBUNTU-CVE-2025-40932
Ubuntu 18.04libapache-sessionx-perlFix pendingUBUNTU-CVE-2025-40932
Ubuntu 16.04libapache-sessionx-perlFix pendingUBUNTU-CVE-2025-40932
Debian 12libapache-sessionx-perlFix pendingDEBIAN-CVE-2025-40932

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.