CVE & CISA-KEV Catalog

CVE-2025-64503

MEDIUM
4.0
CVSS v3
NVD

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.

How to fix

Remediation Available
cups-filtersDebian
Fixed in:1.28.7-1+deb11u4CVE-2025-64503
Fixed in:1.28.17-3+deb12u2CVE-2025-64503
Fixed in:1.28.17-6+deb13u1CVE-2025-64503
Fixed in:1.28.17-7CVE-2025-64503
cupsRocky
Fixed in:main@aarch64RHSA-2026:8814
Fixed in:main@srcRHSA-2026:8814
Fixed in:main@x86_64RHSA-2026:8814
Fixed in:main@noarchRHSA-2026:8814
cupsRed Hat / RHEL
Fixed in:main@aarch64RHSA-2026:8814
Fixed in:main@srcRHSA-2026:8814
Fixed in:main@x86_64RHSA-2026:8814
Fixed in:main@noarchRHSA-2026:8814
cups-filtersUbuntu
Fixed in:1.8.3-2ubuntu3.5+esm3USN-7878-1
Fixed in:1.20.2-0ubuntu3.3+esm2USN-7878-1
Fixed in:1.27.4-1ubuntu0.4+esm1USN-7878-1
Fixed in:1.28.15-0ubuntu1.5USN-7878-1
Fixed in:2.0.0-0ubuntu4.1USN-7878-1
Fixed in:2.0.1-0ubuntu3.25.10.1USN-7878-1
libcupsfiltersUbuntu
Fixed in:2.0.0-0ubuntu7.2USN-7877-1
Fixed in:2.1.1-0ubuntu3.1USN-7877-1
libcupsfilters1Ubuntu
Fixed in:1.8.3-2ubuntu3.5+esm3USN-7878-1
Fixed in:1.20.2-0ubuntu3.3+esm2USN-7878-1
Fixed in:1.27.4-1ubuntu0.4+esm1USN-7878-1
Fixed in:1.28.15-0ubuntu1.5USN-7878-1
libcupsfilters2t64Ubuntu
Fixed in:2.0.0-0ubuntu7.2USN-7877-1
Fixed in:2.1.1-0ubuntu3.1USN-7877-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploit Intelligence

0.19%probability of exploitation in 30 days
8thpercentile

Low risk: more likely to be exploited than 8% of all known CVEs.

References

Exploit1
Third-Party Advisory1

Related Vulnerabilities

Other CWE-787 (Out-of-bounds Write) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-22457Critical9.0100%KEV + RansomFix
CVE-2025-0282Critical9.0100%KEV + Ransom-
CVE-2015-3113Critical9.8100%KEVFix
CVE-2021-20038Critical9.8100%KEV + Ransom-
CVE-2023-4863High8.8100%KEVFix
CVE-2020-16040Medium6.5100%-Fix
Embed a live status badge for CVE-2025-64503
CVE-2025-64503 severity badge

Markdown

[![CVE-2025-64503](https://tridentstack.com/cve/badge/CVE-2025-64503.svg)](https://tridentstack.com/cve/CVE-2025-64503)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-64503"><img src="https://tridentstack.com/cve/badge/CVE-2025-64503.svg" alt="CVE-2025-64503"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-01-20.