CVE-2025-64503: openprinting cups-filters Out-of-bounds Write
Vulnerability summary
CVE-2025-64503 is a medium (CVSS 4.0) Out-of-bounds Write vulnerability in openprinting cups-filters. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 12.7% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 7 · Related 4Timeline
- 12-11-2025PublishedVulnerability first disclosed.
- 13-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LDiffers
- OSV · DebianEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LDiffers
- NVDNIST3.3LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LDiffers
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
+0.01 pp
From 0.21% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCups Filters
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian2 products
- cups-filters< 1.28.17-3+deb12u2 | < 1.28.17-6+deb13u1 | < 1.28.17-7
- libcupsfilters< 2.0.0-3+deb13u1 | < 2.1.1-2
Openprinting2 products
- cups-filterscups-filters < 1.28.18 | libcupsfilters >= 2.0.0, < 2.1.2 | < 1.28.18
- libcupsfilters≥ 2.0.0, < 2.1.2
Ubuntu2 products
- cups-filters< 1.8.3-2ubuntu3.5+esm3 | < 1.20.2-0ubuntu3.3+esm2 | < 1.27.4-1ubuntu0.4+esm1 | < 1.28.15-0ubuntu1.5
- libcupsfilters< 2.0.0-0ubuntu7.2 | < 2.1.1-0ubuntu3.1
3 vendors · 6 products
References
12 links- github.com/OpenPrinting/cups-filters/security/advisories/GHSA-893j-2wr2-wrh9X Refsource CONFIRMREPORTExploitVendor Advisory
- github.com/OpenPrinting/cups-filters/commit/50d94ca0f2fa6177613c97c59791bde568631865X Refsource MISCPatch