Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834455 (CVE-2022-24720) - <dev-ruby/image_processing-1.12.2: code execution via #apply method
Summary: <dev-ruby/image_processing-1.12.2: code execution via #apply method
Status: RESOLVED FIXED
Alias: CVE-2022-24720
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
URL: https://github.com/janko/image_proces...
Whiteboard: ~1 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-02 02:24 UTC by John Helmert III
Modified: 2022-03-15 03:56 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-03-02 02:24:30 UTC
CVE-2022-24720:

image_processing is an image processing wrapper for libvips and ImageMagick/GraphicsMagick. Prior to version 1.12.2, using the `#apply` method from image_processing to apply a series of operations that are coming from unsanitized user input allows the attacker to execute shell commands. This method is called internally by Active Storage variants, so Active Storage is vulnerable as well. The vulnerability has been fixed in version 1.12.2 of image_processing. As a workaround, users who process based on user input should always sanitize the user input by allowing only a constrained set of operations.

Patch: https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada):

Fixed in 1.12.2, please bump.
Comment 1 Larry the Git Cow gentoo-dev 2022-03-14 06:34:02 UTC
The bug has been referenced in the following commit(s):

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

commit 7d2de1a3e6afc0783825a318a6a9547fccb23bda
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2022-03-13 08:54:37 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2022-03-14 06:33:57 +0000

    dev-ruby/image_processing: add 1.12.2
    
    Bug: https://bugs.gentoo.org/834455
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/image_processing/Manifest                 |  1 +
 .../image_processing-1.12.2.ebuild                 | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-03-15 03:56:42 UTC
Thanks, all done!