4

CVE-2025-64503: openprinting cups-filters Out-of-bounds Write

CVSS: 4.0v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2025-64503DEBIAN-CVE-2025-64503
Published 12-11-2025Last modified 13-11-2025

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.

Overall risk
26/100
0100
Medium · default modelHow is this calculated?
CVSS score
4.0/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.23%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 7 · Related 4

Timeline

  1. 12-11-2025
    PublishedVulnerability first disclosed.
  2. 13-11-2025
    Last 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

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

19-09-202619-10-2026
EPSS score
0.23%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Cups Filters

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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
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
Show all 12 references