CVE-2022-24859
pypdf2 - security update
Description
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.
How to fix CVE-2022-24859
To remediate CVE-2022-24859, upgrade the affected package to a fixed version below.
- —upgrade to 1.26.0-4+deb11u1 or later
- —upgrade to 1.26.0-2+deb9u1 or later
- —upgrade to 1.26.0-2+deb10u1 or later
- —upgrade to 1.27.5 or later
- —upgrade to 1.27.5 or later
Is CVE-2022-24859 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 1.26.0-4+deb11u1
- from 0, < 1.26.0-2+deb9u1
- from 0, < 1.26.0-2+deb10u1
- from 0, < 1.27.5
- from 0, < 1.27.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |