{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-36464","id":"CVE-2023-36464","title":"Infinite Loop when a comment isn't followed by a character in pypdf","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 l","descriptionLong":"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\"\")`.","published":"2023-06-27T21:24:30.685Z","updated":"2026-11-04T10:45:19.969856892Z","reserved":"2023-06-21T18:50:41.700Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["py-pdf pypdf"],"affectedProducts":[{"vendor":"py-pdf","product":"pypdf","defaultStatus":null,"versions":[{"version":" pypdf: < 3.90","status":"affected"},{"version":"PyPDF2: >= 2.2.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pypdf","purl":"pkg:pypi/pypdf","ranges":[">=3.1.0 <3.9.0"],"fixed":["3.9.0"],"advisory":"GHSA-4vvm-4w3v-6mr8"},{"ecosystem":"PyPI","name":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[">=2.2.0 <=3.0.1",">=2.2.0 <3.9.0"],"fixed":["3.9.0"],"advisory":"GHSA-4vvm-4w3v-6mr8"}],"cwes":["CWE-835"],"aliases":["GHSA-4vvm-4w3v-6mr8","PYSEC-2026-1835","PYSEC-2026-3008"],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","advisory","web"]},{"url":"https://github.com/py-pdf/pypdf/pull/1828","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/py-pdf/pypdf/pull/969","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36464.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464","tags":["advisory"]},{"url":"https://github.com/py-pdf/pypdf/commit/b0e5c689df689ab173df84dacd77b6fc3c161932","tags":["web","fix"]},{"url":"https://github.com/py-pdf/pypdf","tags":["package"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/3.9.0","tags":["web"]},{"url":"https://pypi.org/project/pypdf2","tags":["package"]},{"url":"https://github.com/advisories/GHSA-4vvm-4w3v-6mr8","tags":["advisory"]},{"url":"https://pypi.org/project/pypdf","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00352,"epssPercentile":0.29545,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-36464","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-36464","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4vvm-4w3v-6mr8","ok":true,"note":"GHSA-4vvm-4w3v-6mr8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-36464","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}