Bug 2101888 (CVE-2022-33127)

Summary: CVE-2022-33127 rubygem-diffy: remote code execution from user controlled diff file paths
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bbuckingham, bcourt, btotty, ehelms, ilya.gradina, jsherril, lzap, mhulan, myarboro, nmoumoul, orabin, pcreech, rchan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-30 09:55:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 2101889    

Description Marian Rehak 2022-06-28 16:10:45 UTC
The function that calls the diff tool in Diffy 3.4.1 does not properly handle double quotes in a filename when run in a windows environment. This allows attackers to execute arbitrary commands via a crafted string.

Reference:

https://github.com/samg/diffy/commit/478f392082b66d38f54a02b4bb9c41be32fd6593
https://bugzilla.suse.com/show_bug.cgi?id=1200896

Comment 3 Product Security DevOps Team 2022-08-30 09:55:49 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-33127