{"schemaVersion":3,"id":"CVE-2025-57812","aliases":["UBUNTU-CVE-2025-57812","DEBIAN-CVE-2025-57812"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2025-11-12T18:46:52.801Z","modified":"2025-11-12T21:04:17.490Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.7,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":3.1,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":3.1,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00478,"percentile":0.39935,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.028000000000000073,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0045},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00478,"percentile":0.39935}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00446,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00478,"percentile":0.39935}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_OPENPRINTING_LIBCUPSFILTERS","name":"Libcupsfilters","source":"github","url":"https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"cups-filters","name":"cups-filters","label":"cups-filters","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cups-filters","purlType":"deb","versions":[{"text":"< 1.28.17-3+deb12u2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.28.17-6+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.28.17-7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.28.17-3+deb12u2 | < 1.28.17-6+deb13u1 | < 1.28.17-7","eol":null,"hubHref":null},{"vendor":"debian","product":"libcupsfilters","name":"libcupsfilters","label":"libcupsfilters","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libcupsfilters","purlType":"deb","versions":[{"text":"< 2.0.0-3+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.1.1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.0-3+deb13u1 | < 2.1.1-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cups-filters","name":"cups-filters","label":"cups-filters","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cups-filters","purlType":"deb","versions":[{"text":"< 1.8.3-2ubuntu3.5+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.20.2-0ubuntu3.3+esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.27.4-1ubuntu0.4+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.28.15-0ubuntu1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.3-2ubuntu3.5+esm3 | < 1.20.2-0ubuntu3.3+esm2 | < 1.27.4-1ubuntu0.4+esm1 | < 1.28.15-0ubuntu1.5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libcupsfilters","name":"libcupsfilters","label":"libcupsfilters","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libcupsfilters","purlType":"deb","versions":[{"text":"< 2.0.0-0ubuntu7.2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.1.1-0ubuntu3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.0-0ubuntu7.2 | < 2.1.1-0ubuntu3.1","eol":null,"hubHref":null},{"vendor":"openprinting","product":"cups-filters","name":"cups-filters","label":"cups-filters","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.28.17","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.28.17","eol":null,"hubHref":"/vendor/openprinting/cups-filters"},{"vendor":"openprinting","product":"libcupsfilters","name":"libcupsfilters","label":"libcupsfilters","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"cups-filters <= 1.28.17","noFixRecorded":false,"fixedIn":null},{"text":"libcupsfilters >= 2.0.0, < 2.1.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 2.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"cups-filters <= 1.28.17 | libcupsfilters >= 2.0.0, < 2.1.1 | ≥ 2.0.0, < 2.1.1","eol":null,"hubHref":"/vendor/openprinting/libcupsfilters"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-jpxg-qc2c-hgv4","label":"github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-jpxg-qc2c-hgv4","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Vendor Advisory"]},{"url":"https://github.com/OpenPrinting/libcupsfilters/commit/b69dfacec7f176281782e2f7ac44f04bf9633cfa","label":"github.com/OpenPrinting/libcupsfilters/commit/b69dfacec7f176281782e2f7ac44f04bf9633cfa","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/OpenPrinting/cups-filters/blob/3c58463e341b12c9d30d7d3807d2bac1bc595a78/cupsfilters/image-tiff.c#L34","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"https://github.com/OpenPrinting/cups-filters/blob/3c58463e341b12c9d30d7d3807d2bac1bc595a78/filter/imagetoraster.c#L613","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"https://github.com/OpenPrinting/libcupsfilters/blob/33421982e10f6a14bc0bab03b80c9cf4660e8d7d/cupsfilters/image-tiff.c#L32","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/12/1","label":"www.openwall.com/lists/oss-security/2025/11/12/1","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-57812","label":"ubuntu.com/security/CVE-2025-57812","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-57812","label":"www.cve.org/CVERecord?id=CVE-2025-57812","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2025/11/12/1","label":"www.openwall.com/lists/oss-security/2025/11/12/1","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-rc6w-jmvv-v7gx","label":"github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-rc6w-jmvv-v7gx","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-fmvr-45mx-43c6","label":"github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-fmvr-45mx-43c6","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7877-1","label":"ubuntu.com/security/notices/USN-7877-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7878-1","label":"ubuntu.com/security/notices/USN-7878-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-57812","label":"security-tracker.debian.org/tracker/CVE-2025-57812","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4380-1","MGASA-2025-0304","RHSA-2026:8814","SUSE-SU-2025:4158-1","SUSE-SU-2025:4198-1","USN-7877-1","USN-7878-1"],"duplicates":[],"related":["SUSE-SU-2025:4158-1","SUSE-SU-2025:4198-1","USN-7877-1","USN-7878-1"]},"timeline":[{"kind":"published","date":"2025-11-12T18:46:52.801Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-12T21:04:17.490Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:10:06.063Z","stale":false,"partial":false}}