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: RESOLVED FIXED
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-11-22 04:05 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!
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-11-14 21:15:30 UTC
GLSA request filed
Comment 4 Larry the Git Cow gentoo-dev 2022-11-22 04:01:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=65e54c1c2d5aa2b4a2012ca5e8d6771961ac4118

commit 65e54c1c2d5aa2b4a2012ca5e8d6771961ac4118
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2022-11-22 03:53:26 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-11-22 03:59:40 +0000

    [ GLSA 202211-10 ] Pillow: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/802090
    Bug: https://bugs.gentoo.org/811450
    Bug: https://bugs.gentoo.org/830934
    Bug: https://bugs.gentoo.org/832598
    Bug: https://bugs.gentoo.org/855683
    Bug: https://bugs.gentoo.org/878769
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 glsa-202211-10.xml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-11-22 04:05:46 UTC
GLSA released, all done!