{"schemaVersion":3,"id":"CVE-2023-36464","aliases":["GHSA-4vvm-4w3v-6mr8","PYSEC-2026-1835","PYSEC-2026-3008","UBUNTU-CVE-2023-36464","DEBIAN-CVE-2023-36464"],"status":"published","duplicateOf":null,"title":null,"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\"\")`.","dates":{"published":"2023-06-27T21:24:30.685Z","modified":"2024-12-03T16:56:06.186Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.2,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":6.4,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00352,"percentile":0.27612,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00352},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00352,"percentile":0.27612}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00352,"percentile":0.27612}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_PY-PDF_PYPDF","name":"Pypdf","source":"github","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition ('Infinite Loop')","description":"The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/835.html"}],"affected":[{"vendor":"debian","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pypdf","purlType":"deb","versions":[{"text":"< 3.4.1-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.17.4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.1-1+deb12u1 | < 3.17.4-1","eol":null,"hubHref":null},{"vendor":"debian","product":"pypdf2","name":"pypdf2","label":"pypdf2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pypdf2","purlType":"deb","versions":[{"text":"< 2.12.1-3+deb12u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.12.1-3+deb12u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pypdf","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"py-pdf","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"pypdf: < 3.90","noFixRecorded":false,"fixedIn":null},{"text":"PyPDF2: >= 2.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"pypdf: < 3.90 | PyPDF2: >= 2.2.0","eol":null,"hubHref":"/vendor/py-pdf/pypdf"},{"vendor":"pypdf_project","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.9.0","eol":null,"hubHref":"/vendor/pypdf_project/pypdf"},{"vendor":"pypdf2_project","product":"pypdf2","name":"pypdf2","label":"pypdf2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.2.0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 2.2.0 (No fix recorded)","eol":null,"hubHref":"/vendor/pypdf2_project/pypdf2"},{"vendor":"PyPI","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pypdf","purlType":"pypi","versions":[{"text":"≥ 3.1.0, < 3.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.1.0, < 3.9.0","eol":null,"hubHref":null},{"vendor":"PyPI","product":"pypdf2","name":"pypdf2","label":"pypdf2","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pypdf2","purlType":"pypi","versions":[{"text":"≥ 2.2.0, ≤ 3.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2.0, < 3.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.2.0, ≤ 3.0.1 | ≥ 2.2.0, < 3.9.0","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8","label":"github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT","Exploit","Patch"]},{"url":"https://github.com/py-pdf/pypdf/pull/1828","label":"github.com/py-pdf/pypdf/pull/1828","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Patch"]},{"url":"https://github.com/py-pdf/pypdf/pull/969","label":"github.com/py-pdf/pypdf/pull/969","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Issue Tracking","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464","label":"nvd.nist.gov/vuln/detail/CVE-2023-36464","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/py-pdf/pypdf/commit/b0e5c689df689ab173df84dacd77b6fc3c161932","label":"github.com/py-pdf/pypdf/commit/b0e5c689df689ab173df84dacd77b6fc3c161932","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/py-pdf/pypdf","label":"github.com/py-pdf/pypdf","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/3.9.0","label":"github.com/py-pdf/pypdf/releases/tag/3.9.0","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/pypdf2","label":"pypi.org/project/pypdf2","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-4vvm-4w3v-6mr8","label":"github.com/advisories/GHSA-4vvm-4w3v-6mr8","hostname":"github.com","tags":["Advisory"]},{"url":"https://pypi.org/project/pypdf","label":"pypi.org/project/pypdf","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2023-36464","label":"ubuntu.com/security/CVE-2023-36464","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-36464","label":"www.cve.org/CVERecord?id=CVE-2023-36464","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-36464","label":"security-tracker.debian.org/tracker/CVE-2023-36464","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-06-27T21:24:30.685Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-12-03T16:56:06.186Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T08:17:20.366Z","stale":false,"partial":false}}