# CVE-2023-43786: Libx11: stack exhaustion from infinite recursion in putsubimage()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, 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-43786, UBUNTU-CVE-2023-43786, DEBIAN-CVE-2023-43786
- Record: https://cvemate.com/vulnerability/CVE-2023-43786 · JSON: https://cvemate.com/vulnerability/CVE-2023-43786/json

## Description

```text
A vulnerability was found in libX11 due to an infinite loop within the PutSubImage() function. This flaw allows a local user to consume all available system resources and cause a denial of service condition.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.475%, percentile 42.709%, 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-43786>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2242253>
- <http://www.openwall.com/lists/oss-security/2024/01/24/9>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/63IBRFLQVZSMOAZBZOBKFWJP26ILRAGQ/>
- <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-43786>
- <https://ubuntu.com/security/CVE-2023-43786>
- <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-43786>
- <https://security-tracker.debian.org/tracker/CVE-2023-43786>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43786>

---

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