{"id":"UBUNTU-CVE-2026-67216","details":"cJSON through 1.7.19 contains an inefficient algorithmic complexity flaw in cJSON_Compare(). When comparing objects, the function recurses into each shared subtree twice, once in each direction, with no depth guard, making the running time exponential in nesting depth. A small, deeply nested document of a few hundred bytes (depth around 40) compared for equality consumes hours of CPU, and the cost roughly doubles with each additional level of nesting. An application that calls cJSON_Compare() on attacker-influenced JSON that is structurally equal to a reference document is exposed to a denial-of-service condition.","modified":"2026-08-06T03:11:24.527657232Z","published":"2026-07-29T14:16:00Z","upstream":["CVE-2026-67216"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-67216"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-67216"},{"type":"REPORT","url":"https://joshua.hu/cjson-json-parser-cve-vulnerabilities"}],"affected":[{"package":{"name":"iperf3","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/iperf3?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.11-1","3.0.11-1ubuntu0.1~esm1","3.0.11-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.11-1ubuntu0.1~esm2","binary_name":"iperf3"},{"binary_version":"3.0.11-1ubuntu0.1~esm2","binary_name":"libiperf0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"mapcache","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mapcache?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.0-3","1.4.0-4"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache2-mod-mapcache","binary_version":"1.4.0-4"},{"binary_version":"1.4.0-4","binary_name":"libmapcache1"},{"binary_name":"mapcache-cgi","binary_version":"1.4.0-4"},{"binary_name":"mapcache-tools","binary_version":"1.4.0-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"iperf3","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/iperf3?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.3-1","3.1.3-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"iperf3","binary_version":"3.1.3-1ubuntu0.1~esm1"},{"binary_name":"libiperf0","binary_version":"3.1.3-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"mapcache","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/mapcache?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0-2","1.6.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.1-1","binary_name":"libapache2-mod-mapcache"},{"binary_name":"libmapcache1","binary_version":"1.6.1-1"},{"binary_name":"mapcache-cgi","binary_version":"1.6.1-1"},{"binary_name":"mapcache-tools","binary_version":"1.6.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"cjson","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/cjson?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.10-1.1","1.7.10-1.1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.10-1.1ubuntu0.1~esm1","binary_name":"libcjson1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"iperf3","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/iperf3?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6-2","3.7-1","3.7-2","3.7-3","3.7-3ubuntu0.1~esm1","3.7-3ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"iperf3","binary_version":"3.7-3ubuntu0.1~esm2"},{"binary_name":"libiperf0","binary_version":"3.7-3ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"mapcache","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/mapcache?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.0-1","1.8.0-1build2","1.10.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.10.0-1","binary_name":"libapache2-mod-mapcache"},{"binary_name":"libmapcache1","binary_version":"1.10.0-1"},{"binary_name":"mapcache-cgi","binary_version":"1.10.0-1"},{"binary_name":"mapcache-tools","binary_version":"1.10.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"mapcache","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mapcache?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-2build1","1.10.0-2build3","1.12.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.12.0-1","binary_name":"libapache2-mod-mapcache"},{"binary_name":"libmapcache1","binary_version":"1.12.0-1"},{"binary_name":"mapcache-cgi","binary_version":"1.12.0-1"},{"binary_version":"1.12.0-1","binary_name":"mapcache-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"cjson","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/cjson?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.14-1","1.7.15-1","1.7.15-1ubuntu0.1~esm2","1.7.15-1ubuntu0.1","1.7.15-1ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcjson1","binary_version":"1.7.15-1ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"iperf3","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/iperf3?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9-1","3.9-1build1","3.9-1+deb11u1build0.22.04.1","3.9-1+deb11u1ubuntu0.1~esm1","3.9-1+deb11u1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.9-1+deb11u1ubuntu0.1","binary_name":"iperf3"},{"binary_name":"libiperf0","binary_version":"3.9-1+deb11u1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"mapcache","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/mapcache?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.0-2","1.14.0-2build1","1.14.0-2build2","1.14.0-4build1","1.14.0-4build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache2-mod-mapcache","binary_version":"1.14.0-4build2"},{"binary_name":"libmapcache1t64","binary_version":"1.14.0-4build2"},{"binary_name":"mapcache-cgi","binary_version":"1.14.0-4build2"},{"binary_name":"mapcache-tools","binary_version":"1.14.0-4build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"cjson","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/cjson?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.16-1","1.7.16-2","1.7.17-1","1.7.17-1ubuntu0.1~esm2","1.7.17-1ubuntu0.1~esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"libcjson1","binary_version":"1.7.17-1ubuntu0.1~esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"iperf3","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/iperf3?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14-1","3.15-1","3.16-1","3.16-1build1","3.16-1build2","3.16-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"iperf3","binary_version":"3.16-1ubuntu0.1~esm1"},{"binary_name":"libiperf0","binary_version":"3.16-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"cjson","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/cjson?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.18-3.1","1.7.18-4","1.7.19-1","1.7.19-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libcjson1","binary_version":"1.7.19-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"iperf3","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/iperf3?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18-2","3.19.1-2","3.20-2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.20-2","binary_name":"iperf3"},{"binary_name":"libiperf0","binary_version":"3.20-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"mapcache","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/mapcache?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.1-3","1.14.1-3build1","1.14.1-3build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache2-mod-mapcache","binary_version":"1.14.1-3build2"},{"binary_name":"libmapcache1t64","binary_version":"1.14.1-3build2"},{"binary_name":"mapcache-cgi","binary_version":"1.14.1-3build2"},{"binary_name":"mapcache-tools","binary_version":"1.14.1-3build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}},{"package":{"name":"sail-ocaml","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/sail-ocaml?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.19.1+dfsg5-1","0.19.1+dfsg5-1build2","0.19.1+dfsg5-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"sail-ocaml","binary_version":"0.19.1+dfsg5-1build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-67216.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}