Description
parse_string in cJSON before 1.7.18 has a heap-based buffer over-read via {"1":1, with no trailing newline if cJSON_ParseWithLength is called.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cJSON project | cJSON | < 1.7.18 | 1.7.18 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cjson | 1.7.18-1 | — |
| Debian 13 | cjson | 1.7.18-1 | — |
| Debian 12 | cjson | 1.7.15-1+deb12u3 | — |
| Debian 11 | cjson | 1.7.14-1+deb11u2 | DLA-4216-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | cjson | 1.7.18-3.1ubuntu0.1 | USN-7973-1 |
| Ubuntu 22.04 LTS | cjson | 1.7.15-1ubuntu0.1 | USN-7973-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | cjson | 1.7.17-1ubuntu0.1~esm3 | USN-7973-1 |
| Ubuntu Pro 20.04 LTS | cjson | 1.7.10-1.1ubuntu0.1~esm1 | USN-7973-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | apparmor | 3.1.7-1 | — |
| Azure Linux 2 (CBL-Mariner) | apparmor | 3.0.4-5 | — |
Advisories 2
- USN-7973-1 cjson vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-4216-1 cjson - security update Debian Security (DSA / DLA) · Mar 9, 2026