cve.bz

CVE-2025-57812 openprinting: Out-of-bounds Read

3.7 lowExploit referenceEPSS 0.5%Fix available

Low (3.7) in openprinting. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
CUPS is a standards-based, open-source printing system, and `libcupsfilters` contains the code of the filters of the former `cups-filters` package as library functions to be used for the data format conversion tasks needed in Printer Applications. In CUPS-Filters versions up to and including 1.28.17 and libscupsfilters versions 2.0.0 through 2.1.1, CUPS-Filters's `imagetoraster` filter has an out of bounds read/write vulnerability in the processing of TIFF image files. While the pixel buffer is allocated with the number of pixels times a pre-calculated bytes-per-pixel value, the function which processes these pixels is called with a size of the number of pixels times 3. When suitable inputs are passed, the bytes-per-pixel value can be set to 1 and bytes outside of the buffer bounds get processed. In order to trigger the bug, an attacker must issue a print job with a crafted TIFF file, and pass appropriate print job options to control the bytes-per-pixel value of the output format. They must choose a printer configuration under which the `imagetoraster` filter or its C-function equivalent `cfFilterImageToRaster()` gets invoked. The vulnerability exists in both CUPS-Filters 1.x and the successor library libcupsfilters (CUPS-Filters 2.x). In CUPS-Filters 2.x, the vulnerable function is `_cfImageReadTIFF() in libcupsfilters`. When this function is invoked as part of `cfFilterImageToRaster()`, the caller passes a look-up-table during whose processing the out of bounds memory access happens. In CUPS-Filters 1.x, the equivalent functions are all found in the cups-filters repository, which is not split into subprojects yet, and the vulnerable code is in `_cupsImageReadTIFF()`, which is called through `cupsImageOpen()` from the `imagetoraster` tool. A patch is available in commit b69dfacec7f176281782e2f7ac44f04bf9633cfa.

Severity

CVSS 3.1

3.7 low
CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-11-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-57812 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-57812?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-57812?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-57812 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openprinting:cups-filtersbefore 1.28.17
openprinting:libcupsfiltersfrom 2.0.0 before 2.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11cups-filters1.28.7-1+deb11u4DLA-4380-1
Debian12cups-filters1.28.17-3+deb12u2DEBIAN-CVE-2025-57812
Debian13cups-filters1.28.17-6+deb13u1DEBIAN-CVE-2025-57812
Debian13libcupsfilters2.0.0-3+deb13u1DEBIAN-CVE-2025-57812
Debian14cups-filters1.28.17-7DEBIAN-CVE-2025-57812
Debian14libcupsfilters2.1.1-2DEBIAN-CVE-2025-57812
Ubuntu22.04:LTScups-filters1.28.15-0ubuntu1.5UBUNTU-CVE-2025-57812 USN-7878-1
Ubuntu24.04:LTScups-filters2.0.0-0ubuntu4.1USN-7878-1
Ubuntu24.04:LTSlibcupsfilters2.0.0-0ubuntu7.2UBUNTU-CVE-2025-57812 USN-7877-1
Ubuntu25.10cups-filters2.0.1-0ubuntu3.25.10.1USN-7878-1
Ubuntu25.10libcupsfilters2.1.1-0ubuntu3.1UBUNTU-CVE-2025-57812 USN-7877-1
UbuntuPro:16.04:LTScups-filters1.8.3-2ubuntu3.5+esm3UBUNTU-CVE-2025-57812 USN-7878-1
UbuntuPro:18.04:LTScups-filters1.20.2-0ubuntu3.3+esm2UBUNTU-CVE-2025-57812 USN-7878-1
UbuntuPro:20.04:LTScups-filters1.27.4-1ubuntu0.4+esm1UBUNTU-CVE-2025-57812 USN-7878-1
Red Hathummingbird:1cups, cups-lpd, cups-libs and 5 more0:2.4.17-1.hum1RHSA-2026:8814
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7cups-filters1.25.0-150200.3.25.1SUSE-SU-2025:4158-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5cups-filters1.0.58-19.35.1SUSE-SU-2025:4198-1
openSUSELeap 15.6cups-filters1.25.0-150200.3.25.1SUSE-SU-2025:4158-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagescups-main-2.4.17-1.hum1Fixed 2026-04-17RHSA-2026:8814
Red Hat Enterprise Linux 10cups-filtersFix deferred
Red Hat Enterprise Linux 10libcupsfiltersFix deferred
Red Hat Enterprise Linux 7cups-filtersFix deferred
Red Hat Enterprise Linux 8cups-filtersFix deferred
Red Hat Enterprise Linux 9cups-filtersFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-57812.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON