pysec-2022-194
Vulnerability from pysec
Published
2022-04-18 19:15
Modified
2022-05-17 23:28
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.
Impacted products
Name | purl | pypdf2 | pkg:pypi/pypdf2 |
---|
Aliases
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "pypdf2", "purl": "pkg:pypi/pypdf2" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.27.5" } ], "type": "ECOSYSTEM" } ], "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" ] } ], "aliases": [ "CVE-2022-24859", "GHSA-xcjx-m2pj-8g79" ], "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.", "id": "PYSEC-2022-194", "modified": "2022-05-17T23:28:27.580433Z", "published": "2022-04-18T19:15:00Z", "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" } ] }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…