CVE-2026-5081Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libapache-session-perl | Fix pending | UBUNTU-CVE-2026-5081 | |
| Ubuntu 26.04 | libapache-session-perl | Under investigation | UBUNTU-CVE-2026-5081 | |
| Ubuntu 25.10 | libapache-session-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-5081 | |
| Ubuntu 24.04 | libapache-session-perl | Under investigation | UBUNTU-CVE-2026-5081 | |
| Ubuntu 22.04 | libapache-session-perl | Under investigation | UBUNTU-CVE-2026-5081 | |
| Ubuntu 20.04 | libapache-session-perl | Fix pending | UBUNTU-CVE-2026-5081 | |
| Ubuntu 18.04 | libapache-session-perl | Fix pending | UBUNTU-CVE-2026-5081 | |
| Ubuntu 16.04 | libapache-session-perl | Fix pending | UBUNTU-CVE-2026-5081 | |
| Debian 14 | libapache-session-perl | Will 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 13 | libapache-session-perl | Will 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 12 | libapache-session-perl | Will 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.
- CHORNY Apache::Session::Generate::ModUniqueId: affected: 1.54 to 1.94
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
- https://httpd.apache.org/docs/current/mod/mod_unique_id.html
- https://metacpan.org/pod/Apache::Session::Generate::Random
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.