{"id":"CVE-2021-42836","aliases":["CVE-2021-42836","GHSA-c9gm-7rfj-8w5h","GHSA-ppj4-34rq-v8j9","GO-2021-0265"],"related":["CVE-2021-42248"],"kind":"vulnerability","state":"published","title":"github.com/tidwall/gjson Vulnerable to REDoS attack","summary":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","source":"cvelist"},{"lang":"en","text":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-ppj4-34rq-v8j9. This link is maintained to preserve external references.\n\n## Original Description\nGJSON <= 1.9.2 allows attackers to cause a redos via crafted JSON input.","format":"markdown","source":"ghsa"},{"lang":"en","text":"GJSON is a Go package that provides a fast and simple way to get values from a json document. GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","format":"markdown","source":"ghsa"},{"lang":"en","text":"A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU and time.","format":"markdown","source":"go"},{"lang":"es","text":"GJSON versiones anteriores a 1.9.3, permite un ataque de tipo ReDoS (expresión regular de denegación de servicio)","source":"nvd"}],"published":"2021-10-22T17:22:47.000Z","modified":"2026-06-17T04:10:11.053Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-697","CWE-1333"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.9.3"}],"ecosystem":"Go","package":"github.com/tidwall/gjson","purl":"pkg:golang/github.com/tidwall/gjson","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.9.3"}],"ecosystem":"Go","package":"github.com/tidwall/gjson","purl":"pkg:golang/github.com/tidwall/gjson","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.9.3"}],"ecosystem":"Go","package":"github.com/tidwall/gjson","purl":"pkg:golang/github.com/tidwall/gjson","source":"go"},{"ranges":[{"status":"affected","fixed":"1.9.3"}],"vendor":"gjson_project","product":"gjson","cpe":"cpe:2.3:a:gjson_project:gjson:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tidwall/gjson/issues/236","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/tidwall/gjson/issues/237","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42248","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tidwall/gjson","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0265","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42836","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42836","url":"https://www.cve.org/CVERecord?id=CVE-2021-42836","licence":"CVE Terms of Use","modified":"2024-08-04T03:38:50.219Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c9gm-7rfj-8w5h","url":"https://github.com/advisories/GHSA-c9gm-7rfj-8w5h","licence":"CC-BY-4.0","modified":"2024-05-19T02:24:21.070Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ppj4-34rq-v8j9","url":"https://github.com/advisories/GHSA-ppj4-34rq-v8j9","licence":"CC-BY-4.0","modified":"2024-05-20T20:41:04.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0265","url":"https://pkg.go.dev/vuln/GO-2021-0265","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42836","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42836","licence":"Public domain","modified":"2026-06-17T04:10:11.053Z"}],"updatedAt":"2026-11-25T22:58:04.738Z","epss":{"score":0.02015,"percentile":0.81581,"date":"2026-11-30T12:00:22.000Z"}}