Skip to content
Heist/ feed
Back to feed
High

cjson — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-67215

cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC 6902 JSON Patch is applied via cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive(). A patch containing add and copy operations grafts duplicated subtrees to amplify document depth beyond the parser's nesting limit: cJSON_Delete() recurses with no depth bound, and the cJSON_Duplicate() guard CJSON_CIRCULAR_LIMIT is set to 10000, ten times the parser's 1000-level nesting limit and high enough to overflow a default thread stack. An attacker who can supply the patch document can crash the process, resulting in denial of service.

Products
cjson
Affected versions
1.7.15-1, 1.7.15-1+deb12u1, 1.7.15-1+deb12u2, 1.7.15-1+deb12u3, 1.7.15-1+deb12u4, 1.7.16-1, 1.7.16-2, 1.7.17-1, 1.7.17-2, 1.7.18-1, 1.7.18-2, 1.7.18-3, 1.7.18-3.1, 1.7.18-3.1+deb13u1, 1.7.18-4, 1.7.19-1, 1.7.19-2
Fixed versions
Not specified
CVEs
CVE-2026-67215
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:05 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-67215

core-osv · Original source

Published 29 Jul 2026, 14:16 UTC

cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC 6902 JSON Patch is applied via cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive(). A patch containing add and copy operations grafts duplicated subtrees to amplify document depth beyond the parser's nesting limit: cJSON_Delete() recurses with no depth bound, and the cJSON_Duplicate() guard CJSON_CIRCULAR_LIMIT is set to 10000, ten times the parser's 1000-level nesting limit and high enough to overflow a default thread stack. An attacker who can supply the patch document can crash the process, resulting in denial of service.

osv:DEBIAN-CVE-2026-67215

cjson

Fixed versions: Not specified

cjson

Fixed versions: Not specified

cjson

Fixed versions: Not specified

Complete source record
{
  "id": "6a632c7f51928a125ff05e9fabedea0b9cb421eb89db15470e5466e9a3edcdd7",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-67215",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-67215",
    "summary": "cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC 6902 JSON Patch is applied via cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive(). A patch containing add and copy operations grafts duplicated subtrees to amplify document depth beyond the parser's nesting limit: cJSON_Delete() recurses with no depth bound, and the cJSON_Duplicate() guard CJSON_CIRCULAR_LIMIT is set to 10000, ten times the parser's 1000-level nesting limit and high enough to overflow a default thread stack. An attacker who can supply the patch document can crash the process, resulting in denial of service.",
    "evidence": "osv:DEBIAN-CVE-2026-67215",
    "products": [
      {
        "name": {
          "value": "cjson",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.15-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.15-1+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.15-1+deb12u2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.15-1+deb12u3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.15-1+deb12u4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.16-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.16-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.17-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.17-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.18-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.18-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.18-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.18-3.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.18-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.19-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.19-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cjson",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.18-3.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.18-3.1+deb13u1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.18-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.19-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.19-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cjson",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.18-3.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.7.18-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.7.19-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.7.19-2",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-67215",
      "aliases": [
        "DEBIAN-CVE-2026-67215"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cjson",
            "purl": "pkg:deb/debian/cjson?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1.7.15-1",
            "1.7.15-1+deb12u1",
            "1.7.15-1+deb12u2",
            "1.7.15-1+deb12u3",
            "1.7.15-1+deb12u4",
            "1.7.16-1",
            "1.7.16-2",
            "1.7.17-1",
            "1.7.17-2",
            "1.7.18-1",
            "1.7.18-2",
            "1.7.18-3",
            "1.7.18-3.1",
            "1.7.18-4",
            "1.7.19-1",
            "1.7.19-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-67215.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cjson",
            "purl": "pkg:deb/debian/cjson?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "1.7.18-3.1",
            "1.7.18-3.1+deb13u1",
            "1.7.18-4",
            "1.7.19-1",
            "1.7.19-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-67215.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cjson",
            "purl": "pkg:deb/debian/cjson?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "1.7.18-3.1",
            "1.7.18-4",
            "1.7.19-1",
            "1.7.19-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-67215.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-24T09:47:28.764443922Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-67215"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-67215"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-67215",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 428974,
  "published_at": "2026-07-29T14:16:35.187+00:00"
}