CVE-2020-35381: Github.com/buger/jsonparser Denial of Service Vulnerability
HIGHCVE-2020-35381 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-125: Out-of-bounds Read) affecting Github.com/buger/jsonparser libraries in the Go ecosystem. The issue involves denial of service in jsonparser. Remediation is available by upgrading affected packages to version 1.1.1.
CVE-2020-35381 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-2020-35381
To remediate this vulnerability, upgrade all affected Github.com/buger/jsonparser 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/buger/jsonparser to 1.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/buger/jsonparser
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-35381, inspect your project dependencies for Github.com/buger/jsonparser:
inspect dependencies for github.com/buger/jsonparser
Analyze the terminal output to locate any version of Github.com/buger/jsonparser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), 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/buger/jsonparser, 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-2020-35381 Affected Github.com/buger/jsonparser Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/buger/jsonparser
|
Go |
< 1.1.1
|
1.1.1
|
References
Frequently Asked Questions
What is CVE-2020-35381?
Which Github.com/buger/jsonparser versions are affected?
What version fixes CVE-2020-35381?
Is github.com/buger/jsonparser affected?
What is the CVSS score of CVE-2020-35381?
What CWE is associated with CVE-2020-35381?
How can I check Go dependencies for CVE-2020-35381?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8vrw-m3j9-j27c",
"modified" : "2024-05-20T19:28:16Z",
"published" : "2022-05-25T19:21:53Z",
"aliases" : [ "CVE-2020-35381" ],
"summary" : "Denial of Service in jsonparser",
"details" : "jsonparser before 1.1.1 allows attackers to cause a denial of service via a GET call.",
"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/buger/jsonparser"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-35381"
}, {
"type" : "WEB",
"url" : "https://github.com/buger/jsonparser/issues/219"
}, {
"type" : "WEB",
"url" : "https://github.com/buger/jsonparser/pull/221"
}, {
"type" : "WEB",
"url" : "https://github.com/buger/jsonparser/commit/df3ea76ece10095374fd1c9a22a4fb85a44efc42"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/buger/jsonparser"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27EA7OGCELV7QFAGVIHODHWKMKGFVIUZ"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LJO5N7YTDEUSTKYTNA372CE6VHCZJWUG"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2021-0057"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-05-25T19:21:53Z",
"nvd_published_at" : "2020-12-15T21:15:00Z"
}
}