{"cve":"CVE-2023-36464","nvd":{"published":"2023-06-27T22:15:11.790","modified":"2026-06-17T06:06:19.033","status":"Modified","description":"pypdf is an open source, pure-python PDF library. In affected versions an attacker may craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. That is, for example, the case if the user extracted text from such a PDF. This issue was introduced in pull request #969 and resolved in pull request #1828. Users are advised to upgrade. Users unable to upgrade may modify the line `while peek not in (b\"\\r\", b\"\\n\")` in `pypdf/generic/_data_structures.py` to `while peek not in (b\"\\r\", b\"\\n\", b\"\")`.","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/pull/1828","https://github.com/py-pdf/pypdf/pull/969","https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8","https://github.com/py-pdf/pypdf/pull/1828","https://github.com/py-pdf/pypdf/pull/969"],"products":["pypdf2_project:pypdf2","pypdf_project:pypdf"],"source":"nvd","synced_at":"2026-10-19T21:38:30.124994567+00:00"},"epss":{"cve":"CVE-2023-36464","score":0.00352,"percentile":0.28916,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4vvm-4w3v-6mr8","url":"https://osv.dev/vulnerability/GHSA-4vvm-4w3v-6mr8","summary":"pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character","modified":"2026-09-10T03:50:01.918644849Z","packages":[{"ecosystem":"PyPI","name":"pypdf","purl":"pkg:pypi/pypdf","ranges":[">=3.1.0 <3.9.0"],"fixed":["3.9.0"]},{"ecosystem":"PyPI","name":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[">=2.2.0 <=3.0.1"],"fixed":[]}]},{"id":"PYSEC-2026-1835","url":"https://osv.dev/vulnerability/PYSEC-2026-1835","summary":"pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character","modified":"2026-07-13T16:42:55.319975462Z","packages":[{"ecosystem":"PyPI","name":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[">=2.2.0 <3.9.0"],"fixed":["3.9.0"]}]},{"id":"PYSEC-2026-3008","url":"https://osv.dev/vulnerability/PYSEC-2026-3008","summary":"pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character","modified":"2026-07-13T16:42:55.319975462Z","packages":[{"ecosystem":"PyPI","name":"pypdf","purl":"pkg:pypi/pypdf","ranges":[">=3.1.0 <3.9.0"],"fixed":["3.9.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."]}