Vulnerability · Published Oct 22, 2021 · Assigned by mitre
CVE-2021-42836
High 7.5
In plain English
A high-severity security flaw in the golang-github-tidwall-gjson package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.4% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.4%top 15.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-tidwall-gjson | 1.14.4-2 | DEBIAN-CVE-2021-42836 |
| Debian:13 | golang-github-tidwall-gjson | 1.14.4-2 | DEBIAN-CVE-2021-42836 |
| Debian:14 | golang-github-tidwall-gjson | 1.14.4-2 | DEBIAN-CVE-2021-42836 |
| Go | github.com/tidwall/gjson | 1.9.3 | GHSA-c9gm-7rfj-8w5h |
| Go | github.com/tidwall/gjson | 1.9.3 | GHSA-ppj4-34rq-v8j9 |
| Go | github.com/tidwall/gjson | 1.9.3 | GO-2021-0265 |
| Ubuntu:22.04:LTS | golang-github-tidwall-gjson | no fix listed | UBUNTU-CVE-2021-42836 |
| Ubuntu:24.04:LTS | golang-github-tidwall-gjson | no fix listed | UBUNTU-CVE-2021-42836 |
| Ubuntu:25.10 | golang-github-tidwall-gjson | no fix listed | UBUNTU-CVE-2021-42836 |
| Ubuntu:26.04:LTS | golang-github-tidwall-gjson | no fix listed | UBUNTU-CVE-2021-42836 |
| Ubuntu:26.10 | golang-github-tidwall-gjson | no fix listed | UBUNTU-CVE-2021-42836 |
Affected products (as reported)
References
- https://github.com/tidwall/gjson/issues/236 x_refsource_MISC
- https://github.com/tidwall/gjson/issues/237 x_refsource_MISC
- https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96 x_refsource_MISC
- https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3 x_refsource_MISC
- https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944 x_refsource_MISC