{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-46250","id":"CVE-2023-46250","title":"pypdf possible Infinite Loop when PdfWriter(clone_from) is used with a PDF","description":"pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions 3.7.0 through 3.16.4 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 when the pypdf-user manipulates an incoming malicious PD","descriptionLong":"pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions 3.7.0 through 3.16.4 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 when the pypdf-user manipulates an incoming malicious PDF e.g. by merging it with another PDF or by adding annotations. The issue was fixed in version 3.17.0. As a workaround, apply the patch manually by modifying `pypdf/generic/_data_structures.py`.","published":"2023-10-31T15:23:32.852Z","updated":"2026-11-04T02:46:10.837008209Z","reserved":"2023-10-19T20:34:00.948Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.1,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.1,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.1,"vector":"CVSS:3.1/AV:L/AC:H/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":5.1,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":5.1,"vector":"CVSS:3.1/AV:L/AC:H/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":">= 3.7.0, < 3.17.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pypdf","purl":"pkg:pypi/pypdf","ranges":[">=3.7.0 <3.17.0"],"fixed":["3.17.0"],"advisory":"GHSA-wjcc-cq79-p63f"}],"cwes":["CWE-835"],"aliases":["GHSA-wjcc-cq79-p63f","PYSEC-2026-1834"],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-wjcc-cq79-p63f","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/py-pdf/pypdf/pull/2264","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/py-pdf/pypdf/commit/9b23ac3c9619492570011d551d521690de9a3e2d","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46250.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46250","tags":["advisory"]},{"url":"https://github.com/py-pdf/pypdf","tags":["package"]},{"url":"https://pypi.org/project/pypdf","tags":["package"]},{"url":"https://github.com/advisories/GHSA-wjcc-cq79-p63f","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00254,"epssPercentile":0.17201,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-46250","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46250","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-46250","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wjcc-cq79-p63f","ok":true,"note":"GHSA-wjcc-cq79-p63f"},{"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-46250","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}