{"id":"CVE-2016-5397","aliases":["CLSA-2025-1765843686","CLSA-2026-1772756024","DEBIAN-CVE-2016-5397","EUVD-2022-5087","GHSA-r4m4-pmvw-m6j5","UBUNTU-CVE-2016-5397"],"status":"published","title":"Apache Thrift Go Library Command Injection","description":"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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.06873,"percentile":0.94099,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77"],"published":"2018-02-12T17:00:00Z","modified":"2026-10-24T10:30:42Z","fixes":[{"ecosystem":"Go","package":"github.com/apache/thrift","fixed_in":["0.10.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"thrift","fixed_in":["0.11.0-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"thrift","fixed_in":["0.11.0-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"thrift","fixed_in":["0.11.0-3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/apache/thrift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.9.3"},{"fixed":"0.10.0"}]}]},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.apache.thrift:libfb303","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.9.1"},{"fixed":"0.9.1-tuxcare.1"}]}],"versions":["0.9.1"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.apache.thrift:libthrift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.9.1"},{"fixed":"0.9.1-tuxcare.1"}]}],"versions":["0.9.1"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.apache.thrift:libfb303","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.9.3"},{"fixed":"0.9.3-tuxcare.2"}]}],"versions":["0.9.3","0.9.3.tuxcare.1"],"bundled":4},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.apache.thrift:libthrift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.9.3"},{"fixed":"0.9.3-tuxcare.2"}]}],"versions":["0.9.3","0.9.3.tuxcare.1"],"bundled":4},{"source":"osv","ecosystem":"Debian:12","package":"thrift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.0-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"thrift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.0-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"thrift","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.0-3"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/apache/thrift","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.10.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"thrift-compiler","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.1-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"thrift-compiler","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.1-2.1"]}],"products":[{"vendor":"apache","product":"thrift"},{"vendor":"apache software foundation","product":"apache thrift"}],"references":[{"url":"http://www.securityfocus.com/bid/103025","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2669","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://issues.apache.org/jira/browse/THRIFT-3893","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"http://mail-archives.apache.org/mod_mbox/thrift-user/201701.mbox/raw/%3CCANyrgvc3W%3DMJ9S-hMZecPNzxkyfgNmuSgVfW2hdDSz5ke%2BOPhQ%40mail.gmail.com%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3140","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://lists.apache.org/thread.html/r4d3f1d3e333d9c2b2f6e6ae8ed8750d4de03410ac294bcd12c7eefa3%40%3Ccommits.cassandra.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5397","tags":["advisory"]},{"url":"https://lists.apache.org/thread.html/r4d3f1d3e333d9c2b2f6e6ae8ed8750d4de03410ac294bcd12c7eefa3@%3Ccommits.cassandra.apache.org%3E","tags":["web"]},{"url":"https://web.archive.org/web/20210124141102/http://www.securityfocus.com/bid/103025","tags":["web"]},{"url":"https://github.com/advisories/GHSA-r4m4-pmvw-m6j5"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-5397","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2016-5397","tags":["report"]},{"url":"https://github.com/apache/thrift/commit/2007783e874d524a46b818598a45078448ecc53e","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-5397","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-5397","description":"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.","status":"published","published":"2018-02-12T17:00:00Z","modified":"2024-09-16T20:47:38.486Z","updated_at":"2026-11-02T14:33:31.117878Z"}],"euvd":[{"id":"EUVD-2022-5087","description":"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.","status":"published","published":"2018-02-12T17:00:00Z","modified":"2024-09-16T20:47:38Z","updated_at":"2026-11-03T00:55:10.854479Z"}],"ghsa":[{"id":"GHSA-r4m4-pmvw-m6j5","title":"Apache Thrift Go Library Command Injection","description":"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.","status":"published","published":"2022-05-13T01:25:56Z","modified":"2023-07-31T18:22:02Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:36:58.760727Z"}],"nvd":[{"id":"CVE-2016-5397","description":"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.","status":"published","published":"2018-02-12T17:29:00.213Z","modified":"2026-06-17T00:49:20.187Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:03:39.176887Z"}],"osv":[{"id":"CVE-2016-5397","description":"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.","status":"published","published":"2018-02-12T17:29:00.213Z","modified":"2026-10-24T10:30:42.324322117Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:02.776224Z"},{"id":"DEBIAN-CVE-2016-5397","description":"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.","status":"published","published":"2018-02-12T17:29:00.213Z","modified":"2026-09-22T07:03:01.959536852Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:27.910042Z"},{"id":"GHSA-r4m4-pmvw-m6j5","title":"Apache Thrift Go Library Command Injection","description":"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.","status":"published","published":"2022-05-13T01:25:56Z","modified":"2026-09-10T03:49:36.542550638Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:55.480549Z"},{"id":"UBUNTU-CVE-2016-5397","description":"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.","status":"published","published":"2018-02-12T17:29:00Z","modified":"2025-10-24T04:45:49Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:12.642042Z"},{"id":"CLSA-2025-1765843686","title":"TuxCare security update for org.apache.thrift (2 CVEs)","description":"TuxCare rebuilt 2 org.apache.thrift packages to address 2 CVEs. Fixed in 0.9.1-tuxcare.1.","status":"published","published":"2026-08-04T14:52:06Z","modified":"2026-10-15T09:46:05.861152719Z","updated_at":"2026-11-02T15:43:42.847264Z"},{"id":"CLSA-2026-1772756024","title":"TuxCare security update for org.apache.thrift (4 CVEs)","description":"TuxCare rebuilt 2 org.apache.thrift packages to address 4 CVEs. Fixed in 0.9.3-tuxcare.2.","status":"published","published":"2026-08-04T14:52:10Z","modified":"2026-10-15T09:46:16.694320961Z","updated_at":"2026-11-02T15:43:43.249928Z"}]}}
