{"schemaVersion":3,"id":"CVE-2023-36807","aliases":["GHSA-hm9v-vj3r-r55m","PYSEC-2026-1836","UBUNTU-CVE-2023-36807","DEBIAN-CVE-2023-36807"],"status":"published","duplicateOf":null,"title":null,"description":"pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In version 2.10.5 an attacker who uses this vulnerability 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 if the user extracted metadata from such a malformed PDF. Versions prior to 2.10.5 throw an error, but do not hang forever. This issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 which has been included in release 2.10.6. Users are advised to upgrade. Users unable to upgrade should modify `PyPDF2/generic/_data_structures.py::read_object` to an an error throwing case. See GHSA-hm9v-vj3r-r55m for details.","dates":{"published":"2023-06-30T18:38:10.303Z","modified":"2024-11-06T19:51:43.120Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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":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 · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00573,"percentile":0.46564,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00573},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00573,"percentile":0.46564}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00573,"percentile":0.46564}]},"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":"pypdf2","name":"pypdf2","label":"pypdf2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pypdf2","purlType":"deb","versions":[{"text":"< 2.10.7-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.10.7-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pypdf2","name":"pypdf2","label":"pypdf2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pypdf2","purlType":"deb","versions":[{"text":"< 1.25.1-1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.25.1-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.26.0-2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.26.0-2ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.26.0-3ubuntu1.20.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.26.0-4ubuntu0.22.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.25.1-1 | < 1.25.1-1ubuntu0.1~esm2 | < 1.26.0-2 | < 1.26.0-2ubuntu0.1~esm2 | < 1.26.0-3ubuntu1.20.04.1 | < 1.26.0-4ubuntu0.22.04.1","eol":null,"hubHref":null},{"vendor":"py-pdf","product":"pypdf","name":"pypdf","label":"pypdf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.10.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.10.5","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":"2.10.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.10.5","eol":null,"hubHref":"/vendor/pypdf_project/pypdf"},{"vendor":"PyPI","product":"pypdf2","name":"pypdf2","label":"pypdf2","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pypdf2","purlType":"pypi","versions":[{"text":"≥ 2.10.5, < 2.10.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.10.5, < 2.10.6","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-hm9v-vj3r-r55m","label":"github.com/py-pdf/pypdf/security/advisories/GHSA-hm9v-vj3r-r55m","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT","Exploit","Mitigation","Patch","Vendor Advisory"]},{"url":"https://github.com/py-pdf/pypdf/issues/1329","label":"github.com/py-pdf/pypdf/issues/1329","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Exploit","Issue Tracking","Vendor Advisory"]},{"url":"https://github.com/py-pdf/pypdf/pull/1331","label":"github.com/py-pdf/pypdf/pull/1331","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36807","label":"nvd.nist.gov/vuln/detail/CVE-2023-36807","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/py-pdf/pypdf/commit/e6531a25325e7e0174b6a1ba03b57320b5227f6b","label":"github.com/py-pdf/pypdf/commit/e6531a25325e7e0174b6a1ba03b57320b5227f6b","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://pypi.org/project/pypdf2","label":"pypi.org/project/pypdf2","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-hm9v-vj3r-r55m","label":"github.com/advisories/GHSA-hm9v-vj3r-r55m","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-36807","label":"ubuntu.com/security/CVE-2023-36807","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-36807","label":"www.cve.org/CVERecord?id=CVE-2023-36807","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-36807","label":"security-tracker.debian.org/tracker/CVE-2023-36807","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-06-30T18:38:10.303Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-06T19:51:43.120Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T22:04:31.465Z","stale":false,"partial":false}}