{"schema":"threatline.record/2","record":{"id":"CVE-2026-113786","aliases":["GHSA-5hx5-vpf9-5wcv"],"summary":"pypdf: Unvalidated JPEG image data loading","details":"### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to arbitrary image parsers being called. This requires loading an image which claims to use the `/DCTDecode` filter (JPEG data).\n\nUsers which do not have the optional *Pillow* dependency installed in their environment are not affected.\n\n### Patches\n\nThis has been fixed in [pypdf==6.21.1](https://github.com/py-pdf/pypdf/releases/tag/6.21.1).\n\n### Workarounds\n\nIf you cannot upgrade yet, consider applying the changes from PR [#4222](https://github.com/py-pdf/pypdf/pull/4222).","categories":["Libraries & packages"],"product":"pypdf","vendor":"py-pdf","ecosystem":"pip","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5hx5-vpf9-5wcv","source_modified_at":"2026-10-21T19:58:11Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"pip","name":"pypdf"},"range":"< 6.21.1"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-113786","source_modified_at":"2026-10-21T14:38:39.617Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"pypdf","vendor":"py-pdf","versions":[{"version":"< 6.21.1","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5hx5-vpf9-5wcv","source_modified_at":"2026-10-21T20:15:04.178781594Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"pypdf","ecosystem":"PyPI","purl":"pkg:pypi/pypdf"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.21.1"}]}],"versions":["1.0","1.1","1.10","1.11","1.12","1.13","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","3.1.0","3.10.0","3.11.0","3.11.1","3.12.0","3.12.1","3.12.2","3.13.0","3.14.0","3.15.0","3.15.1","3.15.2","3.15.3","3.15.4","3.15.5","3.16.0","3.16.1","3.16.2","3.16.3","3.16.4","3.17.0","3.17.1","3.17.2","3.17.3","3.17.4","3.2.0","3.2.1","3.3.0","3.4.0","3.4.1","3.5.0","3.5.1","3.5.2","3.6.0","3.7.0","3.7.1"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-5hx5-vpf9-5wcv","source_modified_at":"2026-10-21T19:58:11Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"pip","name":"pypdf"},"version":"6.21.1"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-5hx5-vpf9-5wcv","source_modified_at":"2026-10-21T20:15:04.178781594Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"pypdf","ecosystem":"PyPI","purl":"pkg:pypi/pypdf"},"version":"6.21.1"}],"cvss":2.3,"severity":"Low","kev":{"listed":false},"epss":{"probability":0.00375,"percentile":0.3029,"score_date":"2026-10-23"},"published_at":"2026-10-21T14:38:39.617Z","modified_at":"2026-10-21T20:15:04.178781594Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-5hx5-vpf9-5wcv","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-21T19:58:11Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-113786","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T14:38:39.617Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-5hx5-vpf9-5wcv","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T20:15:04.178781594Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-113786","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-5hx5-vpf9-5wcv","tags":["x_refsource_CONFIRM"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113786","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/py-pdf/pypdf/pull/4222","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/py-pdf/pypdf/releases/tag/6.21.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-5hx5-vpf9-5wcv","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-21T20:15:04.178781594Z","content_hash":"d58ec73b413121146f7555d01ec2896ef2ea8c8f55fa8c185ccd39ebbb9ca5ea"}}
