---
id: CVE-2023-43787
title: 'Libx11: integer overflow in xcreateimage() leading to a heap overflow'
summary: >-
  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.
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-122
vendor: Red Hat
product: libX11
affected:
  - libX11 < 1.8.7
  - libX11 (all versions)
  - libX11 (all versions)
  - libX11
  - libX11
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2024-01-29T18:42:49.281830Z'
published: '2023-10-10'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T11:32:45.568Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-43787'
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-43787'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2242254'
    label: RHBZ#2242254
tags:
  - cve.org
epss: 0.00475
epssPercentile: 0.41291
ingestedAt: '2026-11-07T12:16:41.109Z'
---

## Overview

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.

## Affected

- `libX11 < 1.8.7`
- `libX11 (all versions)`
- `libX11 (all versions)`
- `libX11`
- `libX11`

## Remediation

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