# CVE-2023-43787: Libx11: integer overflow in xcreateimage() leading to a heap overflow

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-10-10 · Modified: 2026-11-07
- Aliases: ALPINE-CVE-2023-43787, UBUNTU-CVE-2023-43787, DEBIAN-CVE-2023-43787
- Record: https://cvemate.com/vulnerability/CVE-2023-43787 · JSON: https://cvemate.com/vulnerability/CVE-2023-43787/json

## Description

```text
A vulnerability was found in libX11 due to an integer overflow within the XCreateImage() function. This flaw allows a local user to trigger an integer overflow and execute arbitrary code with elevated privileges.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.517%, percentile 45.472%, 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

- alpine libx11 (Alpine Linux): \< 1.8.7-r0
- debian libx11 (Debian): \< 2:1.8.4-2+deb12u2 \| \< 2:1.8.7-1
- ubuntu libx11 (Ubuntu): \< 2:1.6.2-1ubuntu2.1+esm5 \| \< 2:1.6.3-1ubuntu2.2+esm4 \| \< 2:1.6.4-3ubuntu0.4+esm2 \| \< 2:1.6.9-2ubuntu1.6 \| \< 2:1.7.5-1ubuntu0.3 \| \< 2:1.8.6-1ubuntu1
- ubuntu libxpm (Ubuntu): \< 1:3.5.10-1ubuntu0.1+esm2 \| \< 1:3.5.11-1ubuntu0.16.04.1+esm2 \| \< 1:3.5.12-1ubuntu0.18.04.2+esm1 \| \< 1:3.5.12-1ubuntu0.20.04.2 \| \< 1:3.5.12-1ubuntu0.22.04.2 \| \< 1:3.5.12-1.1ubuntu1
- ubuntu motif (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 38
- redhat enterprise\_linux: 8.0 \| 9.0
- x.org libx11: \< 1.8.7

## References

- <https://access.redhat.com/errata/RHSA-2024:2145>
- <https://access.redhat.com/errata/RHSA-2024:2973>
- <https://access.redhat.com/security/cve/CVE-2023-43787>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2242254>
- <http://www.openwall.com/lists/oss-security/2024/01/24/9>
- <https://jfrog.com/blog/xorg-libx11-vulns-cve-2023-43786-cve-2023-43787-part-two/>
- <https://security.netapp.com/advisory/ntap-20231103-0006/>
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00005.html>
- <https://security.alpinelinux.org/vuln/CVE-2023-43787>
- <https://ubuntu.com/security/CVE-2023-43787>
- <https://ubuntu.com/security/notices/USN-6407-1>
- <https://ubuntu.com/security/notices/USN-6408-1>
- <https://ubuntu.com/security/notices/USN-6407-2>
- <https://ubuntu.com/security/notices/USN-6408-2>
- <https://www.cve.org/CVERecord?id=CVE-2023-43787>
- <https://security-tracker.debian.org/tracker/CVE-2023-43787>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43787>

---

Data as of 2026-12-05T04:11:18.692Z. 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
