---
id: CVE-2023-43786
title: 'Libx11: stack exhaustion from infinite recursion in putsubimage()'
summary: >-
  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.
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-400
vendor: Red Hat
product: libXpm
affected:
  - libXpm < 3.5.17
  - libX11 (all versions)
  - libX11 (all versions)
  - libX11
  - libX11
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-04-25T16:06:07.325768Z'
exploitAvailable: true
published: '2023-10-10'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T11:31:57.214Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-43786'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:2145'
    label: 'RHSA-2024:2145'
  - url: 'https://access.redhat.com/errata/RHSA-2024:2973'
    label: 'RHSA-2024:2973'
  - url: 'https://access.redhat.com/security/cve/CVE-2023-43786'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2242253'
    label: RHBZ#2242253
tags:
  - cve.org
  - exploit-available
epss: 0.00475
epssPercentile: 0.4131
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/jfrog/jfrog-CVE-2023-43786-libX11_DoS'
  checkedAt: '2026-11-07T17:43:23.649Z'
ingestedAt: '2026-11-07T12:16:41.116Z'
---

## Overview

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.

## Affected

- `libXpm < 3.5.17`
- `libX11 (all versions)`
- `libX11 (all versions)`
- `libX11`
- `libX11`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
