# CVE-2023-3138

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-06-28 · Modified: 2024-08-02
- Aliases: ALPINE-CVE-2023-3138, MGASA-2023-0206, SUSE-SU-2023:2531-1, SUSE-SU-2023:2614-1, RHSA-2023:6497, RHSA-2023:7029, RHSA-2024:1088, RHSA-2024:1417, UBUNTU-CVE-2023-3138, USN-6168-1, USN-6168-2, DEBIAN-CVE-2023-3138, DLA-3472-1, DSA-5433-1
- Record: https://cvemate.com/vulnerability/CVE-2023-3138 · JSON: https://cvemate.com/vulnerability/CVE-2023-3138/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.656%, percentile 77.432%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 45)

- alpine libx11 (Alpine Linux): \< 1.7.3.1-r1 \| \< 1.8-r1 \| \< 1.8.4-r1 \| \< 1.8.4-r4
- debian libx11 (Debian): \< 2:1.8.6-1 \| \< 2:1.6.7-1+deb10u3 \| \< 2:1.7.2-1+deb11u1 \| \< 2:1.8.4-2+deb12u1
- ubuntu libx11 (Ubuntu): \< 2:1.6.2-1ubuntu2.1+esm3 \| \< 2:1.6.3-1ubuntu2.2+esm2 \| \< 2:1.6.4-3ubuntu0.4+esm1 \| \< 2:1.6.9-2ubuntu1.5 \| \< 2:1.7.5-1ubuntu0.2
- mageia libx11 (Mageia): \< 1.7.0-1.4.mga8
- redhat enterprise\_linux: 8.0 \| 9.0
- opensuse libX11&distro=openSUSE Leap 15.4 (openSUSE): \< 1.6.5-150000.3.30.1
- opensuse libX11&distro=openSUSE Leap 15.5 (openSUSE): \< 1.6.5-150000.3.30.1
- opensuse libX11&distro=openSUSE Leap Micro 5.3 (openSUSE): \< 1.6.5-150000.3.30.1
- redhat libX11 (Red Hat): \< 0:1.7.0-8.el9 \| \< 0:1.6.8-6.el8 \| \< 0:1.7.0-8.el9\_2 \| \< 0:1.6.8-6.el8\_8
- redhat libX11-common (Red Hat): \< 0:1.7.0-8.el9 \| \< 0:1.6.8-6.el8 \| \< 0:1.7.0-8.el9\_2 \| \< 0:1.6.8-6.el8\_8
- redhat libX11-debuginfo (Red Hat): \< 0:1.7.0-8.el9 \| \< 0:1.6.8-6.el8 \| \< 0:1.7.0-8.el9\_2 \| \< 0:1.6.8-6.el8\_8
- redhat libX11-debugsource (Red Hat): \< 0:1.7.0-8.el9 \| \< 0:1.6.8-6.el8 \| \< 0:1.7.0-8.el9\_2 \| \< 0:1.6.8-6.el8\_8
- redhat libX11-devel (Red Hat): \< 0:1.7.0-8.el9 \| \< 0:1.6.8-6.el8 \| \< 0:1.7.0-8.el9\_2 \| \< 0:1.6.8-6.el8\_8
- redhat libX11-xcb (Red Hat): \< 0:1.7.0-8.el9 \| \< 0:1.6.8-6.el8 \| \< 0:1.7.0-8.el9\_2 \| \< 0:1.6.8-6.el8\_8
- redhat libX11-xcb-debuginfo (Red Hat): \< 0:1.7.0-8.el9 \| \< 0:1.6.8-6.el8 \| \< 0:1.7.0-8.el9\_2 \| \< 0:1.6.8-6.el8\_8
- suse libX11&distro=SUSE Enterprise Storage 7 (SUSE Linux Enterprise): \< 1.6.5-150000.3.30.1
- suse libX11&distro=SUSE Enterprise Storage 7.1 (SUSE Linux Enterprise): \< 1.6.5-150000.3.30.1
- suse libX11&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS (SUSE Linux Enterprise): \< 1.6.5-150000.3.30.1
- suse libX11&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS (SUSE Linux Enterprise): \< 1.6.5-150000.3.30.1
- suse libX11&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS (SUSE Linux Enterprise): \< 1.6.5-150000.3.30.1

## References (first 20 of 30)

- <https://access.redhat.com/security/cve/CVE-2023-3138>
- <https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c>
- <https://lists.x.org/archives/xorg-announce/2023-June/003406.html>
- <https://lists.x.org/archives/xorg-announce/2023-June/003407.html>
- <https://security.netapp.com/advisory/ntap-20231208-0008/>
- <https://security.alpinelinux.org/vuln/CVE-2023-3138>
- <https://advisories.mageia.org/MGASA-2023-0206.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32015>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20232531-1/>
- <https://bugzilla.suse.com/1212102>
- <https://www.suse.com/security/cve/CVE-2023-3138>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20232614-1/>
- <https://access.redhat.com/errata/RHSA-2023:6497>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.3_release_notes/index>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2213748>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_6497.json>
- <https://www.cve.org/CVERecord?id=CVE-2023-3138>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-3138>
- <https://access.redhat.com/errata/RHSA-2023:7029>

---

Data as of 2026-12-05T04:10:55.914Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
