CVE & CISA-KEV Catalog

CVE-2022-24859

MEDIUM
6.2
CVSS v3
NVD

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

Remediation Available
pypdf2Debian
Fixed in:1.26.0-4+deb11u1CVE-2022-24859
Fixed in:1.27.9-1CVE-2022-24859
pypdf2Ubuntu
Fixed in:1.25.1-1ubuntu0.1~esm1USN-6176-1
Fixed in:1.26.0-2ubuntu0.1~esm1USN-6176-1
Fixed in:1.26.0-3ubuntu1.20.04.1USN-6176-1
Fixed in:1.26.0-4ubuntu0.22.04.1USN-6176-1
python-pypdf2Ubuntu
Fixed in:1.25.1-1ubuntu0.1~esm1USN-6176-1
Fixed in:1.26.0-2ubuntu0.1~esm1USN-6176-1
Fixed in:1.26.0-3ubuntu1.20.04.1USN-6176-1
python3-pypdf2Ubuntu
Fixed in:1.25.1-1ubuntu0.1~esm1USN-6176-1
Fixed in:1.26.0-2ubuntu0.1~esm1USN-6176-1
Fixed in:1.26.0-3ubuntu1.20.04.1USN-6176-1
Fixed in:1.26.0-4ubuntu0.22.04.1USN-6176-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

1.32%probability of exploitation in 30 days
67thpercentile

Moderate risk: more likely to be exploited than 67% of all known CVEs.

References

Third-Party Advisory2
Other references1

Related Vulnerabilities

Other CWE-835 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-13935High7.588%-Fix
CVE-2020-36227High7.578%-Fix
CVE-2022-0778High7.571%-Fix
CVE-2019-14241High7.570%--
CVE-2017-16944High7.563%-Fix
CVE-2024-20353High8.663%KEV-
Embed a live status badge for CVE-2022-24859
CVE-2022-24859 severity badge

Markdown

[![CVE-2022-24859](https://tridentstack.com/cve/badge/CVE-2022-24859.svg)](https://tridentstack.com/cve/CVE-2022-24859)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-24859"><img src="https://tridentstack.com/cve/badge/CVE-2022-24859.svg" alt="CVE-2022-24859"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.