Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-42836

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-42248, CVE-2021-42836
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:21 UTC · Revision 1

Source evidence

CVE-2021-42836

core-osv · Original source

Published 22 Oct 2021, 18:15 UTC

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

osv:CVE-2021-42836
Complete source record
{
  "id": "b5daca53c333af574f789eb873cc8872b49b04cd7d0ef6a3c87267baaef0913f",
  "url": "https://osv.dev/vulnerability/CVE-2021-42836",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-42836",
    "summary": "GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.",
    "evidence": "osv:CVE-2021-42836",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-42836",
      "aliases": [
        "CVE-2021-42248",
        "CVE-2021-42836",
        "GHSA-c9gm-7rfj-8w5h",
        "GHSA-ppj4-34rq-v8j9",
        "GO-2021-0265"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tidwall/gjson",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "77a57fda87dca6d0d7d4627d512a630f89a91c96"
                },
                {
                  "fixed": "590010fdac311cc8990ef5c97448d4fec8f29944"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gjson_project:gjson:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.9.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "590010fdac311cc8990ef5c97448d4fec8f29944"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "77a57fda87dca6d0d7d4627d512a630f89a91c96"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.9.1",
            "v1.9.0",
            "v1.8.1",
            "v1.8.0",
            "v1.7.5",
            "v1.7.4",
            "v1.7.3",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0",
            "v1.6.8",
            "v1.6.7",
            "v1.6.6",
            "v1.6.5",
            "v1.6.4",
            "v1.6.3",
            "v1.6.2",
            "v1.6.1",
            "v1.6.0",
            "v1.5.0",
            "v1.4.0",
            "v1.3.6",
            "v1.3.5",
            "v1.3.4",
            "v1.3.3",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "v1.1.6",
            "v1.1.5",
            "v1.1.4",
            "v1.1.3",
            "v1.1.2",
            "v1.1.1",
            "v1.1.0",
            "v1.0.6",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42836.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:06.633897465Z",
      "provider": "osv",
      "references": [
        "https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3",
        "https://github.com/tidwall/gjson/issues/236",
        "https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944",
        "https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96",
        "https://github.com/tidwall/gjson/issues/237"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-42248",
        "evidence": "/aliases"
      },
      {
        "value": "CVE-2021-42836",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384866,
  "published_at": "2021-10-22T18:15:14.897+00:00"
}