CVE-2019-11939: Github.com/facebook/fbthrift Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-w3r9-r9w7-8h48
CVSS 7.5
CWE-770
Published
Advisory Summary

CVE-2019-11939 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Github.com/facebook/fbthrift libraries in the Go ecosystem. The issue involves golang facebook thrift servers vulnerable to denial of service. Remediation is available by upgrading affected packages to version 0.31.1-0.20200311080807-483ed864d69f.

CVE-2019-11939 at a Glance

CVE Identifier CVE-2019-11939
GHSA Identifier GHSA-w3r9-r9w7-8h48
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
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-11939

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.20200311080807-483ed864d69f
Upgrade github.com/facebook/fbthrift to 0.31.1-0.20200311080807-483ed864d69f
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-11939, 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.20200311080807-483ed864d69f), 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. 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

Golang Facebook Thrift servers would not error upon receiving messages declaring containers of sizes larger than the payload. As a result, malicious clients could send short messages which would result in a large memory allocation, potentially leading to denial of service. This issue affects Facebook Thrift prior to v2020.03.16.00. ### Specific Go Packages Affected github.com/facebook/fbthrift/thrift/lib/go/thrift

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

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

References

Frequently Asked Questions

What is CVE-2019-11939?
CVE-2019-11939 is a security vulnerability in Github.com/facebook/fbthrift involving Golang Facebook Thrift servers vulnerable to denial of service under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Github.com/facebook/fbthrift versions are affected?
Affected versions include releases prior to 0.31.1-0.20200311080807-483ed864d69f across affected packages: github.com/facebook/fbthrift.
What version fixes CVE-2019-11939?
Upgrading to 0.31.1-0.20200311080807-483ed864d69f (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.20200311080807-483ed864d69f. Upgrade your dependency to 0.31.1-0.20200311080807-483ed864d69f or later.
What is the CVSS score of CVE-2019-11939?
CVE-2019-11939 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-11939?
CVE-2019-11939 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Go dependencies for CVE-2019-11939?
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-w3r9-r9w7-8h48",
  "modified" : "2023-09-29T17:09:10Z",
  "published" : "2022-05-24T17:11:45Z",
  "aliases" : [ "CVE-2019-11939" ],
  "summary" : "Golang Facebook Thrift servers vulnerable to denial of service",
  "details" : "Golang Facebook Thrift servers would not error upon receiving messages declaring containers of sizes larger than the payload. As a result, malicious clients could send short messages which would result in a large memory allocation, potentially leading to denial of service. This issue affects Facebook Thrift prior to v2020.03.16.00.\n\n### Specific Go Packages Affected\ngithub.com/facebook/fbthrift/thrift/lib/go/thrift",
  "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.20200311080807-483ed864d69f"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11939"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/facebook/fbthrift/commit/483ed864d69f307e9e3b9dadec048216100c0757"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/facebook/fbthrift"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2021-0082"
  }, {
    "type" : "WEB",
    "url" : "https://www.facebook.com/security/advisories/cve-2019-11939"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T00:26:28Z",
    "nvd_published_at" : "2020-03-18T01:15:00Z"
  }
}