CVE-2020-10675: Github.com/buger/jsonparser Infinite Loop Vulnerability
HIGHCVE-2020-10675 is a HIGH (CVSS 7.5) infinite loop vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Github.com/buger/jsonparser libraries in the Go ecosystem. The issue involves infinite loop in jsonparser. Remediation is available by upgrading affected packages to version 1.0.0.
CVE-2020-10675 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-10675
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.0.0
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-10675, 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.0.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-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. 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-10675 Affected Github.com/buger/jsonparser Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/buger/jsonparser
|
Go |
< 1.0.0
|
1.0.0
|
References
Frequently Asked Questions
What is CVE-2020-10675?
Which Github.com/buger/jsonparser versions are affected?
What version fixes CVE-2020-10675?
Is github.com/buger/jsonparser affected?
What is the CVSS score of CVE-2020-10675?
What CWE is associated with CVE-2020-10675?
How can I check Go dependencies for CVE-2020-10675?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rmh2-65xw-9m6q",
"modified" : "2024-05-20T19:47:11Z",
"published" : "2021-05-18T18:26:25Z",
"aliases" : [ "CVE-2020-10675" ],
"summary" : "Infinite Loop in jsonparser",
"details" : "The Library API in buger jsonparser through 2019-12-04 allows attackers to cause a denial of service (infinite loop) via a Delete 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.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-10675"
}, {
"type" : "WEB",
"url" : "https://github.com/buger/jsonparser/issues/188"
}, {
"type" : "WEB",
"url" : "https://github.com/buger/jsonparser/pull/192"
}, {
"type" : "WEB",
"url" : "https://github.com/buger/jsonparser/commit/91ac96899e492584984ded0c8f9a08f10b473717"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/buger/jsonparser"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4C7PV6KEUUM76V4B2J5IFN2U6LEOWB67"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6KUHKDQSEYJNROA66OMN6AAQMGAAN6WI"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2021-0089"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-835" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-04T21:51:17Z",
"nvd_published_at" : "2020-03-19T14:15:00Z"
}
}