CVE-2022-22817

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

Published Jan 7, 2022 CVSS 3.1 · 9.8 Critical EPSS 3.6% KEV · Not listed
Description
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could also be used.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2893-1 pillow security update
Debian DLA Debian DLA DLA-3768-1 pillow security update
Debian DSA Debian DSA DSA-5053-1 pillow security update
Github GHSA Github GHSA GHSA-8vj2-vxx3-667w Arbitrary expression injection in Pillow
Ubuntu USN Ubuntu USN USN-5227-1 Pillow vulnerabilities
Ubuntu USN Ubuntu USN USN-5227-2 Pillow vulnerabilities
Ubuntu USN Ubuntu USN USN-5227-3 Pillow vulnerability
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 15, 2024, 8:26 PM
Reserved
Jan 7, 2022, 12:00 AM
Status
Modified
Published
Jan 10, 2022, 2:12 PM
Modified
Jun 17, 2026, 4:29 AM
Severity
Important
Public date
Jan 2, 2022, 12:00 AM