CVEfocus › CVE database › CVE-2026-8503

CVE-2026-8503Apache::Session::Generate::SHA256 versions before 1.3.19 for Perl create insecure…

CVSS 6.5 MediumEPSS 0.4% (higher than 25% of CVEs)Published 2026-05-15Updated 2026-05-15Assigner: CPANSec

Apache::Session::Generate::SHA256 versions before 1.3.19 for Perl create insecure session ids. Apache::Session::Generate::SHA256 generated session ids insecurely. The default session id generator returns a SHA-256 hash of the built-in rand() function, the epoch time, and the PID, that is hashed again. These are predictable, low-entropy sources. Predicable session ids could allow an attacker to gain access to systems. Note that version 1.3.19 has a fallback without warning to use insecure session generation method if the call to Crypt::URandom::urandom fails. However, this is unlikely as Crypt::URandom is a hardcoded requirement of the module. This issue is similar to CVE-2025-40931 for Apache::Session::Generate::MD5.

CWE-338CWE-340

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has 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

3Fixed
4Fix 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-session-browseable-perlFix pendingUBUNTU-CVE-2026-8503
Ubuntu 26.04libapache-session-browseable-perlUnder investigationUBUNTU-CVE-2026-8503
Ubuntu 25.10libapache-session-browseable-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-8503
Ubuntu 24.04libapache-session-browseable-perlUnder investigationUBUNTU-CVE-2026-8503
Ubuntu 22.04libapache-session-browseable-perlUnder investigationUBUNTU-CVE-2026-8503
Ubuntu 20.04libapache-session-browseable-perlFix pendingUBUNTU-CVE-2026-8503
Ubuntu 18.04libapache-session-browseable-perlFix pendingUBUNTU-CVE-2026-8503
Ubuntu 16.04libapache-session-browseable-perlFix pendingUBUNTU-CVE-2026-8503
Debian 14libapache-session-browseable-perlFixed1.3.19-1DEBIAN-CVE-2026-8503
Debian 13libapache-session-browseable-perlFixed1.3.16-1+deb13u1DEBIAN-CVE-2026-8503
Debian 12libapache-session-browseable-perlFixed1.3.11-3+deb12u1DEBIAN-CVE-2026-8503

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.

Workaround: Upgrade to version 1.3.19 or later.

Vendor advisories:

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.