# CVE-2026-113786: pypdf: Unvalidated JPEG image data loading

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-10-21T14:38:39.617Z
- Modified: 2026-10-27T23:16:57.327Z
- Also known as: GHSA-5hx5-vpf9-5wcv
- Weaknesses: CWE-20, CWE-183
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- py-pdf pypdf: < 6.21.1
- pypdf (PyPI): before 6.21.1

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-5hx5-vpf9-5wcv> (web)
- <https://github.com/py-pdf/pypdf/pull/4222> (web)
- <https://github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07> (web)
- <https://github.com/py-pdf/pypdf/releases/tag/6.21.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113786> (advisory)
- <https://github.com/py-pdf/pypdf> (package)

## Sources

- CVE List: [CVE-2026-113786](https://www.cve.org/CVERecord?id=CVE-2026-113786), CVE Terms of Use, modified 2026-10-27
- GitHub Advisory Database: [GHSA-5hx5-vpf9-5wcv](https://github.com/advisories/GHSA-5hx5-vpf9-5wcv), CC-BY-4.0, modified 2026-10-21
- NVD: [CVE-2026-113786](https://nvd.nist.gov/vuln/detail/CVE-2026-113786), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2026-113786 · Whole record: https://cve.day/CVE-2026-113786.json · Rebuilt by cve.day 2026-11-25T22:59:46.611Z
