{"id":"CVE-2021-42836","aliases":["DEBIAN-CVE-2021-42836","EUVD-2021-2240","GHSA-c9gm-7rfj-8w5h","GHSA-ppj4-34rq-v8j9","GO-2021-0265","UBUNTU-CVE-2021-42836"],"status":"published","title":"github.com/tidwall/gjson Vulnerable to REDoS attack","description":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.02415,"percentile":0.84269,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333","CWE-400","CWE-697"],"published":"2021-10-22T17:22:47Z","modified":"2026-10-23T18:04:16Z","fixes":[{"ecosystem":"Go","package":"github.com/tidwall/gjson","fixed_in":["1.9.3"],"sources":["ghsa"]},{"ecosystem":"Debian:12","package":"golang-github-tidwall-gjson","fixed_in":["1.14.4-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"golang-github-tidwall-gjson","fixed_in":["1.14.4-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"golang-github-tidwall-gjson","fixed_in":["1.14.4-2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/tidwall/gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.4-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.4-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.4-2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/tidwall/gjson","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.9.3"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"github.com/tidwall/gjson","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.9.3"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.5-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.4-2","1.17.1-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.1-1","1.19.0-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-tidwall-gjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.1-1"]}],"products":[{"vendor":"gjson_project","product":"gjson"}],"references":[{"url":"https://github.com/tidwall/gjson/issues/236","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/tidwall/gjson/issues/237","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42836","tags":["advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0265","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ppj4-34rq-v8j9"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-42836","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42248","tags":["advisory"]},{"url":"https://github.com/tidwall/gjson","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-42836","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42836","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-42836","description":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","status":"published","published":"2021-10-22T17:22:47Z","modified":"2024-08-04T03:38:50.219Z","updated_at":"2026-11-02T14:32:58.739039Z"}],"euvd":[{"id":"EUVD-2021-2240","description":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","status":"published","published":"2021-10-22T17:22:47Z","modified":"2024-08-04T03:38:50Z","updated_at":"2026-11-03T03:24:15.755984Z"}],"ghsa":[{"id":"GHSA-ppj4-34rq-v8j9","title":"github.com/tidwall/gjson Vulnerable to REDoS attack","description":"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.","status":"published","published":"2021-10-25T19:43:15Z","modified":"2023-08-30T00:32:38Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-697","CWE-1333"],"updated_at":"2026-11-02T14:37:02.095916Z"}],"nvd":[{"id":"CVE-2021-42836","description":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","status":"published","published":"2021-10-22T18:15:14.897Z","modified":"2026-06-17T04:10:11.053Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:07:00.137719Z"}],"osv":[{"id":"CVE-2021-42836","description":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","status":"published","published":"2021-10-22T18:15:14.897Z","modified":"2026-10-20T10:54:06.633897465Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.557945Z"},{"id":"DEBIAN-CVE-2021-42836","description":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","status":"published","published":"2021-10-22T18:15:14.897Z","modified":"2026-10-23T18:04:16.504511228Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"GHSA-c9gm-7rfj-8w5h","title":"Duplicate Advisory: ReDoS via crafted JSON input in GJSON","description":"## 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 \u003c= 1.9.2 allows attackers to cause a redos via crafted JSON input.","status":"withdrawn","published":"2022-05-25T00:00:38Z","modified":"2024-05-19T02:24:21.070367Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:46:44.927642Z"},{"id":"GHSA-ppj4-34rq-v8j9","title":"github.com/tidwall/gjson Vulnerable to REDoS attack","description":"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.","status":"published","published":"2021-10-25T19:43:15Z","modified":"2024-05-20T20:41:04Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-1333","CWE-400","CWE-697"],"updated_at":"2026-11-02T15:46:53.244788Z"},{"id":"UBUNTU-CVE-2021-42836","description":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","status":"published","published":"2021-10-22T18:15:00Z","modified":"2026-10-17T12:56:15.744908063Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:29.220315Z"},{"id":"GO-2021-0265","title":"Denial of service via maliciously crafted path in github.com/tidwall/gjson","description":"A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU and time.","status":"published","published":"2022-08-15T18:06:07Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
