# CVE-2026-5081: Apache::Session::Generate::ModUniqueId versions from 1.54 through 1.94 for Perl session ids are insecure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-340
- **Published:** 2026-05-06T12:16:38.452Z
- **Modified:** 2026-10-26T19:10:00.163Z

## Who should check

- Anyone running CHORNY Apache::Session::Generate::ModUniqueId \>= 1.54, \<= 1.94

## 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.

## Affected and fixed versions

- CHORNY Apache::Session::Generate::ModUniqueId: \>= 1.54, \<= 1.94 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-5081. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-5081.md
Affected: CHORNY Apache::Session::Generate::ModUniqueId >= 1.54, <= 1.94
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for CHORNY Apache::Session::Generate::ModUniqueId: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-5081 being exploited?

There is no confirmed exploitation: CVE-2026-5081 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-5081?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-5081?

CHORNY Apache::Session::Generate::ModUniqueId \>= 1.54, \<= 1.94.

### Is there a fix for CVE-2026-5081?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-5081?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- article: <https://httpd.apache.org/docs/current/mod/mod_unique_id.html>
- other: <https://metacpan.org/pod/Apache::Session::Generate::Random>
- other: <http://www.openwall.com/lists/oss-security/2026/05/06/6>
- other: <https://access.redhat.com/security/cve/CVE-2026-5081>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2467174>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5081.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-5081>

HTML: <https://flawdb.com/CVE-2026-5081> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-5081>
