Skip to content
Heist/ feed
Back to feed
Medium

cjson — security advisory

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

cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c. For a replace operation that is missing its value member, or a move operation whose destination path cannot be resolved, the existing target member is detached and deleted before the operation is fully validated, so the target document is mutated while cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() returns a failure status. An attacker who can supply the patch document can destroy addressable members of the target document even though the API reports that the patch failed, defeating the all-or-nothing behavior callers rely on to reject bad patches.

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-67217
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:03 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-67217

core-osv · Original source

Published 29 Jul 2026, 14:16 UTC

cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c. For a replace operation that is missing its value member, or a move operation whose destination path cannot be resolved, the existing target member is detached and deleted before the operation is fully validated, so the target document is mutated while cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() returns a failure status. An attacker who can supply the patch document can destroy addressable members of the target document even though the API reports that the patch failed, defeating the all-or-nothing behavior callers rely on to reject bad patches.

osv:DEBIAN-CVE-2026-67217

cjson

Fixed versions: Not specified

cjson

Fixed versions: Not specified

cjson

Fixed versions: Not specified

Complete source record
{
  "id": "b9013f7cd8693e16417e4fe97476f5f44412a36260b1e12fa17528922751c5cc",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-67217",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-67217",
    "summary": "cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c. For a replace operation that is missing its value member, or a move operation whose destination path cannot be resolved, the existing target member is detached and deleted before the operation is fully validated, so the target document is mutated while cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() returns a failure status. An attacker who can supply the patch document can destroy addressable members of the target document even though the API reports that the patch failed, defeating the all-or-nothing behavior callers rely on to reject bad patches.",
    "evidence": "osv:DEBIAN-CVE-2026-67217",
    "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": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-67217",
      "aliases": [
        "DEBIAN-CVE-2026-67217"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/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-67217.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-67217.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-67217.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-24T09:47:25.223672029Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-67217"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-67217"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-67217",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 428943,
  "published_at": "2026-07-29T14:16:35.477+00:00"
}