Bug 1461297 (CVE-2017-2810)

Summary: CVE-2017-2810 python-tablib: Databook loading functionality allows command execution
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aortega, apevec, apevec, carnil, chrisw, cvsbot-xmlrpc, gmollett, infra-sig, jjoyce, jschluet, karlthered, kbasil, lhh, lpeer, markmc, mburns, rbean, rbryant, rhos-maint, sclewis, slinaber, srevivo, tdecacqu
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
It was found that loading a yaml format Databook from an untrusted source could lead to arbitrary code execution in python-tablib as the safe_load method was not used to load the content.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-12 21:58:01 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: 1461298, 1461299, 1463481    
Bug Blocks: 1461304    

Description Andrej Nemec 2017-06-14 07:23:06 UTC
An exploitable vulnerability exists in the Databook loading functionality of Tablib. A yaml loaded Databook can execute arbitrary python commands resulting in command execution. An attacker can insert python into loaded yaml to trigger this vulnerability.

External References:

https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0307

Comment 1 Andrej Nemec 2017-06-14 07:24:10 UTC
Created python-tablib tracking bugs for this issue:

Affects: epel-6 [bug 1461298]
Affects: fedora-all [bug 1461299]

Comment 3 Garth Mollett 2017-06-21 04:56:30 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact in Red Hat OpenStack Platform. While the code is present in the python-tablib package, it is not reachable in any supported configuration. There is currently no plan to address this flaw in any supported version of Red Hat OpenStack platform.