CVE-2022-24859

CVSS V2 Medium 4.3 CVSS V3 Medium 5.5
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.
Overview
  • CVE ID
  • CVE-2022-24859
  • Assigner
  • security-advisories@github.com
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2022-04-18T19:15:09
  • Last Modified Date
  • 2022-06-15T03:02:09
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:pypdf2_project:pypdf2:*:*:*:*:*:*:*:* 1 OR 1.27.5
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* 1 OR
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:M/Au:N/C:N/I:N/A:P
  • Access Vector
  • NETWORK
  • Access Compatibility
  • MEDIUM
  • Authentication
  • NONE
  • Confidentiality Impact
  • NONE
  • Integrity Impact
  • NONE
  • Availability Impact
  • PARTIAL
  • Base Score
  • 4.3
  • Severity
  • MEDIUM
  • Exploitability Score
  • 8.6
  • Impact Score
  • 2.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Attack Vector
  • LOCAL
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • REQUIRED
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • NONE
  • Availability Impact
  • HIGH
  • Base Score
  • 5.5
  • Base Severity
  • MEDIUM
  • Exploitability Score
  • 1.8
  • Impact Score
  • 3.6
References
Reference URL Reference Tags
https://github.com/py-pdf/PyPDF2/issues/329 Exploit Third Party Advisory
https://github.com/py-pdf/PyPDF2/pull/740 Patch Third Party Advisory
https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5 Release Notes Third Party Advisory
https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79 Exploit Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/06/msg00001.html Mailing List Third Party Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 06:26:06 Added to TrackCVE