CVE-2019-3564: Github.com/facebook/fbthrift Improper Input Validation And Excessive Vulnerability

HIGH
Advisory Identifier: GHSA-x4rg-4545-4w7w
CVSS 7.5
CWE-834 CWE-755 CWE-20
Published
Advisory Summary

CVE-2019-3564 is a HIGH (CVSS 7.5) improper input validation and excessive vulnerability (CWE-834: Excessive Iteration) affecting Github.com/facebook/fbthrift libraries in the Go ecosystem. The issue involves improper input validation and excessive iteration in go facebook thrift. Remediation is available by upgrading affected packages to version 0.31.1-0.20190225164308-c461c1bd1a3e.

CVE-2019-3564 at a Glance

CVE Identifier CVE-2019-3564
GHSA Identifier GHSA-x4rg-4545-4w7w
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-834: Excessive Iteration
Affected Product Github.com/facebook/fbthrift
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-3564

To remediate this vulnerability, upgrade all affected Github.com/facebook/fbthrift 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/facebook/fbthrift fixed: 0.31.1-0.20190225164308-c461c1bd1a3e
Upgrade github.com/facebook/fbthrift to 0.31.1-0.20190225164308-c461c1bd1a3e
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/facebook/fbthrift

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-3564, inspect your project dependencies for Github.com/facebook/fbthrift:

inspect dependencies for github.com/facebook/fbthrift

Analyze the terminal output to locate any version of Github.com/facebook/fbthrift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.31.1-0.20190225164308-c461c1bd1a3e), 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-834: Excessive Iteration, where the product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed. In Github.com/facebook/fbthrift, 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

Go Facebook Thrift servers would not error upon receiving messages with containers of fields of unknown type. As a result, malicious clients could send short messages which would take a long time for the server to parse, potentially leading to denial of service. This issue affects Facebook Thrift prior to v2019.03.04.00.

CVE-2019-3564 Affected Github.com/facebook/fbthrift Versions

1 component(s)
Fixed Versions:
0.31.1-0.20190225164308-c461c1bd1a3e
Product / Package Ecosystem Affected Versions Fixed Version
github.com/facebook/fbthrift
Go
< 0.31.1-0.20190225164308-c461c1bd1a3e
0.31.1-0.20190225164308-c461c1bd1a3e

References

Frequently Asked Questions

What is CVE-2019-3564?
CVE-2019-3564 is a security vulnerability in Github.com/facebook/fbthrift involving Improper Input Validation and Excessive Iteration in Go Facebook Thrift under CWE-834: Excessive Iteration.
Which Github.com/facebook/fbthrift versions are affected?
Affected versions include releases prior to 0.31.1-0.20190225164308-c461c1bd1a3e across affected packages: github.com/facebook/fbthrift.
What version fixes CVE-2019-3564?
Upgrading to 0.31.1-0.20190225164308-c461c1bd1a3e (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/facebook/fbthrift affected?
Yes, github.com/facebook/fbthrift is affected in releases prior to 0.31.1-0.20190225164308-c461c1bd1a3e. Upgrade your dependency to 0.31.1-0.20190225164308-c461c1bd1a3e or later.
What is the CVSS score of CVE-2019-3564?
CVE-2019-3564 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-3564?
CVE-2019-3564 is classified under CWE-834: Excessive Iteration (The product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed.).
How can I check Go dependencies for CVE-2019-3564?
Run the dependency tree command: 'inspect dependencies for github.com/facebook/fbthrift'. 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-x4rg-4545-4w7w",
  "modified" : "2021-11-03T14:59:45Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ "CVE-2019-3564" ],
  "summary" : "Improper Input Validation and Excessive Iteration in Go Facebook Thrift",
  "details" : "Go Facebook Thrift servers would not error upon receiving messages with containers of fields of unknown type. As a result, malicious clients could send short messages which would take a long time for the server to parse, potentially leading to denial of service. This issue affects Facebook Thrift prior to v2019.03.04.00.",
  "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/facebook/fbthrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.31.1-0.20190225164308-c461c1bd1a3e"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3564"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/facebook/fbthrift/commit/c461c1bd1a3e130b181aa9c854da3030cd4b5156"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/facebook/fbthrift"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2021-0088"
  }, {
    "type" : "WEB",
    "url" : "https://www.facebook.com/security/advisories/cve-2019-3564"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-755", "CWE-834" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-17T15:32:10Z",
    "nvd_published_at" : "2019-05-06T16:29:00Z"
  }
}