cbcvebase.
CVE-2016-5397
published 2018-02-12

CVE-2016-5397: The Apache Thrift Go client library exposed the potential during code generation for command injection due to using an external formatting tool. Affected…

PriorityP356high8.8CVSS 3.0
AVNACLPRLUINSUCHIHAH
EPSS
7.06%
93.5th percentile
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.

Affected

8 ranges
VendorProductVersion rangeFixed in
apachethrift<= 0.9.3
apache_software_foundationapache_thrift
debianthrift< thrift 0.11.0-3 (bookworm)thrift 0.11.0-3 (bookworm)
facebookthrift>= 0 < 0.11.0-30.11.0-3
facebookthrift>= 0 < 0.11.0-30.11.0-3
facebookthrift>= 0 < 0.11.0-30.11.0-3
facebookthrift>= 0 < 0.11.0-30.11.0-3
github.comapache_thrift>= 0 < 0.10.00.10.0

Detection & IOCsextracted from sources · hover to see the quote

patht_go_generator.cc
urlhttps://github.com/apache/thrift/commit/2007783e874d524a46b818598a45078448ecc53e
  • Monitor for command injection via crafted Thrift service names passed to the Go code generator — the file_path parameter in format_go_output() is derived from the service name and passed unsanitized to an external formatting tool.
  • Flag use of Apache Thrift versions 0.9.3 and older in Go code-generation pipelines; the vulnerability is fixed in 0.10.0.
  • Audit any framework that accepts user-controlled service names and passes them to the Apache Thrift Go client library code generator (t_go_generator.cc:format_go_output()) for potential command injection.
  • ·libthrift shipped with OpenDaylight (Red Hat OpenStack) contains the vulnerable code but it is not invoked by OpenDaylight, so those deployments are not exposed.
  • ·JBoss Fuse 6.3 ships libthrift via the insight-activemq fabric-8 profile, but the vulnerable code path is not exercised by fabric-8.
  • ·Exploitation requires the attacker to be able to supply a service name to a framework that invokes the Thrift Go code generator — this is a local/code-generation-time attack surface, not a runtime network attack.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.09.0CRITICALAV:N/AC:L/Au:S/C:C/I:C/A:C
osv8.8HIGH
vendor_debian8.8LOW
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.