{"id":"CVE-2021-42248","aliases":["EUVD-2022-3547","GHSA-c9gm-7rfj-8w5h","GHSA-ppj4-34rq-v8j9","GO-2021-0265","UBUNTU-CVE-2021-42248"],"status":"rejected","title":"Duplicate Advisory: ReDoS via crafted JSON input in GJSON","description":"DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2021-42836. Reason: This candidate is a duplicate of CVE-2021-42836. Notes: All CVE users should reference CVE-2021-42836 instead of this candidate.","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","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1333","CWE-400","CWE-697"],"published":"2021-10-22T18:15:14.897Z","modified":"2026-10-20T10:54:06Z","affected":[{"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}],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42248","tags":["advisory"]},{"url":"https://github.com/tidwall/gjson/issues/236","tags":["report","web"]},{"url":"https://github.com/tidwall/gjson/issues/237","tags":["fix","web","report"]},{"url":"https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944","tags":["fix","web"]},{"url":"https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96","tags":["fix","web","report"]},{"url":"https://github.com/tidwall/gjson","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0265","tags":["web"]},{"url":"https://github.com/advisories/GHSA-c9gm-7rfj-8w5h"},{"url":"https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3","tags":["advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42836","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-42248","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42248","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-42248","description":"DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2021-42836. Reason: This candidate is a duplicate of CVE-2021-42836. Notes: All CVE users should reference CVE-2021-42836 instead of this candidate.","status":"rejected","modified":"2024-05-02T21:39:59.647Z","updated_at":"2026-11-02T14:32:58.739039Z"}],"euvd":[{"id":"EUVD-2022-3547","description":"DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2021-42836. Reason: This candidate is a duplicate of CVE-2021-42836. Notes: All CVE users should reference CVE-2021-42836 instead of this candidate.","status":"published","published":"2022-05-25T00:00:38Z","modified":"2024-05-02T21:39:59Z","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-03T03:50:51.128689Z"}],"ghsa":[{"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-03T20:39:37Z","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-02T14:37:48.08826Z"}],"nvd":[{"id":"CVE-2021-42248","description":"Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2021-42836. Reason: This candidate is a duplicate of CVE-2021-42836. Notes: All CVE users should reference CVE-2021-42836 instead of this candidate.","status":"rejected","published":"2022-05-24T15:15:07.457Z","modified":"2024-05-02T22:15:07.54Z","updated_at":"2026-11-02T14:07:06.501652Z"}],"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":"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-42248","description":"** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2021-42836. Reason: This candidate is a duplicate of CVE-2021-42836. Notes: All CVE users should reference CVE-2021-42836 instead of this candidate.","status":"withdrawn","published":"2022-05-24T15:15:00Z","modified":"2025-07-08T14:32:22.401281Z","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"}]}}
