FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CVE-2022-22817 Restrict builtins for ImageMath.eval() by radarhere · Pull Request #5923 · python-pillow/Pillow · GitHub

CVE-2022-22817 Restrict builtins for ImageMath.eval() - #5923

Merged
mergify[bot] merged 1 commit into
python-pillow:mainfrom
radarhere:imagemath_eval
Jan 2, 2022
Merged

CVE-2022-22817 Restrict builtins for ImageMath.eval()#5923
mergify[bot] merged 1 commit into
python-pillow:mainfrom
radarhere:imagemath_eval

Conversation

Copy link
Copy Markdown
Member

To limit ImageMath to working with images, Pillow will now restrict the builtins available to ImageMath.eval(). This will help prevent problems arising if users evaluate arbitrary expressions, such as ImageMath.eval("exec(exit())").

hugovk added the automerge Automatically merge PRs that are ready label Jan 2, 2022
mergify Bot merged commit d7f60d1 into python-pillow:main Jan 2, 2022
radarhere deleted the imagemath_eval branch January 2, 2022 07:05
radarhere mentioned this pull request Jan 2, 2022
hugovk mentioned this pull request Jan 7, 2022

Copy link
Copy Markdown
ImageMath.eval("(lambda: exit())()")

hugovk changed the title Restrict builtins for ImageMath.eval() CVE-2022-22817 Restrict builtins for ImageMath.eval() Jan 10, 2022

Copy link
Copy Markdown
Member Author

I've created #6009 to address the comment from @charmander

hugovk commented Feb 3, 2022

Copy link
Copy Markdown
Member

@charmander Thanks for the note. In the future, when it comes to security-related issues, please could you check and follow the security policy of the project? If there's none available, it's good practice to ask how to disclose.

The Pillow one is here:

https://github.com/python-pillow/Pillow/security/policy

Thanks again.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge PRs that are ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL