CVE-2021-42836
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
github.com/tidwall/gjson (Go)before 1.9.3GitHub Advisory Database, Go Vulnerability Database
gjson_project gjsonbefore 1.9.3NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-42836 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-c9gm-7rfj-8w5h changed 2024-05-19CC-BY-4.0
GitHub Advisory DatabaseGHSA-ppj4-34rq-v8j9 changed 2024-05-20CC-BY-4.0
Go Vulnerability DatabaseGO-2021-0265 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-42836 changed 2026-06-17Public domain