{"schemaVersion":3,"id":"CVE-2025-64503","aliases":["UBUNTU-CVE-2025-64503","DEBIAN-CVE-2025-64503"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-11-12T22:04:03.750Z","modified":"2025-11-13T16:56:18.053Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","exploitability":4.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","exploitability":4.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00228,"percentile":0.12766,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.014999999999999996,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00213},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00228,"percentile":0.12766}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00213,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00228,"percentile":0.12766}]},"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_CUPS-FILTERS","name":"Cups Filters","source":"github","url":"https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-gpxc-v2m8-fr3x","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"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":"cups-filters < 1.28.18","noFixRecorded":false,"fixedIn":null},{"text":"libcupsfilters >= 2.0.0, < 2.1.2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.28.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"cups-filters < 1.28.18 | libcupsfilters >= 2.0.0, < 2.1.2 | < 1.28.18","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":"≥ 2.0.0, < 2.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.2","eol":null,"hubHref":"/vendor/openprinting/libcupsfilters"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-893j-2wr2-wrh9","label":"github.com/OpenPrinting/cups-filters/security/advisories/GHSA-893j-2wr2-wrh9","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Vendor Advisory"]},{"url":"https://github.com/OpenPrinting/cups-filters/commit/50d94ca0f2fa6177613c97c59791bde568631865","label":"github.com/OpenPrinting/cups-filters/commit/50d94ca0f2fa6177613c97c59791bde568631865","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/OpenPrinting/cups-filters/blob/aea8d0db017e495b0204433ebdb0e86b4871094c/filter/pdftoraster.cxx#L1620","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"https://github.com/OpenPrinting/cups-filters/blob/aea8d0db017e495b0204433ebdb0e86b4871094c/filter/pdftoraster.cxx#L1880","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"https://github.com/OpenPrinting/libcupsfilters/blob/1dd86d835b27ed149b66aee1a4853d1db8a1f44c/cupsfilters/pdftoraster.cxx#L1790","label":"github.com/OpenPrinting/…","hostname":"github.com","tags":["X Refsource MISC","Product"]},{"url":"http://www.openwall.com/lists/oss-security/2025/11/12/2","label":"www.openwall.com/lists/oss-security/2025/11/12/2","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-64503","label":"ubuntu.com/security/CVE-2025-64503","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-64503","label":"www.cve.org/CVERecord?id=CVE-2025-64503","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2025/11/12/2","label":"www.openwall.com/lists/oss-security/2025/11/12/2","hostname":"www.openwall.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-64503","label":"security-tracker.debian.org/tracker/CVE-2025-64503","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-12T22:04:03.750Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-13T16:56:18.053Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:50:00.643Z","stale":false,"partial":false}}