CVEfocus › CVE database › CVE-2026-5081

CVE-2026-5081Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session…

CVSS 9.1 CriticalEPSS 0.5% (higher than 35% of CVEs)Published 2026-05-06Updated 2026-07-15Assigner: CPANSec

Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session ids are insecure. Apache::Session::Generate::ModUniqueId (added in version 1.54) uses the value of the UNIQUE_ID environment variable for the session id. The UNIQUE_ID variable is set by the Apache mod_unique_id plugin, which generates unique ids for the request. The id is based on the IPv4 address, the process id, the epoch time, a 16-bit counter and a thread index, with no obfuscation. The server IP is often available to the public, and if not available, can be guessed from previous session ids being issued. The process ids may also be guessed from previous session ids. The timestamp is easily guessed (and leaked in the HTTP Date response header). The purpose of mod_unique_id is to assign a unique id to requests so that events can be correlated in different logs. The id is not designed, nor is it suitable for security purposes.

CWE-340CWE-341

What to do

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

4Fix pending
3Under investigation
4Will 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-perlFix pendingUBUNTU-CVE-2026-5081
Ubuntu 26.04libapache-session-perlUnder investigationUBUNTU-CVE-2026-5081
Ubuntu 25.10libapache-session-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5081
Ubuntu 24.04libapache-session-perlUnder investigationUBUNTU-CVE-2026-5081
Ubuntu 22.04libapache-session-perlUnder investigationUBUNTU-CVE-2026-5081
Ubuntu 20.04libapache-session-perlFix pendingUBUNTU-CVE-2026-5081
Ubuntu 18.04libapache-session-perlFix pendingUBUNTU-CVE-2026-5081
Ubuntu 16.04libapache-session-perlFix pendingUBUNTU-CVE-2026-5081
Debian 14libapache-session-perlWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-5081
Debian 13libapache-session-perlWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-5081
Debian 12libapache-session-perlWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-5081

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: In cases where the session id is used for authentication or provides access to restricted data, consider alternate solutions like Apache::Session::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.