Bug 1375089 (CVE-2016-7040)

Summary: CVE-2016-7040 cfme: Incorrect sanitization in regular expression engine
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cpelland, dajohnso, dclarizi, gblomqui, gmccullo, gtanzill, hhudgeon, jfrey, jhardy, jprause, jrafanie, kseifried, obarenbo, roliveri, security-response-team, simaishi, twade
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An input validation flaw was found in the way CloudForms regular expressions were passed to the expression engine via both the JSON API and the web based UI. A user with the ability to view collections and filter them could use this flaw to execute arbitrary shell commands on the host with the privileges of the CloudForms process.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-04 17:34:45 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: 1376878, 1401601    
Bug Blocks: 1375092    

Description Adam Mariš 2016-09-12 07:24:40 UTC
In ManageIQ product there was found an improper input validation vulnerability in expression engine allowing to trigger code execution. The issue was found to be exploitable both via JSON API, which can be triggered by users authorized with GET/read access to a collection in API, and via UI when filtering on VMs based on regular expression, which can be triggered by users able to view and filter on VMs in UI.

Comment 1 Adam Mariš 2016-09-12 07:25:00 UTC
Acknowledgments:

Name: Tim Wade (Red Hat)

Comment 4 errata-xmlrpc 2016-10-04 14:36:45 UTC
This issue has been addressed in the following products:

  CloudForms Management Engine 5.6

Via RHSA-2016:1996 https://rhn.redhat.com/errata/RHSA-2016-1996.html