high7.5
CVE-2021-42836
github.com/tidwall/gjson Vulnerable to REDoS attack
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/tidwall/gjson | < 1.9.3 | 1.9.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Gjson Project | Gjson | before 1.9.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944
- https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96
- https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3
- https://github.com/tidwall/gjson/issues/236
- https://github.com/tidwall/gjson/issues/237
- https://github.com/advisories/GHSA-ppj4-34rq-v8j9
- https://nvd.nist.gov/vuln/detail/CVE-2021-42836
- https://pkg.go.dev/vuln/GO-2021-0265