VYPR
High severityNVD Advisory· Published Feb 12, 2018· Updated Sep 16, 2024

CVE-2016-5397

CVE-2016-5397

Description

Apache Thrift Go client library command injection via gofmt during code generation; affects versions prior to 0.10.0.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Apache Thrift Go client library command injection via gofmt during code generation; affects versions prior to 0.10.0.

Vulnerability

The Apache Thrift Go client library, versions 0.9.3 and earlier, is vulnerable to command injection during code generation due to improper sanitization of file paths in t_go_generator.cc:format_go_output(), which uses an external formatting tool (gofmt). [1][4]

Exploitation

An attacker who can control the service name provided to a Thrift code generator (e.g., via malicious input to a framework invoking Thrift) can inject arbitrary commands. The service name is used to construct a file path that is passed to gofmt, resulting in command injection. [4]

Impact

Successful exploitation allows an attacker to execute arbitrary commands on the machine running the Thrift code generator. This can lead to full compromise of the build or development environment. [1][4]

Mitigation

The vulnerability is fixed in Apache Thrift version 0.10.0, released in December 2016. Users should upgrade to 0.10.0 or later. Red Hat issued patches in RHSA-2018:2669 for Fuse 7.1 and RHSA-2019:3140 for JBoss Data Virtualization 6.4.8. [2][3][4]

AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/apache/thriftGo
< 0.10.00.10.0

Affected products

5

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

10

News mentions

0

No linked articles in our index yet.