{"schemaVersion":3,"id":"CVE-2026-113786","aliases":["GHSA-5hx5-vpf9-5wcv"],"status":"published","duplicateOf":null,"title":null,"description":"pypdf is a free and open-source pure-python PDF library. Prior to 6.21.1, an attacker can craft a PDF containing image data labeled with the /DCTDecode filter that causes Pillow to select and invoke an unintended image parser when the image is loaded. Environments without the optional Pillow dependency are not affected. This issue is fixed in version 6.21.1.","dates":{"published":"2026-10-21T14:38:39.617Z","modified":"2026-10-21T14:38:39.617Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":2.3,"severity":"low","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-183","name":"Permissive List of Allowed Inputs","description":"The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/183.html"}],"affected":[{"vendor":"py-pdf","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.21.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.21.1","eol":null,"hubHref":"/vendor/py-pdf/pypdf"},{"vendor":"PyPI","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pypdf","purlType":"pypi","versions":[{"text":"< 6.21.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.21.1","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-5hx5-vpf9-5wcv","label":"github.com/py-pdf/pypdf/security/advisories/GHSA-5hx5-vpf9-5wcv","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/py-pdf/pypdf/pull/4222","label":"github.com/py-pdf/pypdf/pull/4222","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07","label":"github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.21.1","label":"github.com/py-pdf/pypdf/releases/tag/6.21.1","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113786","label":"nvd.nist.gov/vuln/detail/CVE-2026-113786","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/py-pdf/pypdf","label":"github.com/py-pdf/pypdf","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-21T14:38:39.617Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"risk":{"score":9,"level":"minimal","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T06:15:14.367Z","stale":false,"partial":false}}