CVE-2024-31755 json
cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the second parameter of function cJSON_SetValue…
published 2024-04-26 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-29628
- cvss
- 7.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the second parameter of function cJSON_SetValuestring at cJSON.c.
Patch / fix
- cjson Debian 12 1.7.15-1+deb12u2
- cjson Debian 14, Debian 13 1.7.18-1
debian advisories DEBIAN-CVE-2024-31755
- cjson Ubuntu Pro 22.04 LTS 1.7.15-1ubuntu0.1~esm2
- cjson Ubuntu Pro 24.04 LTS 1.7.17-1ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2024-31755
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- cjson satellite capsule 6.16, satellite capsule 6.15, satellite 6.16 +1 more 1.7.18-1.el8sat
- rubygem-rack satellite capsule 6.15, satellite 6.15 2.2.14-1.el8sat
- python-sqlparse satellite capsule 6.15, satellite 6.15 0.5.0-1.el8pc
- python3.11-sqlparse satellite capsule 6.15, satellite 6.15 0.5.0-1.el8pc
- cjson satellite capsule 6.17, satellite capsule 6.16, satellite 6.17 +1 more 1.7.18-1.el9sat
red hat advisories RHSA-2025:9838RHSA-2025:9203RHSA-2025:9022
- cJSON openSUSE Tumbleweed 1.7.18-1.1
- cJSON Package Hub 15 SP5, openSUSE Leap 15.5 1.7.18-bp155.3.3.1
opensuse advisories openSUSE-SU-2024:14021-1openSUSE-SU-2024:0139-1
- apparmor CBL-Mariner 2.0 3.0.4-4
- apparmor Azure Linux 3.0 3.1.7-1
azure linux advisories AZL-40184AZL-67458
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-31755 updated cvss 7.5
cjson: segmentation violation trigger through the second parameter of function cJSON_SetValuestring at cJSON.c
-
Red Hat Satellite 6.15 for RHEL 8 cjson 1.7.18-1.el8satfixed: vendor fix “Currently, there's no available mitigation that matches Red Hat's mitigation criteria other than updating the affected packages.” RHSA-2025:9838
-
Red Hat Satellite 6.16 for RHEL 8 cjson 1.7.18-1.el8sat Red Hat Satellite 6.16 for RHEL 9 cjson 1.7.18-1.el9satfixed: vendor fix “Currently, there's no available mitigation that matches Red Hat's mitigation criteria other than updating the affected packages.” RHSA-2025:9203
-
Red Hat Satellite 6.17 for RHEL 9 cjson 1.7.18-1.el9satfixed: vendor fix “Currently, there's no available mitigation that matches Red Hat's mitigation criteria other than updating the affected packages.” RHSA-2025:9022
-
Red Hat Satellite 6.15 for RHEL 8 satellite 6.15.5.3-1.el8sat, rubygem-rack 2.2.14-1.el8sat, python-sqlparse 0.5.0-1.el8pc, satellite-cli 6.15.5.3-1.el8sat, python3.11-sqlparse 0.5.0-1.el8pc, satellite-common 6.15.5.3-1.el8sat, +2 more Red Hat Satellite 6.16 for RHEL 8 satellite 6.16.5.2-1.el8sat, satellite-cli 6.16.5.2-1.el8sat, satellite-common 6.16.5.2-1.el8sat, satellite-capsule 6.16.5.2-1.el8sat, rubygem-foreman_rh_cloud 10.0.6-1.el8sat, ansible-collection-redhat-satellite 4.2.1-1.el8sat Red Hat Satellite 6.16 for RHEL 9 satellite 6.16.5.2-1.el9sat, satellite-cli 6.16.5.2-1.el9sat, satellite-common 6.16.5.2-1.el9sat, satellite-capsule 6.16.5.2-1.el9sat, rubygem-foreman_rh_cloud 10.0.6-1.el9sat, ansible-collection-redhat-satellite 4.2.1-1.el9sat Red Hat Satellite 6.17 for RHEL 9 foreman 3.14.0.3-1.el9sat, satellite 6.17.1-1.el9sat, foreman-cli 3.14.0.3-1.el9sat, foreman-ec2 3.14.0.3-1.el9sat, foreman-pcp 3.14.0.3-1.el9sat, satellite-cli 6.17.1-1.el9sat, +25 morenot affected: vulnerable code not present “Currently, there's no available mitigation that matches Red Hat's mitigation criteria other than updating the affected packages.”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/DaveGamble/cJSON/issues/839 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
| CNA | 3.1 | 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
Affected products
- cjson_project cjson
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
github.com
/DaveGamble/cJSON/issues/839
exploit, issue-tracking, vendor-advisory
Sources
- CVE List CVE-2024-31755
- NVD CVE-2024-31755
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.