CVE-2021-42836
published 2021-10-22CVE-2021-42836: GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
PriorityP335high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
2.25%
81.0th percentile
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-github-tidwall-gjson | < golang-github-tidwall-gjson 1.14.4-2 (bookworm) | golang-github-tidwall-gjson 1.14.4-2 (bookworm) |
| github.com | tidwall_gjson | >= 0 < 1.9.3 | 1.9.3 |
| gjson_project | gjson | < 1.9.3 | 1.9.3 |
| msrc | azl3_keda_2.14.0-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_keda_2.4.0-15_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Denial of service via maliciously crafted path in github.com/tidwall/gjson
osv·2022-08-15
CVE-2021-42248 Denial of service via maliciously crafted path in github.com/tidwall/gjson
Denial of service via maliciously crafted path in github.com/tidwall/gjson
A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU and time.
OSV
Duplicate Advisory: ReDoS via crafted JSON input in GJSON
osv·2022-05-25
CVE-2021-42248 [HIGH] Duplicate Advisory: ReDoS via crafted JSON input in GJSON
Duplicate Advisory: ReDoS via crafted JSON input in GJSON
## 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.
OSV
github.com/tidwall/gjson Vulnerable to REDoS attack
osv·2021-10-25
CVE-2021-42248 [HIGH] github.com/tidwall/gjson Vulnerable to REDoS attack
github.com/tidwall/gjson Vulnerable to REDoS attack
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.
GHSA
github.com/tidwall/gjson Vulnerable to REDoS attack
ghsa·2021-10-25
CVE-2021-42836 [HIGH] CWE-1333 github.com/tidwall/gjson Vulnerable to REDoS attack
github.com/tidwall/gjson Vulnerable to REDoS attack
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.
OSV
CVE-2021-42836: GJSON before 1
osv·2021-10-22·CVSS 7.5
CVE-2021-42836 [HIGH] CVE-2021-42836: GJSON before 1
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
Microsoft
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
vendor_msrc·2021-10-12·CVSS 7.5
CVE-2021-42836 [HIGH] CWE-400 GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre: mitre
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Debian
CVE-2021-42836: golang-github-tidwall-gjson - GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
vendor_debian·2021·CVSS 7.5
CVE-2021-42836 [HIGH] CVE-2021-42836: golang-github-tidwall-gjson - GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
Scope: local
bookworm: resolved (fixed in 1.14.4-2)
bullseye: open
forky: resolved (fixed in 1.14.4-2)
sid: resolved (fixed in 1.14.4-2)
trixie: resolved (fixed in 1.14.4-2)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3https://github.com/tidwall/gjson/issues/236https://github.com/tidwall/gjson/issues/237https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3https://github.com/tidwall/gjson/issues/236https://github.com/tidwall/gjson/issues/237
2021-10-22
Published