{"id":"CVE-2026-113786","published":"2026-10-21T14:38:39Z","modified":"2026-10-27T22:18:57Z","title":"pypdf: Unvalidated JPEG image data loading","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00528,"percentile":0.38074,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-183","name":"Permissive List of Allowed Inputs"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-5hx5-vpf9-5wcv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/4222","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.21.1","tags":["x_refsource_MISC"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":7.61},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.21.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-27T22:18:44.657835Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.21.1"],"patched":["6.21.1"],"from":["GHSA-5hx5-vpf9-5wcv"],"provenance":"source"}],"summary":{"text":"pypdf, a pure-Python PDF library, has an unvalidated JPEG image data loading flaw in how it handles images labelled with the /DCTDecode filter, which causes the Pillow dependency to select and invoke an unintended image parser; environments without the optional Pillow dependency are not affected. An attacker can exploit this by crafting a PDF containing such image data, requiring the victim to process or load that file (user interaction) with the optional Pillow dependency installed, and the attack needs no authentication or prior network access beyond delivering the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:05Z"},"euvd":{"id":"EUVD-2026-107286","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-py-pdf-pypdf-cve-2023-46250","children":[{"from":"CVE-2026-113786","to":"CVE-2026-119207","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pypdf/generic/_image_xobject.py"],"commits":["https://github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07","https://github.com/py-pdf/pypdf/commit/64270258c0eced720f7960aecf8cef31afd39f8d"],"basis":"shared function","functions":["_xobj_to_image"]}]}],"packageHistory":[{"cve":"CVE-2026-113789","published":"2026-10-21","fixed":"6.21.0","kev":false},{"cve":"CVE-2026-113790","published":"2026-10-21","fixed":"6.21.0","kev":false,"link":{"from":"CVE-2026-113790","to":"CVE-2026-113786","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.21.0","toFixed":"6.21.1","daysApart":0}]}},{"cve":"CVE-2026-113791","published":"2026-10-21","fixed":"6.21.0","kev":false},{"cve":"CVE-2026-113786","published":"2026-10-21","fixed":"6.21.1","kev":false},{"cve":"CVE-2026-115572","published":"2026-10-23","fixed":"6.21.2","kev":false,"link":{"from":"CVE-2026-113786","to":"CVE-2026-115572","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.21.1","toFixed":"6.21.2","daysApart":2}]}},{"cve":"CVE-2026-115580","published":"2026-10-23","fixed":"6.21.2","kev":false,"link":{"from":"CVE-2026-113786","to":"CVE-2026-115580","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.21.1","toFixed":"6.21.2","daysApart":2}]}},{"cve":"CVE-2026-115585","published":"2026-10-23","fixed":"6.21.2","kev":false,"link":{"from":"CVE-2026-113786","to":"CVE-2026-115585","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.21.1","toFixed":"6.21.2","daysApart":2}]}}],"package":"PyPI:pypdf"}}