---
id: CVE-2023-43788
title: 'Libxpm: out of bounds read in xpmcreatexpmimagefrombuffer()'
summary: >-
  A vulnerability was found in libXpm due to a boundary condition within the
  XpmCreateXpmImageFromBuffer() function. This flaw allows a local attacker to
  trigger an out-of-bounds read error and read the contents of memory on the
  system.
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-125
vendor: Red Hat
product: libXpm
affected:
  - libXpm < 3.5.17
  - libXpm (all versions)
  - motif (all versions)
  - libXpm (all versions)
  - motif (all versions)
  - libXpm
  - libXpm
  - motif
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2025-06-16T17:04:06.279449Z'
published: '2023-10-10'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T05:01:33.858Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-43788'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:2146'
    label: 'RHSA-2024:2146'
  - url: 'https://access.redhat.com/errata/RHSA-2024:2217'
    label: 'RHSA-2024:2217'
  - url: 'https://access.redhat.com/errata/RHSA-2024:2974'
    label: 'RHSA-2024:2974'
  - url: 'https://access.redhat.com/errata/RHSA-2024:3022'
    label: 'RHSA-2024:3022'
  - url: 'https://access.redhat.com/security/cve/CVE-2023-43788'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2242248'
    label: RHBZ#2242248
tags:
  - cve.org
epss: 0.0038
epssPercentile: 0.32203
ingestedAt: '2026-11-07T05:10:28.780Z'
---

## Overview

A vulnerability was found in libXpm due to a boundary condition within the XpmCreateXpmImageFromBuffer() function. This flaw allows a local attacker to trigger an out-of-bounds read error and read the contents of memory on the system.

## Affected

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

## Remediation

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