{"id":"CVE-2022-24859","aliases":["DEBIAN-CVE-2022-24859","GHSA-xcjx-m2pj-8g79","PYSEC-2022-194","UBUNTU-CVE-2022-24859","openSUSE-SU-2024:0366-1"],"summary":"Manipulated inline images can cause Infinite Loop in PyPDF2","published_at":"2022-04-18T00:00:00Z","modified_at":"2026-11-18T06:02:13.895013Z","products":[],"rating":{"severity":"medium","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Low","vendor_ratings":[{"source":"SUSE","rating":"moderate"},{"source":"SUSE","rating":"moderate"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Low"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.013279999606311321,"percentile":0.7162899971008301,"date":"2026-11-19T00:00:00Z"},"priority":8.4,"details":"PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"py-pdf/PyPDF2","versions":["< 1.27.5"],"provider":"cvelistv5","source":"CVE-2022-24859","relation":"self"},{"ecosystem":"Debian:10","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2+deb10u1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2+deb10u1"],"provider":"osv","source":"DLA-3451-1","relation":"upstream"},{"ecosystem":"Debian:12","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.9-1"}]}],"fixed":["1.27.9-1"],"provider":"osv","source":"DEBIAN-CVE-2022-24859","relation":"self"},{"ecosystem":"Debian:9","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=stretch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2+deb9u1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2+deb9u1"],"provider":"osv","source":"DLA-3039-1","relation":"upstream"},{"ecosystem":"NVD","package":"debian:debian_linux","versions":["9.0"],"provider":"nvd","source":"CVE-2022-24859","relation":"self"},{"ecosystem":"NVD","package":"pypdf2_project:pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.5"}]}],"fixed":["1.27.5"],"provider":"nvd","source":"CVE-2022-24859","relation":"self"},{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.5"}]}],"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.2","1.27.3","1.27.4"],"fixed":["1.27.5"],"provider":"osv","source":"GHSA-xcjx-m2pj-8g79","relation":"self"},{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.5"}]}],"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.2","1.27.3","1.27.4"],"fixed":["1.27.5"],"provider":"osv","source":"PYSEC-2022-194","relation":"self"},{"ecosystem":"SUSE:Package Hub 15 SP6","package":"python-PyPDF2","purl":"pkg:rpm/suse/python-PyPDF2&distro=SUSE%20Package%20Hub%2015%20SP6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-bp156.4.3.1"}]}],"fixed":["1.26.0-bp156.4.3.1"],"provider":"osv","source":"openSUSE-SU-2024:0366-1","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.26.0-3ubuntu1.20.04.1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-3ubuntu1.20.04.1"}]}],"versions":["1.26.0-2","1.26.0-3ubuntu1"],"fixed":["1.26.0-3ubuntu1.20.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-3ubuntu1.20.04.1"}]}],"versions":["1.26.0-2","1.26.0-3ubuntu1"],"fixed":["1.26.0-3ubuntu1.20.04.1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"},{"ecosystem":"Ubuntu:22.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.26.0-4ubuntu0.22.04.1?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-4ubuntu0.22.04.1"}]}],"versions":["1.26.0-4"],"fixed":["1.26.0-4ubuntu0.22.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-4ubuntu0.22.04.1"}]}],"versions":["1.26.0-4"],"fixed":["1.26.0-4ubuntu0.22.04.1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.25.1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-1ubuntu0.1~esm1"}]}],"versions":["1.23+git20141008-1","1.25.1-1"],"fixed":["1.25.1-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-1ubuntu0.1~esm1"}]}],"versions":["1.23+git20141008-1","1.25.1-1"],"fixed":["1.25.1-1ubuntu0.1~esm1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.26.0-2ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2ubuntu0.1~esm1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2ubuntu0.1~esm1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2ubuntu0.1~esm1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"},{"ecosystem":"openSUSE:Leap 15.6","package":"python-PyPDF2","purl":"pkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Leap%2015.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-bp156.4.3.1"}]}],"fixed":["1.26.0-bp156.4.3.1"],"provider":"osv","source":"openSUSE-SU-2024:0366-1","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Package Hub 15 SP5","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp155.3.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"},{"vendor":"SUSE","product":"SUSE Package Hub 15 SP6","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp156.4.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"},{"vendor":"SUSE","product":"openSUSE Leap 15.5","cpe":"cpe:/o:opensuse:leap:15.5","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp155.3.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp156.4.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"affected","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-24859"}],"records":[{"provider":"osv","source_id":"DLA-3039-1","relation":"upstream","url":"https://osv.dev/vulnerability/DLA-3039-1","published_at":"2022-06-03T00:00:00Z","modified_at":"2026-11-20T01:18:44.758794Z","summary":"pypdf2 - security update","severity":[],"affected":[{"ecosystem":"Debian:9","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=stretch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2+deb9u1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2+deb9u1"],"provider":"osv","source":"DLA-3039-1","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DLA-3451-1","relation":"upstream","url":"https://osv.dev/vulnerability/DLA-3451-1","published_at":"2023-06-09T00:00:00Z","modified_at":"2026-11-20T01:18:48.243949Z","summary":"pypdf2 - security update","severity":[],"affected":[{"ecosystem":"Debian:10","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2+deb10u1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2+deb10u1"],"provider":"osv","source":"DLA-3451-1","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"USN-6176-1","relation":"upstream","url":"https://osv.dev/vulnerability/USN-6176-1","license":"CC-BY-SA-4.0","published_at":"2023-06-19T05:54:25Z","modified_at":"2026-06-25T13:32:09.280507Z","summary":"pypdf2 vulnerability","details":"It was discovered that PyPDF2 incorrectly handled certain PDF files. If a \nuser or automated system were tricked into processing a specially crafted\nfile, an attacker could possibly use this issue to consume system\nresources, resulting in a denial of service.","severity":[],"affected":[{"ecosystem":"Ubuntu:20.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-3ubuntu1.20.04.1"}]}],"versions":["1.26.0-2","1.26.0-3ubuntu1"],"fixed":["1.26.0-3ubuntu1.20.04.1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"},{"ecosystem":"Ubuntu:22.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-4ubuntu0.22.04.1"}]}],"versions":["1.26.0-4"],"fixed":["1.26.0-4ubuntu0.22.04.1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps%2Fxenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-1ubuntu0.1~esm1"}]}],"versions":["1.23+git20141008-1","1.25.1-1"],"fixed":["1.25.1-1ubuntu0.1~esm1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2?arch=source&distro=esm-apps%2Fbionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2ubuntu0.1~esm1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2ubuntu0.1~esm1"],"provider":"osv","source":"USN-6176-1","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6176-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-24859"}]},{"provider":"cvelistv5","source_id":"CVE-2022-24859","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-24859","license":"CC-BY-4.0","published_at":"2022-04-18T00:00:00Z","modified_at":"2025-04-22T18:15:17.46Z","summary":"Manipulated inline images can cause Infinite Loop in PyPDF2","details":"PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.","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-2022-24859"}],"affected":[{"ecosystem":"CVE","package":"py-pdf/PyPDF2","versions":["< 1.27.5"],"provider":"cvelistv5","source":"CVE-2022-24859","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/issues/329"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/pull/740"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/06/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00013.html"}]},{"provider":"csaf-suse","source_id":"CVE-2022-24859","relation":"self","url":"https://www.suse.com/security/cve/CVE-2022-24859/","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-02-15T03:27:34Z","modified_at":"2025-03-15T07:40:42Z","summary":"SUSE CVE CVE-2022-24859","details":"SUSE CVE-2022-24859\n\nPyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.","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-2022-24859"},{"type":"SUSE","score":"moderate","source":"CVE-2022-24859"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Package Hub 15 SP5","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp155.3.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"},{"vendor":"SUSE","product":"SUSE Package Hub 15 SP6","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp156.4.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"},{"vendor":"SUSE","product":"openSUSE Leap 15.5","cpe":"cpe:/o:opensuse:leap:15.5","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp155.3.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"fixed","packages":["python3-PyPDF2"],"package_count":1,"fixed":["python3-PyPDF2-1.26.0-bp156.4.3.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-24859"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-24859"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1198588"},{"type":"WEB","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JXAHSUMAQ6VKWEA3MS762SNZWXCCD54L/"}]},{"provider":"csaf-suse","source_id":"openSUSE-SU-2024:0366-1","relation":"self","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JXAHSUMAQ6VKWEA3MS762SNZWXCCD54L/","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-11-12T17:01:19Z","modified_at":"2024-11-12T17:01:19Z","summary":"Security update for python-PyPDF2","details":"Security update for python-PyPDF2\n\nThis update for python-PyPDF2 fixes the following issues:\n\n- CVE-2022-24859: Fixed infinite loop vulnerability (boo#1198588)","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":"openSUSE-SU-2024:0366-1"},{"type":"SUSE","score":"moderate","source":"openSUSE-SU-2024:0366-1"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2024/opensuse-su-2024_0366-1.json"},{"type":"WEB","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JXAHSUMAQ6VKWEA3MS762SNZWXCCD54L/"},{"type":"WEB","url":"https://bugzilla.suse.com/1198588"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-24859/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-24859"}]},{"provider":"nvd","source_id":"CVE-2022-24859","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24859","severity":[],"affected":[{"ecosystem":"NVD","package":"debian:debian_linux","versions":["9.0"],"provider":"nvd","source":"CVE-2022-24859","relation":"self"},{"ecosystem":"NVD","package":"pypdf2_project:pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.5"}]}],"fixed":["1.27.5"],"provider":"nvd","source":"CVE-2022-24859","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2022-24859","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-24859","published_at":"2022-04-18T19:15:09.757Z","modified_at":"2026-11-18T06:02:13.895013Z","details":"PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.","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-2022-24859"}],"affected":[{"ecosystem":"Debian:12","package":"pypdf2","purl":"pkg:deb/debian/pypdf2?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.9-1"}]}],"fixed":["1.27.9-1"],"provider":"osv","source":"DEBIAN-CVE-2022-24859","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-24859"}]},{"provider":"osv","source_id":"GHSA-xcjx-m2pj-8g79","relation":"self","url":"https://osv.dev/vulnerability/GHSA-xcjx-m2pj-8g79","license":"CC-BY-4.0","published_at":"2022-04-22T20:54:41Z","modified_at":"2024-10-14T18:55:47.08953Z","summary":"Manipulated inline images can cause Infinite Loop in PyPDF2","details":"### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 user wrote the following code:\n\n```python\nfrom PyPDF2 import PdfFileReader, PdfFileWriter\nfrom PyPDF2.pdf import ContentStream\n\nreader = PdfFileReader(\"malicious.pdf\", strict=False)\nfor page in reader.pages:\n    ContentStream(page.getContents(), reader)\n```\n\n### Patches\n\n[`PyPDF2==1.27.5`](https://pypi.org/project/PyPDF2) and later are patched.\n\nCredits to [Sebastian Krause](https://github.com/sekrause) for finding ([issue](https://github.com/py-pdf/PyPDF2/issues/329)) and fixing ([PR](https://github.com/py-pdf/PyPDF2/pull/740)) it.","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-xcjx-m2pj-8g79"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","source":"GHSA-xcjx-m2pj-8g79"}],"affected":[{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.5"}]}],"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.2","1.27.3","1.27.4"],"fixed":["1.27.5"],"provider":"osv","source":"GHSA-xcjx-m2pj-8g79","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24859"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/issues/329"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/pull/740"},{"type":"PACKAGE","url":"https://github.com/py-pdf/PyPDF2"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pypdf2/PYSEC-2022-194.yaml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/06/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00013.html"}]},{"provider":"osv","source_id":"PYSEC-2022-194","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2022-194","license":"CC-BY-4.0","published_at":"2022-04-18T19:15:00Z","modified_at":"2023-11-08T04:08:38.867416Z","details":"PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.","severity":[],"affected":[{"ecosystem":"PyPI","package":"pypdf2","purl":"pkg:pypi/pypdf2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.5"}]}],"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.2","1.27.3","1.27.4"],"fixed":["1.27.5"],"provider":"osv","source":"PYSEC-2022-194","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/pull/740"},{"type":"REPORT","url":"https://github.com/py-pdf/PyPDF2/issues/329"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2022-24859","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-24859","license":"CC-BY-SA-4.0","published_at":"2022-04-18T19:15:00Z","modified_at":"2026-02-04T02:19:58.291127Z","details":"PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.","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":"UBUNTU-CVE-2022-24859"},{"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-2022-24859"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2022-24859"}],"affected":[{"ecosystem":"Ubuntu:20.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.26.0-3ubuntu1.20.04.1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-3ubuntu1.20.04.1"}]}],"versions":["1.26.0-2","1.26.0-3ubuntu1"],"fixed":["1.26.0-3ubuntu1.20.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.26.0-4ubuntu0.22.04.1?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-4ubuntu0.22.04.1"}]}],"versions":["1.26.0-4"],"fixed":["1.26.0-4ubuntu0.22.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.25.1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-1ubuntu0.1~esm1"}]}],"versions":["1.23+git20141008-1","1.25.1-1"],"fixed":["1.25.1-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pypdf2","purl":"pkg:deb/ubuntu/pypdf2@1.26.0-2ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-2ubuntu0.1~esm1"}]}],"versions":["1.26.0-2"],"fixed":["1.26.0-2ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2022-24859","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-24859"},{"type":"REPORT","url":"https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79"},{"type":"REPORT","url":"https://github.com/py-pdf/PyPDF2/issues/329"},{"type":"REPORT","url":"https://github.com/py-pdf/PyPDF2/pull/740"},{"type":"REPORT","url":"https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6176-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-24859"}]},{"provider":"osv","source_id":"openSUSE-SU-2024:0366-1","relation":"self","url":"https://osv.dev/vulnerability/openSUSE-SU-2024:0366-1","published_at":"2024-11-12T17:01:19Z","modified_at":"2026-02-04T04:04:47.184092Z","summary":"Security update for python-PyPDF2","details":"This update for python-PyPDF2 fixes the following issues:\n\n- CVE-2022-24859: Fixed infinite loop vulnerability (boo#1198588)","severity":[],"affected":[{"ecosystem":"SUSE:Package Hub 15 SP6","package":"python-PyPDF2","purl":"pkg:rpm/suse/python-PyPDF2&distro=SUSE%20Package%20Hub%2015%20SP6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-bp156.4.3.1"}]}],"fixed":["1.26.0-bp156.4.3.1"],"provider":"osv","source":"openSUSE-SU-2024:0366-1","relation":"self"},{"ecosystem":"openSUSE:Leap 15.6","package":"python-PyPDF2","purl":"pkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Leap%2015.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0-bp156.4.3.1"}]}],"fixed":["1.26.0-bp156.4.3.1"],"provider":"osv","source":"openSUSE-SU-2024:0366-1","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JXAHSUMAQ6VKWEA3MS762SNZWXCCD54L/"},{"type":"REPORT","url":"https://bugzilla.suse.com/1198588"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-24859"}]},{"provider":"redhat-vex","source_id":"CVE-2022-24859","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-24859","license":"CC-BY-4.0","published_at":"2022-04-18T00:00:00Z","modified_at":"2023-07-07T08:31:53Z","summary":"PyPDF2: infinite loop vulnerability","details":"PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2022-24859"},{"type":"Red Hat","score":"Low","source":"CVE-2022-24859"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"affected","packages":["quay/quay-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-24859"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-24859.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-24859"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2076488"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-24859"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24859"}]}],"references":[{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/issues/329"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/pull/740"},{"type":"WEB","url":"https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/06/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00013.html"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-24859"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1198588"},{"type":"WEB","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JXAHSUMAQ6VKWEA3MS762SNZWXCCD54L/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2024/opensuse-su-2024_0366-1.json"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-24859/"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-24859"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24859"},{"type":"PACKAGE","url":"https://github.com/py-pdf/PyPDF2"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pypdf2/PYSEC-2022-194.yaml"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-24859"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6176-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-24859"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-24859.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-24859"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2076488"}],"sources":[{"provider":"osv","source_id":"DLA-3039-1","url":"https://osv.dev/vulnerability/DLA-3039-1","modified_at":"2026-11-20T01:18:44.758794Z","relation":"upstream"},{"provider":"osv","source_id":"DLA-3451-1","url":"https://osv.dev/vulnerability/DLA-3451-1","modified_at":"2026-11-20T01:18:48.243949Z","relation":"upstream"},{"provider":"osv","source_id":"USN-6176-1","url":"https://osv.dev/vulnerability/USN-6176-1","license":"CC-BY-SA-4.0","modified_at":"2026-06-25T13:32:09.280507Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2022-24859","url":"https://www.cve.org/CVERecord?id=CVE-2022-24859","license":"CC-BY-4.0","modified_at":"2025-04-22T18:15:17.46Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2022-24859","url":"https://www.suse.com/security/cve/CVE-2022-24859/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-03-15T07:40:42Z","relation":"self"},{"provider":"csaf-suse","source_id":"openSUSE-SU-2024:0366-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JXAHSUMAQ6VKWEA3MS762SNZWXCCD54L/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-11-12T17:01:19Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-24859","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24859","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2022-24859","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-24859","modified_at":"2026-11-18T06:02:13.895013Z","relation":"self"},{"provider":"osv","source_id":"GHSA-xcjx-m2pj-8g79","url":"https://osv.dev/vulnerability/GHSA-xcjx-m2pj-8g79","license":"CC-BY-4.0","modified_at":"2024-10-14T18:55:47.08953Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2022-194","url":"https://osv.dev/vulnerability/PYSEC-2022-194","license":"CC-BY-4.0","modified_at":"2023-11-08T04:08:38.867416Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2022-24859","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-24859","license":"CC-BY-SA-4.0","modified_at":"2026-02-04T02:19:58.291127Z","relation":"self"},{"provider":"osv","source_id":"openSUSE-SU-2024:0366-1","url":"https://osv.dev/vulnerability/openSUSE-SU-2024:0366-1","modified_at":"2026-02-04T04:04:47.184092Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-24859","url":"https://access.redhat.com/security/cve/CVE-2022-24859","license":"CC-BY-4.0","modified_at":"2023-07-07T08:31:53Z","relation":"self"}]}
