Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832598 (CVE-2022-24303) - <dev-python/pillow-9.0.1: multiple vulnerabilities
Summary: <dev-python/pillow-9.0.1: multiple vulnerabilities
Status: IN_PROGRESS
Alias: CVE-2022-24303
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: https://pillow.readthedocs.io/en/stab...
Whiteboard: B2 [stable]
Keywords:
Depends on: 833368
Blocks: CVE-2022-22817
  Show dependency tree
 
Reported: 2022-02-03 03:59 UTC by John Helmert III
Modified: 2022-02-14 23:12 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 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-02-03 03:59:41 UTC
"CVE-2022-24303: If the path to the temporary directory on Linux or macOS contained a space, this would break removal of the temporary image file after im.show() (and related actions), and potentially remove an unrelated file. This been present since PIL."

Please bump to 9.0.1.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-03 04:03:46 UTC
From https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html:
```
CVE-2022-24303: If the path to the temporary directory on Linux or macOS contained a space, this would break removal of the temporary image file after im.show() (and related actions), and potentially remove an unrelated file. This been present since PIL.

CVE-2022-22817: While Pillow 9.0 restricted top-level builtins available to PIL.ImageMath.eval(), it did not prevent builtins available to lambda expressions. These are now also restricted.
```
Comment 2 Larry the Git Cow gentoo-dev 2022-02-03 04:25:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9568918f494bc25512465018c824efa849b75110

commit 9568918f494bc25512465018c824efa849b75110
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-03 04:24:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-03 04:24:16 +0000

    dev-python/pillow: add 9.0.1
    
    Add 9.0.1-r1 with PEP 517 too, but we're not yet ready to stable that.
    
    Bug: https://bugs.gentoo.org/832598
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/pillow/Manifest               |   1 +
 dev-python/pillow/pillow-9.0.1-r1.ebuild | 115 +++++++++++++++++++++++++++++++
 dev-python/pillow/pillow-9.0.1.ebuild    | 106 ++++++++++++++++++++++++++++
 3 files changed, 222 insertions(+)