Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/tidwall/gjson
  4. ›
  5. CVE-2021-42836

CVE-2021-42836: Incorrect Comparison

October 22, 2021 (updated May 3, 2022)

GJSON allows a ReDoS (regular expression denial of service) attack.

References

  • github.com/tidwall/gjson/issues/236
  • github.com/tidwall/gjson/issues/237
  • nvd.nist.gov/vuln/detail/CVE-2021-42836

Code Behaviors & Features

Detect and mitigate CVE-2021-42836 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.3

Fixed versions

  • v1.9.3

Solution

Upgrade to version 1.9.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

go/github.com/tidwall/gjson/CVE-2021-42836.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:51 +0000.