# CVE-2016-5397: Apache Thrift Go Library Command Injection

Source: https://junglewise.ai/threats/cve-2016-5397-apache-thrift-go-library-command-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-13  
License: CC BY 4.0 with a link back

CVE-2016-5397 · Severity: low · CVSS 3 · Published 2022-05-13

Apache Thrift Go Library Command Injection

Technologies: [github.com/apache/thrift (Go)](https://junglewise.ai/threats/technologies/github-com-apache-thrift). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2016-5397 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2016-5397 being exploited in the wild.

**How severe is CVE-2016-5397?** Low severity, with a CVSS score of 3, published 13 May 2022.

**Which products and versions are affected?** github.com/apache/thrift (Go) SEMVER:introduced=0,fixed=0.10.0.

**Is there a fix for CVE-2016-5397?** Yes. github.com/apache/thrift (Go): upgrade to 0.10.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2016-5397?** Check whether you run github.com/apache/thrift (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/apache/thrift (Go): upgrade to 0.10.0 or later

  ```sh
  go get github.com/apache/thrift@v0.10.0
  ```


## Affected products

- github.com/apache/thrift (Go) SEMVER:introduced=0,fixed=0.10.0

## Identifiers

- CVE-2016-5397
- GHSA-r4m4-pmvw-m6j5

## Related threats

- [Apache Thrift infinite loop in Python, Go, PHP and Java bindings](https://junglewise.ai/threats/cve-2026-43871-apache-thrift-infinite-loop-in-python-go-php-and-java-bindings)
- [Apache Thrift integer overflow in Go TFramedTransport](https://junglewise.ai/threats/cve-2026-41602-apache-thrift-integer-overflow-in-go-tframedtransport)
- [GO-2021-0101 - Panic due to out-of-bounds read in github.com/apache/thrift](https://junglewise.ai/threats/cve-2019-0210-out-of-bounds-read-in-apache-thrift)
