CVE-2019-0210: Github.com/apache/thrift Out-of-bounds Read Vulnerability

HIGH
Advisory Identifier: GHSA-jq7p-26h5-w78r
CVSS 7.5
CWE-125
Published
Advisory Summary

CVE-2019-0210 is a HIGH (CVSS 7.5) out-of-bounds read vulnerability (CWE-125: Out-of-bounds Read) affecting Github.com/apache/thrift libraries in the Go ecosystem. The issue involves out-of-bounds read in apache thrift. Remediation is available by upgrading affected packages to version 0.13.0.

CVE-2019-0210 at a Glance

CVE Identifier CVE-2019-0210
GHSA Identifier GHSA-jq7p-26h5-w78r
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Github.com/apache/thrift
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2019-0210

To remediate this vulnerability, upgrade all affected Github.com/apache/thrift dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/apache/thrift fixed: 0.13.0
Upgrade github.com/apache/thrift to 0.13.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/apache/thrift

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-0210, inspect your project dependencies for Github.com/apache/thrift:

inspect dependencies for github.com/apache/thrift

Analyze the terminal output to locate any version of Github.com/apache/thrift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.13.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Github.com/apache/thrift, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In Apache Thrift 0.9.3 to 0.12.0, a server implemented in Go using TJSONProtocol or TSimpleJSONProtocol may panic when feed with invalid input data.

CVE-2019-0210 Affected Github.com/apache/thrift Versions

1 component(s)
Fixed Versions:
0.13.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/apache/thrift
Go
≥ 0.9.3
< 0.13.0
0.13.0

References

NVD — CVE-2019-0210 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-0210
Security Fix Commit FIX COMMIT
https://github.com/apache/thrift/commit/264a3f318ed3e9e51573f67f963c8509786bcec2
access.redhat.com/errata/rhsa-2020:08... WEB
https://access.redhat.com/errata/RHSA-2020:0804
access.redhat.com/errata/rhsa-2020:08... WEB
https://access.redhat.com/errata/RHSA-2020:0805
access.redhat.com/errata/rhsa-2020:08... WEB
https://access.redhat.com/errata/RHSA-2020:0806
access.redhat.com/errata/rhsa-2020:08... WEB
https://access.redhat.com/errata/RHSA-2020:0811
Github.com/apache/thrift Source Repository REPOSITORY
https://github.com/apache/thrift
Github.com/apache/thrift Source Repository REPOSITORY
https://github.com/apache/thrift/blob/master/CHANGES.md#0130
lists.apache.org/thread.html/r283272... WEB
https://lists.apache.org/thread.html/r2832722c31d78bef7526e2c701ba4b046736e4c851473194a247392f@%3Ccommits.pulsar.apache.org%3E
lists.apache.org/thread.html/r36581c... WEB
https://lists.apache.org/thread.html/r36581cc7047f007dd6aadbdd34e18545ec2c1eb7ccdae6dd47a877a9@%3Ccommits.pulsar.apache.org%3E
lists.apache.org/thread.html/r556096... WEB
https://lists.apache.org/thread.html/r55609613abab203a1f2c1f3de050b63ae8f5c4a024df0d848d6915ff@%3Ccommits.pulsar.apache.org%3E
lists.apache.org/thread.html/rab740e... WEB
https://lists.apache.org/thread.html/rab740e5c70424ef79fd095a4b076e752109aeee41c4256c2e5e5e142@%3Ccommits.pulsar.apache.org%3E
pkg.go.dev/vuln/go-2021-0101 WEB
https://pkg.go.dev/vuln/GO-2021-0101
Github.com/apache/thrift Security Information SECURITY
https://security.gentoo.org/glsa/202107-32
Github.com/apache/thrift Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2021.html
mail-archives.apache.org/mod_mbox/thrift-dev... WEB
http://mail-archives.apache.org/mod_mbox/thrift-dev/201910.mbox/%3C277A46CA87494176B1BBCF5D72624A2A%40HAGGIS%3E

Frequently Asked Questions

What is CVE-2019-0210?
CVE-2019-0210 is a security vulnerability in Github.com/apache/thrift involving Out-of-bounds read in Apache Thrift under CWE-125: Out-of-bounds Read.
Which Github.com/apache/thrift versions are affected?
Affected versions include releases prior to 0.13.0 across affected packages: github.com/apache/thrift.
What version fixes CVE-2019-0210?
Upgrading to 0.13.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/apache/thrift affected?
Yes, github.com/apache/thrift is affected in releases prior to 0.13.0. Upgrade your dependency to 0.13.0 or later.
What is the CVSS score of CVE-2019-0210?
CVE-2019-0210 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2019-0210?
CVE-2019-0210 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check Go dependencies for CVE-2019-0210?
Run the dependency tree command: 'inspect dependencies for github.com/apache/thrift'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jq7p-26h5-w78r",
  "modified" : "2022-10-31T15:57:25Z",
  "published" : "2021-05-18T15:32:04Z",
  "aliases" : [ "CVE-2019-0210" ],
  "summary" : "Out-of-bounds read in Apache Thrift",
  "details" : "In Apache Thrift 0.9.3 to 0.12.0, a server implemented in Go using TJSONProtocol or TSimpleJSONProtocol may panic when feed with invalid input data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/apache/thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.3"
      }, {
        "fixed" : "0.13.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0210"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/thrift/commit/264a3f318ed3e9e51573f67f963c8509786bcec2"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0804"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0805"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0806"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0811"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/thrift"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/thrift/blob/master/CHANGES.md#0130"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r2832722c31d78bef7526e2c701ba4b046736e4c851473194a247392f@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r36581cc7047f007dd6aadbdd34e18545ec2c1eb7ccdae6dd47a877a9@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r55609613abab203a1f2c1f3de050b63ae8f5c4a024df0d848d6915ff@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rab740e5c70424ef79fd095a4b076e752109aeee41c4256c2e5e5e142@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2021-0101"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/202107-32"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujul2021.html"
  }, {
    "type" : "WEB",
    "url" : "http://mail-archives.apache.org/mod_mbox/thrift-dev/201910.mbox/%3C277A46CA87494176B1BBCF5D72624A2A%40HAGGIS%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-17T21:09:18Z",
    "nvd_published_at" : "2019-10-29T19:15:00Z"
  }
}