Skip to content
Fencer Intel
high 8.8

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 libthrift
    affected: 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) opendaylight
    affected: no fix planned “Will not fix”
  • Red Hat Fuse 7
    fixed: vendor fix RHSA-2018:2669
  • Red Hat JBoss Data Virtualization 6.4.8
    fixed: 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 more
    not 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-09).

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

Sources

Fencer Intel 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.