Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830934 (CVE-2022-22815, CVE-2022-22816) - <dev-python/pillow-9.0.0: multiple vulnerabilities (CVE-2022-{22815,22816,22817})
Summary: <dev-python/pillow-9.0.0: multiple vulnerabilities (CVE-2022-{22815,22816,228...
Status: IN_PROGRESS
Alias: CVE-2022-22815, CVE-2022-22816
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://pillow.readthedocs.io/en/stab...
Whiteboard: B3 [glsa?]
Keywords:
Depends on: 830941
Blocks: CVE-2022-22817
  Show dependency tree
 
Reported: 2022-01-10 16:46 UTC by filip ambroz
Modified: 2022-02-03 04:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description filip ambroz 2022-01-10 16:46:55 UTC
[CVE-2022-22815]
path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.

URLs:
https://nvd.nist.gov/vuln/detail/CVE-2022-22815
https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling
https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331


[CVE-2022-22816]
path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.

URLs:
https://nvd.nist.gov/vuln/detail/CVE-2022-22816
https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#fixed-imagepath-path-array-handling
https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331


[CVE-2022-22817]
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.

URLs:
https://nvd.nist.gov/vuln/detail/CVE-2022-22817
https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2022-01-16 20:30:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c1bb06397f328afec57551a3365ad36d91ded2d

commit 7c1bb06397f328afec57551a3365ad36d91ded2d
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-01-16 20:30:19 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-01-16 20:30:19 +0000

    dev-python/pillow: drop 8.4.0
    
    Bug: https://bugs.gentoo.org/830934
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-python/pillow/Manifest            |  1 -
 dev-python/pillow/pillow-8.4.0.ebuild | 98 -----------------------------------
 2 files changed, 99 deletions(-)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-01-16 22:33:05 UTC
Thanks!