{"id":"CVE-2026-16554","aliases":["AZL-94184","AZL-94244","DEBIAN-CVE-2026-16554","EUVD-2026-49129","GHSA-qv6q-8g2j-w47g","ROOT-OS-ALPINE-321-CVE-2026-16554","ROOT-OS-ALPINE-323-CVE-2026-16554","UBUNTU-CVE-2026-16554"],"status":"published","title":"Integer Overflow Leading to Heap Buffer Overflow in cJSON","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","severity":{"version":"4.0","score":5.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00367,"percentile":0.30761,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2026-07-27T08:40:17Z","modified":"2026-11-05T05:40:51Z","fixes":[{"ecosystem":"Root:Alpine:3.21","package":"cjson","fixed_in":["1.7.19-r00072","1.7.19-r00071"],"sources":["osv"]},{"ecosystem":"Root:Alpine:3.21","package":"rootio-cjson","fixed_in":["1.7.19-r00072","1.7.19-r00071"],"sources":["osv"]},{"ecosystem":"Root:Alpine:3.23","package":"cjson","fixed_in":["1.7.19-r10071","1.7.19-r10074","1.7.19-r10072","1.7.19-r10073"],"sources":["osv"]},{"ecosystem":"Root:Alpine:3.23","package":"rootio-cjson","fixed_in":["1.7.19-r10071","1.7.19-r10074","1.7.19-r10072","1.7.19-r10073"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"apparmor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.1.7-1"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"libglvnd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.7.0-3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"]},{"source":"osv","ecosystem":"Debian:13","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.18-3.1","1.7.18-3.1+deb13u1","1.7.18-4","1.7.19-1","1.7.19-2"]},{"source":"osv","ecosystem":"Debian:14","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.18-3.1","1.7.18-4","1.7.19-1","1.7.19-2"]},{"source":"osv","ecosystem":"Root:Alpine:3.21","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.19-r00072"},{"fixed":"1.7.19-r00071"}]}]},{"source":"osv","ecosystem":"Root:Alpine:3.21","package":"rootio-cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.19-r00072"},{"fixed":"1.7.19-r00071"}]}]},{"source":"osv","ecosystem":"Root:Alpine:3.23","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.19-r10071"},{"fixed":"1.7.19-r10074"},{"fixed":"1.7.19-r10072"},{"fixed":"1.7.19-r10073"}]}]},{"source":"osv","ecosystem":"Root:Alpine:3.23","package":"rootio-cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.19-r10071"},{"fixed":"1.7.19-r10074"},{"fixed":"1.7.19-r10072"},{"fixed":"1.7.19-r10073"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.10-1.1","1.7.10-1.1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"cjson","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"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"cjson","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"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.19-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"cjson","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.18-3.1","1.7.18-4","1.7.19-1","1.7.19-2"]}],"products":[{"vendor":"cjson project","product":"cjson"},{"vendor":"davegamble","product":"cjson"}],"references":[{"url":"https://cert.pl/en/posts/2026/07/CVE-2026-16554","tags":["third-party-advisory","Third Party Advisory","advisory","report"]},{"url":"https://github.com/DaveGamble/cJSON","tags":["product","Product","package","report"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/30/26","tags":["Issue Tracking","Mailing List","Third Party Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2026/07/31/4","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16554","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-qv6q-8g2j-w47g"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16554.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-16554","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-16554","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-16554","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-16554","title":"Integer Overflow Leading to Heap Buffer Overflow in cJSON","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T08:40:17.183Z","modified":"2026-07-31T13:34:05.448Z","cvss":[{"version":"4.0","score":5.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L","level":"medium","assessor":"cna"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:20:10.870108Z"}],"euvd":[{"id":"EUVD-2026-49129","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T08:40:17Z","modified":"2026-07-31T13:34:05Z","cvss":[{"version":"4.0","score":5.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L","level":"medium"}],"updated_at":"2026-11-02T18:02:26.304051Z"}],"ghsa":[{"id":"GHSA-qv6q-8g2j-w47g","title":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c...","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T09:31:27Z","modified":"2026-10-24T15:32:46Z","cvss":[{"version":"4.0","score":5.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L/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","level":"medium"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T15:14:21.369076Z"}],"nvd":[{"id":"CVE-2026-16554","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T09:16:37.383Z","modified":"2026-10-24T13:10:00.147Z","cvss":[{"version":"4.0","score":5.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L/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","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:12:32.830533Z"}],"osv":[{"id":"CVE-2026-16554","title":"Integer Overflow Leading to Heap Buffer Overflow in cJSON","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T08:40:17.183Z","modified":"2026-10-28T02:30:37.950954486Z","cvss":[{"version":"4.0","score":5.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L","level":"medium"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T15:44:57.682091Z"},{"id":"DEBIAN-CVE-2026-16554","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.     Because project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T09:16:37.383Z","modified":"2026-10-25T09:47:34.851683858Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:52.562592Z"},{"id":"UBUNTU-CVE-2026-16554","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service. Because project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T09:16:00Z","modified":"2026-10-17T12:58:06.364842229Z","cvss":[{"version":"4.0","score":5.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L","level":"medium"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:00.592716Z"},{"id":"AZL-94184","title":"CVE-2026-16554 affecting package apparmor 3.1.7-1","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T09:16:37Z","modified":"2026-11-05T05:40:51Z","updated_at":"2026-11-05T16:41:25.880689Z"},{"id":"AZL-94244","title":"CVE-2026-16554 affecting package libglvnd 1.7.0-3","description":"cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service.\n\n\n\n\nBecause project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.","status":"published","published":"2026-07-27T09:16:37Z","modified":"2026-11-05T05:40:51Z","updated_at":"2026-11-05T16:41:26.077208Z"},{"id":"ROOT-OS-ALPINE-321-CVE-2026-16554","title":"CVE-2026-16554 in cjson - Patched by Root","description":"Root has patched CVE-2026-16554 in the cjson package for Root:Alpine:3.21. Multiple fixed versions available.","status":"published","published":"2026-09-29T09:23:51Z","modified":"2026-09-29T10:15:40.559359939Z","updated_at":"2026-11-02T15:53:28.544053Z"},{"id":"ROOT-OS-ALPINE-323-CVE-2026-16554","title":"CVE-2026-16554 in cjson - Patched by Root","description":"Root has patched CVE-2026-16554 in the cjson package for Root:Alpine:3.23. Multiple fixed versions available.","status":"published","published":"2026-09-29T09:58:17Z","modified":"2026-09-29T10:15:09.340986403Z","updated_at":"2026-11-02T15:53:28.544053Z"}]}}
