Vulnerability · Published Nov 12, 2025 · Assigned by GitHub_M

CVE-2025-64503[BIGSLEEP-434615384] cups-filters 1.x: out of bounds write in pdftoraster

Medium 4.0

In plain English

A medium-severity out-of-bounds write in cups-filters from OpenPrinting. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.2%top 86.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

cups-filters contains backends, filters, and other software required to get the cups printing service working on operating systems other than macos. In cups-filters prior to 1.28.18, by crafting a PDF file with a large `MediaBox` value, an attacker can cause CUPS-Filter 1.x’s `pdftoraster` tool to write beyond the bounds of an array. First, a PDF with a large `MediaBox` width value causes `header.cupsWidth` to become large. Next, the calculation of `bytesPerLine = (header.cupsBitsPerPixel * header.cupsWidth + 7) / 8` overflows, resulting in a small value. Then, `lineBuf` is allocated with the small `bytesPerLine` size. Finally, `convertLineChunked` calls `writePixel8`, which attempts to write to `lineBuf` outside of its buffer size (out of bounds write). In libcupsfilters, the maintainers found the same `bytesPerLine` multiplication without overflow check, but the provided test case does not cause an overflow there, because the values are different. Commit 50d94ca0f2fa6177613c97c59791bde568631865 contains a patch, which is incorporated into cups-filters version 1.28.18.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12cups-filters1.28.17-3+deb12u2DEBIAN-CVE-2025-64503
Debian:13cups-filters1.28.17-6+deb13u1DEBIAN-CVE-2025-64503
Debian:14cups-filters1.28.17-7DEBIAN-CVE-2025-64503
Debian:13libcupsfilters2.0.0-3+deb13u1DEBIAN-CVE-2025-64503
Debian:14libcupsfilters2.1.1-2DEBIAN-CVE-2025-64503
Ubuntu:22.04:LTScups-filters1.28.15-0ubuntu1.5USN-7878-1
Ubuntu:22.04:LTScups-filters1.28.15-0ubuntu1.5UBUNTU-CVE-2025-64503
Ubuntu:24.04:LTScups-filters2.0.0-0ubuntu4.1USN-7878-1
Ubuntu:25.10cups-filters2.0.1-0ubuntu3.25.10.1USN-7878-1
Ubuntu:24.04:LTSlibcupsfilters2.0.0-0ubuntu7.2USN-7877-1
Ubuntu:24.04:LTSlibcupsfilters2.0.0-0ubuntu7.2UBUNTU-CVE-2025-64503
Ubuntu:25.10libcupsfilters2.1.1-0ubuntu3.1UBUNTU-CVE-2025-64503
Ubuntu:25.10libcupsfilters2.1.1-0ubuntu3.1USN-7877-1

Affected products (as reported)

VendorProductVersions
OpenPrinting cups-filters cups-filters < 1.28.18libcupsfilters >= 2.0.0, < 2.1.2

Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References