# CVE-2023-3138: A vulnerability was found in libX11.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.66%, higher than 77% of CVEs (2026-12-02)
- Published: 2023-06-28T00:00:00.000Z
- Modified: 2026-06-17T06:13:26.193Z
- Weaknesses: CWE-119, CWE-787
- Assigned by: redhat

## Description

A vulnerability was found in libX11. The security flaw occurs because the functions in src/InitExt.c in libX11 do not check that the values provided for the Request, Event, or Error IDs are within the bounds of the arrays that those functions write to, using those IDs as array indexes. They trust that they were called with values provided by an Xserver adhering to the bounds specified in the X11 protocol, as all X servers provided by X.Org do. As the protocol only specifies a single byte for these values, an out-of-bounds value provided by a malicious server (or a malicious proxy-in-the-middle) can only overwrite other portions of the Display structure and not write outside the bounds of the Display structure itself, possibly causing the client to crash with this memory corruption.

(As written by CVE List.)

## Affected

- libX11: libX11 1.8.6
- x.org libx11: before 1.8.6
- redhat enterprise_linux: 8.0; 9.0

## References

- <https://access.redhat.com/security/cve/CVE-2023-3138> (third-party-advisory)
- <https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c> (patch)
- <https://lists.x.org/archives/xorg-announce/2023-June/003406.html> (mailing-list, patch)
- <https://lists.x.org/archives/xorg-announce/2023-June/003407.html> (mailing-list, patch)
- <https://security.netapp.com/advisory/ntap-20231208-0008/>

## Sources

- CVE List: [CVE-2023-3138](https://www.cve.org/CVERecord?id=CVE-2023-3138), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-3138](https://nvd.nist.gov/vuln/detail/CVE-2023-3138), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-3138 · Whole record: https://cve.day/CVE-2023-3138.json · Rebuilt by cve.day 2026-11-25T22:58:25.301Z
