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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.0
- **CVSS:** 4.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-11-12T22:04:03.750Z
- **Modified:** 2026-10-18T20:10:00.110Z

## Who should check

- Anyone running OpenPrinting cups-filters cups-filters \< 1.28.18; libcupsfilters \>= 2.0.0, \< 2.1.2

## 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.

## Affected and fixed versions

- OpenPrinting cups-filters: cups-filters \< 1.28.18; libcupsfilters \>= 2.0.0, \< 2.1.2 (cvelist)

## Mitigation

- Upgrade cups-filters to 2.1.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-64503. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-64503.md
Affected: OpenPrinting cups-filters cups-filters < 1.28.18; libcupsfilters >= 2.0.0, < 2.1.2
Fixed in: OpenPrinting cups-filters 1.28.18, OpenPrinting cups-filters 2.1.2

Steps:
1. Search this machine and project for OpenPrinting cups-filters: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-64503 being exploited?

There is no confirmed exploitation: CVE-2025-64503 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-64503?

Medium: CVSS 4.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-64503?

OpenPrinting cups-filters cups-filters \< 1.28.18; libcupsfilters \>= 2.0.0, \< 2.1.2.

### Is there a fix for CVE-2025-64503?

Yes. Fixed in OpenPrinting cups-filters 1.28.18, OpenPrinting cups-filters 2.1.2. Upgrade cups-filters to 2.1.2 or later.

### How do I check if I'm affected by CVE-2025-64503?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-893j-2wr2-wrh9>
- patch: <https://github.com/OpenPrinting/cups-filters/commit/50d94ca0f2fa6177613c97c59791bde568631865>
- other: <https://github.com/OpenPrinting/cups-filters/blob/aea8d0db017e495b0204433ebdb0e86b4871094c/filter/pdftoraster.cxx#L1620>
- other: <https://github.com/OpenPrinting/cups-filters/blob/aea8d0db017e495b0204433ebdb0e86b4871094c/filter/pdftoraster.cxx#L1880>
- other: <https://github.com/OpenPrinting/libcupsfilters/blob/1dd86d835b27ed149b66aee1a4853d1db8a1f44c/cupsfilters/pdftoraster.cxx#L1790>
- other: <http://www.openwall.com/lists/oss-security/2025/11/12/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-64503>

HTML: <https://flawdb.com/CVE-2025-64503> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-64503>
