CVEfocus › CVE database › CVE-2025-64503

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

CVSS 4.0 MediumEPSS 0.2% (higher than 9% of CVEs)Published 2025-11-12Updated 2025-11-13Assigner: GitHub_M

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.

CWE-787

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
14Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10cups-filtersNot affected
vulnerable_code_not_present
Ubuntu 25.10libcupsfiltersFixed2.1.1-0ubuntu3.1UBUNTU-CVE-2025-64503
Ubuntu 24.04cups-filtersNot affected
vulnerable_code_not_present
Ubuntu 24.04libcupsfiltersFixed2.0.0-0ubuntu7.2UBUNTU-CVE-2025-64503
Ubuntu 22.04cups-filtersFixed1.28.15-0ubuntu1.5UBUNTU-CVE-2025-64503
Ubuntu 20.04cups-filtersFix pending1.27.4-1ubuntu0.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2025-64503
Ubuntu 18.04cups-filtersFix pending1.20.2-0ubuntu3.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-64503
Ubuntu 16.04cups-filtersFix pending1.8.3-2ubuntu3.5+esm3 (Ubuntu Pro)UBUNTU-CVE-2025-64503
Debian 14cups-filtersFixed1.28.17-7DEBIAN-CVE-2025-64503
Debian 14libcupsfiltersFixed2.1.1-2DEBIAN-CVE-2025-64503
Debian 13cups-filtersFixed1.28.17-6+deb13u1DEBIAN-CVE-2025-64503
Debian 13libcupsfiltersFixed2.0.0-3+deb13u1DEBIAN-CVE-2025-64503
Debian 12cups-filtersFixed1.28.17-3+deb12u2DEBIAN-CVE-2025-64503
Red Hat Enterprise Linux 10cups-filtersFix pending
Fix deferred
Red Hat Enterprise Linux 10cups-filters-driverlessFix pending
Fix deferred
Red Hat Enterprise Linux 9cups-filtersFix pending
Fix deferred
Red Hat Enterprise Linux 9cups-filters-develFix pending
Fix deferred
Red Hat Enterprise Linux 9cups-filters-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8cups-filtersFix pending
Fix deferred
Red Hat Enterprise Linux 8cups-filters-develFix pending
Fix deferred
Red Hat Enterprise Linux 8cups-filters-libsFix pending
Fix deferred
Red Hat Enterprise Linux 7cups-filtersFix pending
Fix deferred
Red Hat Enterprise Linux 7cups-filters-develFix pending
Fix deferred
Red Hat Enterprise Linux 7cups-filters-libsFix pending
Fix deferred

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.