CVE-2026-5081 Details
Description
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.
A vulnerability exists in Apache::Session::Generate::ModUniqueId versions 1.54 through 1.94, where session IDs are generated using the UNIQUE_ID environment variable from the Apache mod_unique_id plugin. This ID is based on the public IPv4 address, process ID, epoch time, a 16-bit counter, and a thread index, without any obfuscation. The lack of randomness and the predictability of the components used to create the session ID make it insecure, as the server IP can be public or inferred from previous session IDs, and the process IDs and timestamps are easily guessable.
Users can switch to Apache::Session::Generate::Random, which creates secure session IDs using system randomness. Instructions for downloading this module are available on MetaCPAN.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-5081 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2467174 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5081.json | redhat-SADP | |
| https://httpd.apache.org/docs/current/mod/mod_unique_id.html | CPANSec | Product |
| https://metacpan.org/pod/Apache::Session::Generate::Random | CPANSec | Product |
| http://www.openwall.com/lists/oss-security/2026/05/06/6 | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-340 | Generation of Predictable Numbers or Identifiers | CPANSec |
| CWE-341 | Predictable from Observable State | redhat-SADP |
Affected Products
| Product | Versions |
|---|---|
| chorny apache::session::generate::moduniqueid | >= 1.54, <= 1.94 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 5, 2026 | Initial Analysis | [email protected] |
| May 6, 2026 | CVE Modified | CVE |
| May 6, 2026 | CVE Modified | CISA-ADP |
| May 6, 2026 | New CVE Received | CPANSec |