CVE-2019-3564: Github.com/facebook/fbthrift Improper Input Validation And Excessive Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/facebook/fbthrift to 0.31.1-0.20190225164308-c461c1bd1a3e
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
CVE-2019-3564 Affected Github.com/facebook/fbthrift Versions
1 component(s)| 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?
Which Github.com/facebook/fbthrift versions are affected?
What version fixes CVE-2019-3564?
Is github.com/facebook/fbthrift affected?
What is the CVSS score of CVE-2019-3564?
What CWE is associated with CVE-2019-3564?
How can I check Go dependencies for CVE-2019-3564?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}