CVE-2023-36807
A public proof of concept exists; no exploitation attested.
- Published2023-06-30
- Fixed in2.10.6
- WeaknessCWE-835
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2023-06-3019:15CVE publishedNVD
Versions per branch
OSV · NVD · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.10 | ≥ 2.10.5, < 2.10.6 | 2.10.6 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.10 | = 2.10.5 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.10 | = 2.10.5 | no fix published | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- py-pdf pypdfAffected
- = 2.10.5no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2023-06-30
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- pypdf2Debian:12all versions · fixed in 2.10.7-1
Fix
- Update pypdf2 to 2.10.6
Advisories and patches
- github.comVendor Advisory
- github.comPatch
- github.comMitigation · Patch · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-11-06
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-11-06
- CNACVSS 3.16.2read 2026-11-02
- NVDCVSS 3.16.5read 2026-11-02
- CNAweakness (CWE)CWE-835read 2026-11-02
- FIRST EPSSEPSS score0.6 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2023-06-30
Identifiers
- EUVD-2023-1823same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-hm9v-vj3r-r55msame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2026-1836same flawPyPA Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Published
- 2023-06-30
- Last modified
- 2026-11-02
- NVD status
- Modified
- GitHub advisory
- GHSA-hm9v-vj3r-r55m
Frequently asked questions
What is CVE-2023-36807?
Is CVE-2023-36807 actively exploited?
What is the CVSS score for CVE-2023-36807?
Running pypdf2? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2022-24859same product
- CVE-2023-36810same product
- CVE-2026-134364same productpypdf 3.7.1 before 7.0.0 Placeholder Recovery via File Identifier in Encrypted Documents
- CVE-2025-55197same product
- CVE-2026-33699same product
- CVE-2026-134366same productpypdf before 7.0.0 Memory Exhaustion via Cross-Reference Streams with Identical Offsets
- CVE-2026-137549same productpypdf before 7.0.1 Excessive Memory Usage via Crafted PDF Images
- CVE-2026-28351same productManipulated RunLengthDecode streams can exhaust RAM
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-hm9v-vj3r-r55m
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- CISA Vulnrichment · CC0-1.0