CVE-2026-5081: Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session ids are insecure
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.
Security readout for executives and security teams
Plain-English summary
This flaw affects Perl applications that use Apache::Session::Generate::ModUniqueId for session IDs. Those IDs are built from predictable request metadata rather than security-grade randomness, so an attacker may be able to guess valid sessions and impersonate users.
Executive priority
Treat this as urgent where affected Perl applications protect customer, admin, or employee sessions. The main business risk is account takeover through predictable sessions, not server downtime.
Technical view
Apache::Session::Generate::ModUniqueId versions 1.54 through 1.94 use Apache mod_unique_id UNIQUE_ID values as session IDs. The source data includes IP address, process ID, epoch time, counter, and thread index, with no obfuscation. The CVE maps this to predictable random number generation weaknesses.
Likely exposure
Exposure is likely limited to Perl applications using Apache-Session with Apache::Session::Generate::ModUniqueId for authentication or security-sensitive session identifiers. General use of Apache mod_unique_id for log correlation is not the issue described.
Exploitation context
The source bundle does not state active exploitation, and KEV is false. Risk remains high because the attack is network-reachable, requires no privileges or user interaction, and targets session confidentiality and integrity through predictable IDs.
Researcher notes
Do not conflate mod_unique_id’s log-correlation purpose with session security. The cited Apache documentation says UNIQUE_ID is for request uniqueness, while the CVE explains its components are guessable or leaked. Evidence does not include exploit-in-the-wild claims.
Mitigation direction
Inventory Perl applications using Apache::Session::Generate::ModUniqueId.
Stop using ModUniqueId-generated values for security-sensitive session IDs.
Check Apache-Session or distributor guidance for a fixed version or migration path.
Evaluate a cryptographic random session ID generator, such as documented Apache::Session random generation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-340: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-340 · source CWE mapping
Generation of Predictable Numbers or Identifiers
Generation of Predictable Numbers or Identifiers represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Predictable from Observable State represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.