# CVE-2021-42836: github.com/tidwall/gjson Vulnerable to REDoS attack

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.02%, higher than 82% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-10-22T17:22:47.000Z
- Modified: 2026-06-17T04:10:11.053Z
- Also known as: GHSA-c9gm-7rfj-8w5h, GHSA-ppj4-34rq-v8j9, GO-2021-0265
- Related: CVE-2021-42248
- Weaknesses: CWE-400, CWE-697, CWE-1333
- Assigned by: mitre

## Description

GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/tidwall/gjson (Go): before 1.9.3
- gjson_project gjson: before 1.9.3

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/tidwall/gjson/issues/236> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/tidwall/gjson/issues/237> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96> (fix, patch, third-party-advisory, web)
- <https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3> (release-notes, third-party-advisory, web)
- <https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42248> (advisory)
- <https://github.com/tidwall/gjson> (package)
- <https://pkg.go.dev/vuln/GO-2021-0265> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42836> (advisory)

## Sources

- CVE List: [CVE-2021-42836](https://www.cve.org/CVERecord?id=CVE-2021-42836), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c9gm-7rfj-8w5h](https://github.com/advisories/GHSA-c9gm-7rfj-8w5h), CC-BY-4.0, modified 2024-05-19
- GitHub Advisory Database: [GHSA-ppj4-34rq-v8j9](https://github.com/advisories/GHSA-ppj4-34rq-v8j9), CC-BY-4.0, modified 2024-05-20
- Go Vulnerability Database: [GO-2021-0265](https://pkg.go.dev/vuln/GO-2021-0265), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-42836](https://nvd.nist.gov/vuln/detail/CVE-2021-42836), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42836 · Whole record: https://cve.day/CVE-2021-42836.json · Rebuilt by cve.day 2026-11-25T22:58:04.738Z
