CVE-2025-64503

EUVD-2025-150365
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
4 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub_MCNA
4 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Base Score
CVSS 3.x
EPSS Score
Percentile: 12%
Affected Products (NVD)
VendorProductVersion
openprintingcups-filters
𝑥
< 1.28.18
openprintinglibcupsfilters
2.0.0 ≤
𝑥
< 2.1.2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
cups-filters
bookworm
1.28.17-3+deb12u2
fixed
bookworm (security)
vulnerable
bullseye
vulnerable
bullseye (security)
1.28.7-1+deb11u4
fixed
forky
1.28.17-7
fixed
sid
1.28.17-7
fixed
trixie
1.28.17-6+deb13u1
fixed
libcupsfilters
forky
2.1.1-2
fixed
sid
2.1.1-2
fixed
trixie
2.0.0-3+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
cups-filters
bionic
Fixed 1.20.2-0ubuntu3.3+esm2
released
focal
Fixed 1.27.4-1ubuntu0.4+esm1
released
jammy
Fixed 1.28.15-0ubuntu1.5
released
noble
not-affected
plucky
not-affected
questing
not-affected
xenial
Fixed 1.8.3-2ubuntu3.5+esm3
released
libcupsfilters
jammy
dne
noble
Fixed 2.0.0-0ubuntu7.2
released
plucky
Fixed 2.1.1-0ubuntu2.1
released
questing
Fixed 2.1.1-0ubuntu3.1
released