7.5high
github.com/tidwall/gjson Vulnerable to REDoS attack
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 2.02% (higher than 82% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-c9gm-7rfj-8w5hGHSA-ppj4-34rq-v8j9GO-2021-0265
Description
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| github.com/tidwall/gjson (Go) | before 1.9.3 | GitHub Advisory Database, Go Vulnerability Database |
| gjson_project gjson | before 1.9.3 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
GitHub Advisory Database
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-ppj4-34rq-v8j9. This link is maintained to preserve external references.
Original Description
GJSON <= 1.9.2 allows attackers to cause a redos via crafted JSON input.
GitHub Advisory Database
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.
Go Vulnerability Database
A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU and time.
NVD (es)
GJSON versiones anteriores a 1.9.3, permite un ataque de tipo ReDoS (expresión regular de denegación de servicio)
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 | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-42836 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c9gm-7rfj-8w5h changed 2024-05-19 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-ppj4-34rq-v8j9 changed 2024-05-20 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2021-0265 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2021-42836 changed 2026-06-17 | Public domain |