---
id: CVE-2026-87875
title: >-
  Cups: openprinting cups: heap out-of-bounds read in cupsutf32toutf8() via
  missing source-length bound
summary: >-
  The cupsUTF32ToUTF8() function in CUPS's cups/transcode.c lacks a
  source-length bound and can read past the end of the source buffer, resulting
  in a heap out-of-bounds read. This is reachable via SNMP supply-description
  parsing in backen…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-125
vendor: Red Hat
product: cups-main
affected:
  - cups-main (all versions)
  - cups (all versions)
  - cups (all versions)
  - cups (all versions)
  - cups (all versions)
  - cups (all versions)
  - rhel9/cups (all versions)
  - rhcos/rhcos (all versions)
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-09T17:57:56.759252Z'
exploitAvailable: true
published: '2026-09-09'
updated: '2026-09-11'
sourceUpdated: '2026-09-11T23:55:37.452Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-87875'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:66600'
    label: 'RHSA-2026:66600'
  - url: 'https://access.redhat.com/security/cve/CVE-2026-87875'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2530994'
    label: RHBZ#2530994
  - url: >-
      https://github.com/OpenPrinting/cups/commit/0c6842fc615e8afa284136a092da8178abf5f142
  - url: >-
      https://github.com/OpenPrinting/cups/commit/2b1dc178a2d2325135b855142e384f4e8c42d8e4
  - url: >-
      https://github.com/OpenPrinting/cups/security/advisories/GHSA-559w-7676-3xrq
tags:
  - cve.org
  - exploit-available
epss: 0.0032
epssPercentile: 0.22362
ingestedAt: '2026-09-14T15:23:07.484Z'
---

## Overview

The cupsUTF32ToUTF8() function in CUPS's cups/transcode.c lacks a source-length bound and can read past the end of the source buffer, resulting in a heap out-of-bounds read. This is reachable via SNMP supply-description parsing in backend/snmp-supplies.c with attacker-controlled content.

## Affected

- `cups-main (all versions)`
- `cups (all versions)`
- `cups (all versions)`
- `cups (all versions)`
- `cups (all versions)`
- `cups (all versions)`
- `rhel9/cups (all versions)`
- `rhcos/rhcos (all versions)`

## Remediation

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

### Workarounds

Fixed on upstream master branch with commit 0c6842f and for versions 2.4.x with commit 2b1dc17.
