Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1544620 - (CVE-2016-5397) CVE-2016-5397 thrift: Improper file path sanitization in t_go_generator.cc:format_go_output() of the go client library can allow an attacker to inject commands
CVE-2016-5397 thrift: Improper file path sanitization in t_go_generator.cc:fo...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20160704,repo...
: Security
Depends On: 1544621 1545989 1545990
Blocks: 1544622
  Show dependency treegraph
 
Reported: 2018-02-12 23:32 EST by Sam Fowler
Modified: 2018-09-11 03:54 EDT (History)
47 users (show)

See Also:
Fixed In Version: thrift 0.10.0
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2669 None None None 2018-09-11 03:54 EDT

  None (edit)
Description Sam Fowler 2018-02-12 23:32:53 EST
Improper validation of the file_path argument in t_go_generator.cc:format_go_output() of the Apache Thrift Go client library can allow an attacker to execute arbitrary commands. 

The file_path parameter is derived from the service name. If an attacker can provide a service name to a framework invoking Thrift, the attacker could craft the name in a way leading to arbitrary commands being executed.

This affects versions before Apache Thrift 0.10.0.


Upstream Advisory:

http://mail-archives.apache.org/mod_mbox/thrift-user/201701.mbox/%3CCANyrgvc3W%3DMJ9S-hMZecPNzxkyfgNmuSgVfW2hdDSz5ke%2BOPhQ%40mail.gmail.com%3E


Upstream Issue:

https://issues.apache.org/jira/browse/THRIFT-3893


Upstream Commit:

https://github.com/apache/thrift/commit/2007783e874d524a46b818598a45078448ecc53e
Comment 1 Sam Fowler 2018-02-12 23:33:31 EST
Created thrift tracking bugs for this issue:

Affects: epel-all [bug 1544621]
Comment 5 Jason Shepherd 2018-03-26 20:45:23 EDT
Marking openshift-enterprise-3 and openshift-1 as not affected. Thrift is available in the rhel-7-server-ose-3.{4-5}-rpms repository, as a dependency of python-elasticsearch. The python-elasticsearch rpm includes Elasticsearch 2.3.0-1. However the elasticsearch hasn't ben required by the thrift libraries since version 1.8.0. 

This issue was created to track removal of python-thrift dependency from python-elasticsearch rpm:

https://bugzilla.redhat.com/show_bug.cgi?id=1560778
Comment 6 Kunjan Rathod 2018-04-18 20:46:38 EDT
Marking JON-3 as not affected as the Thrift API's has never been used in Cassandra(Shipped with JON) and hence the Thrift server is disabled.
Comment 9 Andrej Nemec 2018-05-09 04:02:52 EDT
Statement:

libthrift is a library used by OpenDaylight which is shipped with Red Hat OpenStack. Whilst the version of the library used contains the vulnerable code it is not used by OpenDaylight and hence not exposed.

JBoss fuse 6.3 ships libthrift via insight-activemq fabric-8 profile, however the vulnerable code is not used by fabric-8 so fuse 6.3 is not affected.
Comment 10 errata-xmlrpc 2018-09-11 03:53:56 EDT
This issue has been addressed in the following products:

  Red Hat JBoss Fuse

Via RHSA-2018:2669 https://access.redhat.com/errata/RHSA-2018:2669

Note You need to log in before you can comment on or make changes to this bug.