PYSEC-2022-194
Vulnerability from pysec - Published: 2022-04-18 19:15 - Updated: 2022-05-17 23:28
VLAI?
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 observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…