SCA: security update for PyPDF2 (GHSA-xcjx-m2pj-8g79)

medium Tenable Cloud Security Plugin ID 420436

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2022-24859)

See Also

https://github.com/advisories/GHSA-xcjx-m2pj-8g79

Plugin Details

Severity: Medium

ID: 420436

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2022-24859

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 5.5

Threat Vector: CVSS:4.0/E:P

Vector: 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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/22/2022

Vulnerability Publication Date: 4/18/2022

Reference Information

CVE: CVE-2022-24859

cwe: CWE-835