{"schemaVersion":3,"id":"CVE-2016-5397","aliases":["UBUNTU-CVE-2016-5397","DEBIAN-CVE-2016-5397","GHSA-r4m4-pmvw-m6j5","CGA-49j2-jmjh-5h8j","CGA-4r3h-wqv6-p8r5","CGA-723c-w8h7-wx7q","CGA-75mh-jff9-rg9r","CGA-7vj3-2rv7-7hfr","CGA-89vh-4hqf-3hm8","CGA-8p7v-863g-fv9w","CGA-998v-77pc-qjhc","CGA-9j3w-mmpv-wmv4","CGA-f52c-vwqm-qq89","CGA-gr74-586m-8jhj","CGA-hqww-w69m-c563","CGA-jvpj-mqv7-7vf8","CGA-m9q8-687r-792x","CGA-mmqf-ccvc-4g6r","CGA-p97r-m5rg-p6w6","CGA-pfph-fg93-9x27","CGA-ph35-8765-75fr","CGA-q4qq-9cqf-2564","CGA-w5qf-xf22-g366"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-02-12T17:00:00.000Z","modified":"2024-09-16T20:47:38.486Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9,"severity":"high","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Go","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true}]},"epss":{"probability":0.06873,"percentile":0.93985,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.06873},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06278,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06873,"percentile":0.93985}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.06278,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06873,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06873,"percentile":0.93985}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"}],"affected":[{"vendor":"apache software foundation","product":"apache thrift","name":"Apache Thrift","label":"apache thrift","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"versions prior to 0.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"versions prior to 0.10.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_thrift"},{"vendor":"apache","product":"thrift","name":"thrift","label":"thrift","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.9.3","eol":null,"hubHref":"/vendor/apache/thrift"},{"vendor":"chainguard","product":"cadence","name":"cadence","label":"cadence","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.3.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3 | < 1.3.6-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cadence-cassandra-tool","name":"cadence-cassandra-tool","label":"cadence-cassandra-tool","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence-cassandra-tool","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cadence-fips","name":"cadence-fips","label":"cadence-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence-fips","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.3.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3 | < 1.3.6-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cadence-fips-cassandra-tool","name":"cadence-fips-cassandra-tool","label":"cadence-fips-cassandra-tool","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence-fips-cassandra-tool","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cadence-fips-server","name":"cadence-fips-server","label":"cadence-fips-server","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence-fips-server","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cadence-fips-sql-tool","name":"cadence-fips-sql-tool","label":"cadence-fips-sql-tool","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence-fips-sql-tool","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cadence-server","name":"cadence-server","label":"cadence-server","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence-server","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cadence-sql-tool","name":"cadence-sql-tool","label":"cadence-sql-tool","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cadence-sql-tool","purlType":"apk","versions":[{"text":"< 1.4.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.0-r3","eol":null,"hubHref":null},{"vendor":"debian","product":"thrift","name":"thrift","label":"thrift","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/thrift","purlType":"deb","versions":[{"text":"< 0.11.0-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.11.0-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"thrift-compiler","name":"thrift-compiler","label":"thrift-compiler","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/thrift-compiler","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/apache","product":"thrift","name":"github.com/apache/thrift","label":"thrift","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/apache/thrift","purlType":"golang","versions":[{"text":"< 0.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.0","eol":null,"hubHref":null}],"affectedCount":13,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/103025","label":"www.securityfocus.com/bid/103025","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2669","label":"access.redhat.com/errata/RHSA-2018:2669","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB","Advisory"]},{"url":"https://issues.apache.org/jira/browse/THRIFT-3893","label":"issues.apache.org/jira/browse/THRIFT-3893","hostname":"issues.apache.org","tags":["X Refsource CONFIRM","Vendor Advisory","REPORT","WEB","Advisory"]},{"url":"http://mail-archives.apache.org/mod_mbox/thrift-user/201701.mbox/raw/%3CCANyrgvc3W%3DMJ9S-hMZecPNzxkyfgNmuSgVfW2hdDSz5ke%2BOPhQ%40mail.gmail.com%3E","label":"mail-archives.apache.org/mod_mbox/…","hostname":"mail-archives.apache.org","tags":["Mailing List","X Refsource MLIST","Vendor Advisory","WEB","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3140","label":"access.redhat.com/errata/RHSA-2019:3140","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB","Advisory"]},{"url":"https://lists.apache.org/thread.html/r4d3f1d3e333d9c2b2f6e6ae8ed8750d4de03410ac294bcd12c7eefa3%40%3Ccommits.cassandra.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"https://ubuntu.com/security/CVE-2016-5397","label":"ubuntu.com/security/CVE-2016-5397","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/apache/thrift/commit/2007783e874d524a46b818598a45078448ecc53e","label":"github.com/apache/thrift/commit/2007783e874d524a46b818598a45078448ecc53e","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-5397","label":"www.cve.org/CVERecord?id=CVE-2016-5397","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-5397","label":"security-tracker.debian.org/tracker/CVE-2016-5397","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5397","label":"nvd.nist.gov/vuln/detail/CVE-2016-5397","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://lists.apache.org/thread.html/r4d3f1d3e333d9c2b2f6e6ae8ed8750d4de03410ac294bcd12c7eefa3@%3Ccommits.cassandra.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://web.archive.org/web/20210124141102/http://www.securityfocus.com/bid/103025","label":"web.archive.org/web/20210124141102/http://www.securityfocus.com/bid/103025","hostname":"web.archive.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-HQXW-8JHH-55P3"]},"timeline":[{"kind":"published","date":"2018-02-12T17:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T20:47:38.486Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T00:48:35.038Z","stale":false,"partial":false}}