{"cve":"CVE-2023-46250","nvd":{"published":"2023-10-31T16:15:09.930","modified":"2026-06-17T06:30:31.167","status":"Modified","description":"pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions 3.7.0 through 3.16.4 can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case when the pypdf-user manipulates an incoming malicious PDF e.g. by merging it with another PDF or by adding annotations. The issue was fixed in version 3.17.0. As a workaround, apply the patch manually by modifying `pypdf/generic/_data_structures.py`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5},"cwes":["CWE-835"],"references":["https://github.com/py-pdf/pypdf/commit/9b23ac3c9619492570011d551d521690de9a3e2d","https://github.com/py-pdf/pypdf/pull/2264","https://github.com/py-pdf/pypdf/security/advisories/GHSA-wjcc-cq79-p63f","https://github.com/py-pdf/pypdf/commit/9b23ac3c9619492570011d551d521690de9a3e2d","https://github.com/py-pdf/pypdf/pull/2264"],"products":["pypdf_project:pypdf"],"source":"nvd","synced_at":"2026-10-19T21:40:11.519948003+00:00"},"epss":{"cve":"CVE-2023-46250","score":0.00243,"percentile":0.15562,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wjcc-cq79-p63f","url":"https://osv.dev/vulnerability/GHSA-wjcc-cq79-p63f","summary":"Possible Infinite Loop when PdfWriter(clone_from) is used with a PDF","modified":"2026-09-10T03:50:08.746181393Z","packages":[{"ecosystem":"PyPI","name":"pypdf","purl":"pkg:pypi/pypdf","ranges":[">=3.7.0 <3.17.0"],"fixed":["3.17.0"]}]},{"id":"PYSEC-2026-1834","url":"https://osv.dev/vulnerability/PYSEC-2026-1834","summary":"Possible Infinite Loop when PdfWriter(clone_from) is used with a PDF","modified":"2026-07-07T17:46:59.477344715Z","packages":[{"ecosystem":"PyPI","name":"pypdf","purl":"pkg:pypi/pypdf","ranges":[">=3.7.0 <3.17.0"],"fixed":["3.17.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}