{"id":"CVE-2023-36464","aliases":["DEBIAN-CVE-2023-36464","GHSA-4vvm-4w3v-6mr8","PYSEC-2026-1835","PYSEC-2026-3008","UBUNTU-CVE-2023-36464"],"summary":"Infinite Loop when a comment isn't followed by a character in pypdf","published_at":"2023-06-27T21:24:30.685Z","modified_at":"2026-11-03T09:47:33.478104Z","products":[{"slug":"lightwell","name":"Red Hat Lightwell (gehärtete Images)","category":"red-hat"}],"rating":{"severity":"medium","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"SUSE","rating":"moderate"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0035200000274926424,"percentile":0.29545000195503235,"date":"2026-11-19T00:00:00Z"},"priority":5.7,"details":"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\"\")`.","affected_stack":[{"ecosystem":"Red Hat Lightwell:PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1+rhlw.1"}]}],"versions":["1.15","1.16","1.17","1.18","1.19","1.20","1.21","1.22","1.23","1.24","1.25","1.25.1","1.26.0","1.27.0","1.27.1","1.27.10","1.27.11","1.27.12","1.27.2","1.27.3","1.27.4","1.27.5","1.27.6","1.27.7","1.27.8","1.27.9","1.28.0","1.28.1","1.28.2","1.28.3","1.28.4","1.28.5","1.28.6","2.0.0","2.1.0","2.1.1","2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.10.6","2.10.7","2.10.8","2.10.9","2.11.0","2.11.1","2.11.2","2.12.0","2.12.1","2.2.0","2.2.1","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.5.0","2.6.0","2.7.0","2.8.0","2.8.1","2.9.0","3.0.0","3.0.1"],"fixed":["3.0.1+rhlw.1"],"provider":"osv","source":"RHLW-2026-821eaab8409c2a61","relation":"upstream"}],"affected_other":[{"ecosystem":"CVE","package":"py-pdf/pypdf","versions":[" pypdf: < 3.90","PyPDF2: >= 2.2.0"],"provider":"cvelistv5","source":"CVE-2023-36464","relation":"self"},{"ecosystem":"Debian:12","package":"pypdf","purl":"pkg:deb/debian/pypdf?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1-1+deb12u1"}]}],"versions":["3.4.1-1"],"fixed":["3.4.1-1+deb12u1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"},{"ecosystem":"Debian:12","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12.1-3+deb12u1"}]}],"versions":["2.12.1-3"],"fixed":["2.12.1-3+deb12u1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"},{"ecosystem":"Debian:13","package":"pypdf","purl":"pkg:deb/debian/pypdf?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.17.4-1"}]}],"fixed":["3.17.4-1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"},{"ecosystem":"Debian:14","package":"pypdf","purl":"pkg:deb/debian/pypdf?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.17.4-1"}]}],"fixed":["3.17.4-1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"},{"ecosystem":"NVD","package":"py-pdf:pypdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0"}]}],"fixed":["3.9.0"],"provider":"nvd","source":"CVE-2023-36464","relation":"self"},{"ecosystem":"NVD","package":"pypdf2_project:pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"}]}],"provider":"nvd","source":"CVE-2023-36464","relation":"self"},{"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.9.0"}]}],"versions":["3.1.0","3.2.0","3.2.1","3.3.0","3.4.0","3.4.1","3.5.0","3.5.1","3.5.2","3.6.0","3.7.0","3.7.1","3.8.0","3.8.1"],"fixed":["3.9.0"],"provider":"osv","source":"GHSA-4vvm-4w3v-6mr8","relation":"self"},{"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.9.0"}]}],"versions":["3.1.0","3.2.0","3.2.1","3.3.0","3.4.0","3.4.1","3.5.0","3.5.1","3.5.2","3.6.0","3.7.0","3.7.1","3.8.0","3.8.1"],"fixed":["3.9.0"],"provider":"osv","source":"PYSEC-2026-3008","relation":"self"},{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"last_affected":"3.0.1"}]}],"versions":["2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.10.6","2.10.7","2.10.8","2.10.9","2.11.0","2.11.1","2.11.2","2.12.0","2.12.1","2.2.0","2.2.1","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.5.0","2.6.0","2.7.0","2.8.0","2.8.1","2.9.0","3.0.0","3.0.1"],"provider":"osv","source":"GHSA-4vvm-4w3v-6mr8","relation":"self"},{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"fixed":"3.9.0"}]}],"versions":["2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.10.6","2.10.7","2.10.8","2.10.9","2.11.0","2.11.1","2.11.2","2.12.0","2.12.1","2.2.0","2.2.1","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.5.0","2.6.0","2.7.0","2.8.0","2.8.1","2.9.0","3.0.0","3.0.1"],"fixed":["3.9.0"],"provider":"osv","source":"PYSEC-2026-1835","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.1-1","3.17.4-1","4.0.0-1","4.0.1-1","4.0.2-1"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.1-1","5.4.0-1"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.0-1","6.9.2-1"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.2-1","6.9.2-2"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Package Hub 15 SP7","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp157.3.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2023-36464"},{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"fixed","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":["RHBA-2023:4974"],"provider":"redhat-vex","source":"CVE-2023-36464"},{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"not_affected","packages":["quay/clair-rhel8","quay/quay-bridge-operator-bundle","quay/quay-bridge-operator-rhel8","quay/quay-builder-qemu-rhcos-rhel8","quay/quay-builder-rhel8","quay/quay-container-security-operator-bundle","quay/quay-container-security-operator-rhel8","quay/quay-operator-bundle","quay/quay-operator-rhel8"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-36464"}],"records":[{"provider":"osv","source_id":"RHLW-2026-821eaab8409c2a61","relation":"upstream","url":"https://osv.dev/vulnerability/RHLW-2026-821eaab8409c2a61","license":"CC-BY-4.0","published_at":"2026-09-23T12:12:40Z","modified_at":"2026-10-27T04:00:11.338495Z","summary":"Lightwell Security Advisory: pypdf2 3.0.1+rhlw.1","details":"Red Hat Lightwell has released pypdf2 3.0.1+rhlw.1 with a backported security fix.\n\nCVE-2023-36464: Infinite Loop when a comment isn't followed by a character in pypdf\n\nThis patched artifact is a drop-in replacement for pypdf2 3.0.1 from PyPI.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"RHLW-2026-821eaab8409c2a61"}],"affected":[{"ecosystem":"Red Hat Lightwell:PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1+rhlw.1"}]}],"versions":["1.15","1.16","1.17","1.18","1.19","1.20","1.21","1.22","1.23","1.24","1.25","1.25.1","1.26.0","1.27.0","1.27.1","1.27.10","1.27.11","1.27.12","1.27.2","1.27.3","1.27.4","1.27.5","1.27.6","1.27.7","1.27.8","1.27.9","1.28.0","1.28.1","1.28.2","1.28.3","1.28.4","1.28.5","1.28.6","2.0.0","2.1.0","2.1.1","2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.10.6","2.10.7","2.10.8","2.10.9","2.11.0","2.11.1","2.11.2","2.12.0","2.12.1","2.2.0","2.2.1","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.5.0","2.6.0","2.7.0","2.8.0","2.8.1","2.9.0","3.0.0","3.0.1"],"fixed":["3.0.1+rhlw.1"],"provider":"osv","source":"RHLW-2026-821eaab8409c2a61","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36464.json"},{"type":"ADVISORY","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464"},{"type":"FIX","url":"https://github.com/py-pdf/pypdf/pull/1828"},{"type":"FIX","url":"https://github.com/py-pdf/pypdf/pull/969"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4vvm-4w3v-6mr8"}]},{"provider":"cvelistv5","source_id":"CVE-2023-36464","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-36464","license":"CC-BY-4.0","published_at":"2023-06-27T21:24:30.685Z","modified_at":"2024-12-03T16:56:06.186Z","summary":"Infinite Loop when a comment isn't followed by a character in pypdf","details":"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\"\")`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2023-36464"}],"affected":[{"ecosystem":"CVE","package":"py-pdf/pypdf","versions":[" pypdf: < 3.90","PyPDF2: >= 2.2.0"],"provider":"cvelistv5","source":"CVE-2023-36464","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/1828"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/969"}]},{"provider":"csaf-suse","source_id":"CVE-2023-36464","relation":"self","url":"https://www.suse.com/security/cve/CVE-2023-36464/","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-06-29T01:30:27Z","modified_at":"2025-02-16T06:15:12Z","summary":"SUSE CVE CVE-2023-36464","details":"SUSE CVE-2023-36464\n\npypdf 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\"\")`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"CVE-2023-36464"},{"type":"SUSE","score":"moderate","source":"CVE-2023-36464"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Package Hub 15 SP7","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp157.3.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2023-36464"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2023-36464"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1212797"}]},{"provider":"nvd","source_id":"CVE-2023-36464","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464","severity":[],"affected":[{"ecosystem":"NVD","package":"py-pdf:pypdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0"}]}],"fixed":["3.9.0"],"provider":"nvd","source":"CVE-2023-36464","relation":"self"},{"ecosystem":"NVD","package":"pypdf2_project:pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"}]}],"provider":"nvd","source":"CVE-2023-36464","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2023-36464","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2023-36464","published_at":"2023-06-27T22:15:11.79Z","modified_at":"2026-11-03T09:47:33.478104Z","details":"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\"\")`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"DEBIAN-CVE-2023-36464"}],"affected":[{"ecosystem":"Debian:12","package":"pypdf","purl":"pkg:deb/debian/pypdf?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.1-1+deb12u1"}]}],"versions":["3.4.1-1"],"fixed":["3.4.1-1+deb12u1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"},{"ecosystem":"Debian:12","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12.1-3+deb12u1"}]}],"versions":["2.12.1-3"],"fixed":["2.12.1-3+deb12u1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"},{"ecosystem":"Debian:13","package":"pypdf","purl":"pkg:deb/debian/pypdf?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.17.4-1"}]}],"fixed":["3.17.4-1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"},{"ecosystem":"Debian:14","package":"pypdf","purl":"pkg:deb/debian/pypdf?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.17.4-1"}]}],"fixed":["3.17.4-1"],"provider":"osv","source":"DEBIAN-CVE-2023-36464","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-36464"}]},{"provider":"osv","source_id":"GHSA-4vvm-4w3v-6mr8","relation":"self","url":"https://osv.dev/vulnerability/GHSA-4vvm-4w3v-6mr8","license":"CC-BY-4.0","published_at":"2023-06-30T20:33:57Z","modified_at":"2026-09-10T03:50:01.918644Z","summary":"pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character","details":"### Impact\nAn attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. 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 text from such a PDF.\n\nExample Code and a PDF that causes the issue:\n\n```python\nfrom pypdf import PdfReader\n\n# https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/3119517/11367871?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230627%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230627T201018Z&X-Amz-Expires=300&X-Amz-Signature=d71c8fd9181c4875f0c04d563b6d32f1d4da6e7b2e6be2f14479ce4ecdc9c8b2&X-Amz-SignedHeaders=host&actor_id=1658117&key_id=0&repo_id=3119517&response-content-disposition=attachment%3Bfilename%3DMiFO_LFO_FEIS_NOA_Published.3.pdf&response-content-type=application%2Fpdf\nreader = PdfReader(\"MiFO_LFO_FEIS_NOA_Published.3.pdf\")\npage = reader.pages[0]\npage.extract_text()\n```\n\nThe issue was introduced with https://github.com/py-pdf/pypdf/pull/969\n\n### Patches\n\nThe issue was fixed with https://github.com/py-pdf/pypdf/pull/1828\n\n### Workarounds\n\nIt is recommended to upgrade to `pypdf>=3.9.0`. PyPDF2 users should migrate to pypdf.\n\nIf you cannot update your version of pypdf, you should modify `pypdf/generic/_data_structures.py`:\n\n```\nOLD: while peek not in (b\"\\r\", b\"\\n\"):\nNEW: while peek not in (b\"\\r\", b\"\\n\", b\"\"):\n```","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GHSA-4vvm-4w3v-6mr8"}],"affected":[{"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.9.0"}]}],"versions":["3.1.0","3.2.0","3.2.1","3.3.0","3.4.0","3.4.1","3.5.0","3.5.1","3.5.2","3.6.0","3.7.0","3.7.1","3.8.0","3.8.1"],"fixed":["3.9.0"],"provider":"osv","source":"GHSA-4vvm-4w3v-6mr8","relation":"self"},{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"last_affected":"3.0.1"}]}],"versions":["2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.10.6","2.10.7","2.10.8","2.10.9","2.11.0","2.11.1","2.11.2","2.12.0","2.12.1","2.2.0","2.2.1","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.5.0","2.6.0","2.7.0","2.8.0","2.8.1","2.9.0","3.0.0","3.0.1"],"provider":"osv","source":"GHSA-4vvm-4w3v-6mr8","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/1828"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/969"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/commit/b0e5c689df689ab173df84dacd77b6fc3c161932"},{"type":"PACKAGE","url":"https://github.com/py-pdf/pypdf"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/releases/tag/3.9.0"}]},{"provider":"osv","source_id":"PYSEC-2026-1835","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-1835","license":"CC-BY-4.0","published_at":"2026-07-07T11:45:19.59516Z","modified_at":"2026-07-13T16:42:55.319975Z","summary":"pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character","details":"### Impact\nAn attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. 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 text from such a PDF.\n\nExample Code and a PDF that causes the issue:\n\n```python\nfrom pypdf import PdfReader\n\n# https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/3119517/11367871?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230627%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230627T201018Z&X-Amz-Expires=300&X-Amz-Signature=d71c8fd9181c4875f0c04d563b6d32f1d4da6e7b2e6be2f14479ce4ecdc9c8b2&X-Amz-SignedHeaders=host&actor_id=1658117&key_id=0&repo_id=3119517&response-content-disposition=attachment%3Bfilename%3DMiFO_LFO_FEIS_NOA_Published.3.pdf&response-content-type=application%2Fpdf\nreader = PdfReader(\"MiFO_LFO_FEIS_NOA_Published.3.pdf\")\npage = reader.pages[0]\npage.extract_text()\n```\n\nThe issue was introduced with https://github.com/py-pdf/pypdf/pull/969\n\n### Patches\n\nThe issue was fixed with https://github.com/py-pdf/pypdf/pull/1828\n\n### Workarounds\n\nIt is recommended to upgrade to `pypdf>=3.9.0`. PyPDF2 users should migrate to pypdf.\n\nIf you cannot update your version of pypdf, you should modify `pypdf/generic/_data_structures.py`:\n\n```\nOLD: while peek not in (b\"\\r\", b\"\\n\"):\nNEW: while peek not in (b\"\\r\", b\"\\n\", b\"\"):\n```","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"PYSEC-2026-1835"}],"affected":[{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2.0"},{"fixed":"3.9.0"}]}],"versions":["2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.10.6","2.10.7","2.10.8","2.10.9","2.11.0","2.11.1","2.11.2","2.12.0","2.12.1","2.2.0","2.2.1","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.5.0","2.6.0","2.7.0","2.8.0","2.8.1","2.9.0","3.0.0","3.0.1"],"fixed":["3.9.0"],"provider":"osv","source":"PYSEC-2026-1835","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/1828"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/969"},{"type":"FIX","url":"https://github.com/py-pdf/pypdf/commit/b0e5c689df689ab173df84dacd77b6fc3c161932"},{"type":"PACKAGE","url":"https://github.com/py-pdf/pypdf"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/releases/tag/3.9.0"},{"type":"PACKAGE","url":"https://pypi.org/project/pypdf2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4vvm-4w3v-6mr8"}]},{"provider":"osv","source_id":"PYSEC-2026-3008","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-3008","license":"CC-BY-4.0","published_at":"2026-07-13T14:20:01.43033Z","modified_at":"2026-07-13T16:42:55.319975Z","summary":"pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character","details":"### Impact\nAn attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. 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 text from such a PDF.\n\nExample Code and a PDF that causes the issue:\n\n```python\nfrom pypdf import PdfReader\n\n# https://objects.githubusercontent.com/github-production-repository-file-5c1aeb/3119517/11367871?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230627%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230627T201018Z&X-Amz-Expires=300&X-Amz-Signature=d71c8fd9181c4875f0c04d563b6d32f1d4da6e7b2e6be2f14479ce4ecdc9c8b2&X-Amz-SignedHeaders=host&actor_id=1658117&key_id=0&repo_id=3119517&response-content-disposition=attachment%3Bfilename%3DMiFO_LFO_FEIS_NOA_Published.3.pdf&response-content-type=application%2Fpdf\nreader = PdfReader(\"MiFO_LFO_FEIS_NOA_Published.3.pdf\")\npage = reader.pages[0]\npage.extract_text()\n```\n\nThe issue was introduced with https://github.com/py-pdf/pypdf/pull/969\n\n### Patches\n\nThe issue was fixed with https://github.com/py-pdf/pypdf/pull/1828\n\n### Workarounds\n\nIt is recommended to upgrade to `pypdf>=3.9.0`. PyPDF2 users should migrate to pypdf.\n\nIf you cannot update your version of pypdf, you should modify `pypdf/generic/_data_structures.py`:\n\n```\nOLD: while peek not in (b\"\\r\", b\"\\n\"):\nNEW: while peek not in (b\"\\r\", b\"\\n\", b\"\"):\n```","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"PYSEC-2026-3008"}],"affected":[{"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.9.0"}]}],"versions":["3.1.0","3.2.0","3.2.1","3.3.0","3.4.0","3.4.1","3.5.0","3.5.1","3.5.2","3.6.0","3.7.0","3.7.1","3.8.0","3.8.1"],"fixed":["3.9.0"],"provider":"osv","source":"PYSEC-2026-3008","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/1828"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/969"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/commit/b0e5c689df689ab173df84dacd77b6fc3c161932"},{"type":"PACKAGE","url":"https://github.com/py-pdf/pypdf"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/releases/tag/3.9.0"},{"type":"PACKAGE","url":"https://pypi.org/project/pypdf"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4vvm-4w3v-6mr8"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2023-36464","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2023-36464","license":"CC-BY-SA-4.0","published_at":"2023-06-27T22:15:00Z","modified_at":"2026-10-17T12:56:24.122706Z","details":"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\"\")`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"UBUNTU-CVE-2023-36464"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"UBUNTU-CVE-2023-36464"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2023-36464"}],"affected":[{"ecosystem":"Ubuntu:24.04:LTS","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.1-1","3.17.4-1","4.0.0-1","4.0.1-1","4.0.2-1"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.1-1","5.4.0-1"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.0-1","6.9.2-1"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"pypdf","purl":"pkg:deb/ubuntu/pypdf?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.9.2-1","6.9.2-2"],"provider":"osv","source":"UBUNTU-CVE-2023-36464","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-36464"},{"type":"REPORT","url":"https://github.com/py-pdf/pypdf/pull/969"},{"type":"REPORT","url":"https://github.com/py-pdf/pypdf/pull/1828"},{"type":"REPORT","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-36464"}]},{"provider":"redhat-vex","source_id":"CVE-2023-36464","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-36464","license":"CC-BY-4.0","published_at":"2023-06-28T00:00:00Z","modified_at":"2026-11-02T16:10:08Z","summary":"pypdf: Possible Infinite Loop when a comment isn't followed by a character","details":"A flaw was found in the pyPDF package. In affected versions of the pyPDF package, this flaw allows an attacker to craft a PDF, which leads to an infinite loop if `__parse_content_stream` is executed.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2023-36464"},{"type":"Red Hat","score":"Moderate","source":"CVE-2023-36464"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"fixed","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":["RHBA-2023:4974"],"provider":"redhat-vex","source":"CVE-2023-36464"},{"vendor":"Red Hat","product":"Quay v3","cpe":"cpe:/a:redhat:quay:3::el8","status":"not_affected","packages":["quay/clair-rhel8","quay/quay-bridge-operator-bundle","quay/quay-bridge-operator-rhel8","quay/quay-builder-qemu-rhcos-rhel8","quay/quay-builder-rhel8","quay/quay-container-security-operator-bundle","quay/quay-container-security-operator-rhel8","quay/quay-operator-bundle","quay/quay-operator-rhel8"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-36464"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-36464.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-36464"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2218075"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-36464"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464"}]}],"references":[{"type":"WEB","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/1828"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/pull/969"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2023-36464"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1212797"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-36464"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/commit/b0e5c689df689ab173df84dacd77b6fc3c161932"},{"type":"PACKAGE","url":"https://github.com/py-pdf/pypdf"},{"type":"WEB","url":"https://github.com/py-pdf/pypdf/releases/tag/3.9.0"},{"type":"PACKAGE","url":"https://pypi.org/project/pypdf2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4vvm-4w3v-6mr8"},{"type":"PACKAGE","url":"https://pypi.org/project/pypdf"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-36464"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-36464"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-36464.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-36464"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2218075"}],"sources":[{"provider":"osv","source_id":"RHLW-2026-821eaab8409c2a61","url":"https://osv.dev/vulnerability/RHLW-2026-821eaab8409c2a61","license":"CC-BY-4.0","modified_at":"2026-10-27T04:00:11.338495Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2023-36464","url":"https://www.cve.org/CVERecord?id=CVE-2023-36464","license":"CC-BY-4.0","modified_at":"2024-12-03T16:56:06.186Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2023-36464","url":"https://www.suse.com/security/cve/CVE-2023-36464/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-02-16T06:15:12Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-36464","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36464","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2023-36464","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2023-36464","modified_at":"2026-11-03T09:47:33.478104Z","relation":"self"},{"provider":"osv","source_id":"GHSA-4vvm-4w3v-6mr8","url":"https://osv.dev/vulnerability/GHSA-4vvm-4w3v-6mr8","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:01.918644Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-1835","url":"https://osv.dev/vulnerability/PYSEC-2026-1835","license":"CC-BY-4.0","modified_at":"2026-07-13T16:42:55.319975Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-3008","url":"https://osv.dev/vulnerability/PYSEC-2026-3008","license":"CC-BY-4.0","modified_at":"2026-07-13T16:42:55.319975Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2023-36464","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2023-36464","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:56:24.122706Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-36464","url":"https://access.redhat.com/security/cve/CVE-2023-36464","license":"CC-BY-4.0","modified_at":"2026-11-02T16:10:08Z","relation":"self"}]}
