CVE-2025-64503 Details
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.
A moderate out-of-bounds write vulnerability has been identified in the CUPS-Filters package, specifically in versions prior to 1.28.18. The issue arises in the 'pdftoraster' tool, which is used to convert PDF files to raster images for printing. By crafting a PDF with an excessively large 'MediaBox' width, an attacker can manipulate the 'pdftoraster' tool to write beyond the allocated memory bounds. This exploitation is made possible because the large 'MediaBox' value causes an integer overflow in the calculation of 'bytesPerLine', leading to a small buffer allocation. Consequently, the 'writePixel8' function attempts to write pixel data outside the designated buffer size, creating a potential security risk.
Users can upgrade to CUPS-Filters version 1.28.18 or later to address this vulnerability. For those using 'libcupsfilters', version 2.1.2 or later is recommended.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 13, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| openprinting cups-filters | < 1.28.18 |
CPE
Remediation
| |
| openprinting libcupsfilters | >= 2.0.0, < 2.1.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 20, 2026 | Initial Analysis | [email protected] |
| Nov 12, 2025 | New CVE Received | [email protected] |
| Nov 12, 2025 | CVE Modified | CVE |