CVE Database›CVE-2022-22817

CVE-2022-22817

python-pillow: PIL.ImageMath.eval allows evaluation of arbitrary expressions

Loading…

Severity

Low

Red Hat Product Security

9.8

CVSS 3.1

Review impact separately from score.

Published · January 2, 2022

Updated · November 1, 2026

Description

A flaw was found in python-pillow. The vulnerability occurs due to Improper Neutralization, leading to command injection. This flaw allows an attacker to externally-influenced input commands that modify the intended command.

Statement

Red Hat Quay ships a vulnerable version of Pillow as a dependency of xhtml2pdf. The xhtml2pdf package is used in the invoice generation feature of Quay, however, the vulnerable ImageMath module is not used by xhtml2pdf. Therefore impact for Quay is rated Low.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

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

CWE-77 · Improper Neutralization of Special Elements used in a Command