Bug 2059886 (CVE-2022-24720)

Summary: CVE-2022-24720 rubygem-image_processing: remote shell execution via #apply method
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: pvalena
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-image_processing 1.12.2 Doc Type: ---
Doc Text:
A flaw was found in image_processing. When using the #apply method from image_processing to apply a series of operations that are coming from unsanitized user input, this flaw could allow an attacker to execute shell commands.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-03 02:20:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2059887    
Bug Blocks:    

Description Mauro Matteo Cascella 2022-03-02 09:50:25 UTC
A flaw was found in image_processing. When using the #apply method from image_processing to apply a series of operations that are coming from unsanitized user input, this flaw allows the attacker to execute shell commands. 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.

References:
https://github.com/janko/image_processing/commit/038e4574e8f4f4b636a62394e09983c71980dada
https://github.com/janko/image_processing/security/advisories/GHSA-cxf7-qrc5-9446

Comment 1 Mauro Matteo Cascella 2022-03-02 09:51:32 UTC
Created rubygem-image_processing tracking bugs for this issue:

Affects: fedora-all [bug 2059887]

Comment 2 Product Security DevOps Team 2022-03-03 02:20:52 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.