# CVE-2026-41313: pypdf: Possible long runtimes for wrong size values in incremental mode

- Severity: Medium 4.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/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 26% of CVEs (2026-11-30)
- Published: 2026-04-16T21:30:12.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-4pxv-j86v-mhcw, PYSEC-2026-3007
- Weaknesses: CWE-834
- 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. An attacker who uses a vulnerability present in versions prior to 6.10.2 can craft a PDF which leads to long runtimes. This requires loading a PDF with a large trailer `/Size` value in incremental mode. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.

(As written by CVE List.)

## Affected

- py-pdf pypdf: < 6.10.2; before 6.10.2
- pypdf (PyPI): before 6.10.2

## Every score

- GitHub_M: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-4pxv-j86v-mhcw> (patch, vendor-advisory, web)
- <https://github.com/py-pdf/pypdf/pull/3735> (issue-tracking, patch, web)
- <https://github.com/py-pdf/pypdf/commit/c50a0104cf083356f7c7f5d61410466a57f5c88a> (patch, web)
- <https://github.com/py-pdf/pypdf/releases/tag/6.10.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41313> (advisory)
- <https://github.com/py-pdf/pypdf> (package)
- <https://pypi.org/project/pypdf> (package)
- <https://github.com/advisories/GHSA-4pxv-j86v-mhcw> (advisory)

## Sources

- CVE List: [CVE-2026-41313](https://www.cve.org/CVERecord?id=CVE-2026-41313), CVE Terms of Use, modified 2026-04-23
- GitHub Advisory Database: [GHSA-4pxv-j86v-mhcw](https://github.com/advisories/GHSA-4pxv-j86v-mhcw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41313](https://nvd.nist.gov/vuln/detail/CVE-2026-41313), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-3007](https://osv.dev/vulnerability/PYSEC-2026-3007), CC-BY-4.0, modified 2026-07-13

---

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