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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-05-06T12:16:38.452Z
- Modified: 2026-10-26T19:10:00.163Z
- Weaknesses: CWE-340, CWE-341
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- Apache-Session: from 1.54 up to 1.94
- perl: no versions given
- chorny apache::session::generate::moduniqueid: from 1.54 up to 1.94

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://httpd.apache.org/docs/current/mod/mod_unique_id.html> (product, technical-description)
- <https://metacpan.org/pod/Apache::Session::Generate::Random> (product)
- <http://www.openwall.com/lists/oss-security/2026/05/06/6> (mailing-list, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-5081> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2467174> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5081.json>

## Sources

- CVE List: [CVE-2026-5081](https://www.cve.org/CVERecord?id=CVE-2026-5081), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2026-5081](https://nvd.nist.gov/vuln/detail/CVE-2026-5081), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-5081 · Whole record: https://cve.day/CVE-2026-5081.json · Rebuilt by cve.day 2026-11-25T22:59:20.769Z
