CVE-2026-5081
published critical CVSS 3.1 · 9.1Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session ids are insecure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| CHORNY | — | Apache-SessionApache::Session::Generate::ModUniqueId · 1.54 through 1.94 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Red Hat | — | perlRed Hat Hardened Images | Unaffected | Not required | redhat-SADP |
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 flaw was found in Apache::Session::Generate::ModUniqueId, a Perl module designed to generate session identifiers. This module uses the Apache mod_unique_id plugin's UNIQUE_ID environment variable directly as a session ID. The UNIQUE_ID is constructed from easily guessable information, such as the server's IP address, process ID, and timestamp, without sufficient randomness or obfuscation. This predictability allows a remote attacker to potentially guess valid session IDs, which could lead to session hijacking and unauthorized access to user accounts or sensitive information.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.2 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| CHORNY | Apache::Session::Generate::ModUniqueId | 1.54 through 1.94 (affected · custom)Default: unaffected | CPANSec · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-340 CWE-340 Generation of Predictable Numbers or Identifiers
- CWE-341 Predictable from Observable State
References
6- http://www.openwall.com/lists/oss-security/2026/05/06/6
- https://access.redhat.com/security/cve/CVE-2026-5081
- RHBZ#2467174 https://bugzilla.redhat.com/show_bug.cgi?id=2467174
- https://httpd.apache.org/docs/current/mod/mod_unique_id.html
- https://metacpan.org/pod/Apache::Session::Generate::Random
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5081.json
Provider assertions
4CPANSec · cna
Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session ids are insecure
redhat-SADP · adp
Apache::Session::Generate::ModUniqueId: Perl: mod_unique_id: Apache HTTP Server: Apache::Session::Generate::ModUniqueId: Session ID predictability allows unauthorized access
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5f4bc2c6921da0ded11ae0574dd2a8d59789ceaf527add9c0c6c538bd4a67d80
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record