CVE-2016-5397 json
Apache Thrift Go Library Command Injection
published 2018-02-12 8 y ago modified 2026-09-10 1 mo ago also GHSA-r4m4-pmvw-m6j5 , EUVD-2022-5087
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.9%
- EPSS 6.9% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
The Apache Thrift Go client library exposed the potential during code generation for command injection due to using an external formatting tool. Affected Apache Thrift 0.9.3 and older, Fixed in Apache Thrift 0.10.0.
Patch / fix
- go github.com/apache/thrift 0.10.0
- thrift Debian 14, Debian 13, Debian 12 0.11.0-3
debian advisories DEBIAN-CVE-2016-5397
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-5397 updated cvss 7.8
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
-
Red Hat JBoss Fuse Integration Service 2 libthriftaffected: no fix available
-
Red Hat OpenStack Platform 10 (Newton) opendaylight Red Hat OpenStack Platform 11 (Ocata) opendaylight Red Hat OpenStack Platform 12 (Pike) opendaylight Red Hat OpenStack Platform 13 (Queens) opendaylightaffected: no fix planned “Will not fix”
-
Red Hat Fuse 7fixed: vendor fix RHSA-2018:2669
-
Red Hat JBoss Data Virtualization 6.4.8fixed: vendor fix RHSA-2019:3140
-
Red Hat Enterprise Linux 8 thrift Red Hat JBoss Fuse 6 karaf karaf Red Hat JBoss Fuse Service Works 6 thrift Red Hat JBoss Operations Network 3 libthrift Red Hat OpenShift Enterprise 3 fb303, thrift, thrift-qt, fb303-java, perl-thrift, thrift-glib, +4 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
6.87% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 9.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/apache/thrift | <0.10.0 |
0.10.0 |
Affected products
- Apache Software Foundation Apache Thrift
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
access.redhat.com
/errata/RHSA-2018:2669
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2019:3140
vendor-advisory, web
-
issues.apache.org
/jira/browse/THRIFT-3893
web, vendor-advisory
-
mail-archives.apache.org
/mod_mbox/thrift-user/201701.mbox/raw/%3CCANyrgvc3W%3DMJ9S-hMZecPNzxkyfgNmuSgVfW2hdDSz5ke%2BOPhQ%40mail.gmail.
mailing-list, web, vendor-advisory
-
securityfocus.com
/bid/103025
vdb-entry, third-party-advisory
-
lists.apache.org
/thread.html/r4d3f1d3e333d9c2b2f6e6ae8ed8750d4de03410ac294bcd12c7eefa3%40%3Ccommits.cassandra.apache.org%3E
mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2016-5397
advisory
-
lists.apache.org
/thread.html/r4d3f1d3e333d9c2b2f6e6ae8ed8750d4de03410ac294bcd12c7eefa3@%3Ccommits.cassandra.apache.org%3E
web
-
web.archive.org
/web/20210124141102/http://www.securityfocus.com/bid/103025
web
Sources
- CVE List CVE-2016-5397
- GitHub Advisory GHSA-r4m4-pmvw-m6j5
- NVD CVE-2016-5397
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.