Feed
9.8CRITICAL

CVE-2022-22817Arbitrary expression injection in Pillow

A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 3.1% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
3.1%
percentile 88%
Priority
28/100 medium
how it is computed
Fix
Named by a source
CVE published 10 Jan 2022

Reference

None of the "Needs attention" rules apply right now.

EPSS 3.1% (+3) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • pillow (PyPI) pkg:pypi/pillow

    • Affected< 9.0.1Fixed in9.0.1OSV (GHSA-8vj2-vxx3-667w)
    • Affected< 9.0.0Fixed in9.0.0disputedOSV (PYSEC-2022-10)

Confirmed facts

CVSS
9.8 CRITICAL (version 3.1)
Score from
GitHub Advisory Database (GHSA-8vj2-vxx3-667w)
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Weakness
CWE-74

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)`PIL.ImageMath.eval` in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method `ImageMath.eval("exec(exit())")`. While Pillow 9.0.0 restricted top-level builtins available to PIL.ImageMath.eval(), it did not prevent builtins available to lambda expressions. These are now also restricted in 9.0.1.

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 27 min ago · osv 27 min ago · nvd 88 min ago · epss 27 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-pillow-2022-22817, GHSA-8vj2-vxx3-667w, PYSEC-2022-10