CVE-2024-31755
cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.6
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.
- Record
CVE-2024-31755- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
EUVDEUVD-2024-29628
7.6
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.
- Record
EUVD-2024-29628- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5g69-hr8r-x577
7.6
cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the...
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.
- Record
GHSA-5g69-hr8r-x577- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
NVD
7.6
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.
- Record
CVE-2024-31755- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVBELL-CVE-2024-31755
7.6
- Record
BELL-CVE-2024-31755- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Updated
- 2026-11-02
OSV
7.6
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.
- Record
CVE-2024-31755- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Updated
- 2026-11-02
Show 11 moreShow less
OSVDEBIAN-CVE-2024-31755
7.6
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.
- Record
DEBIAN-CVE-2024-31755- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Updated
- 2026-11-02
OSVRHSA-2025:9022
7.5
Red Hat Security Advisory: Satellite 6.17.1 Async Update
- Record
RHSA-2025:9022- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2025:9203
7.5
Red Hat Security Advisory: Satellite 6.16.5.2 Async Update
- Record
RHSA-2025:9203- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2025:9838
7.5
Red Hat Security Advisory: Satellite 6.15.5.3 Async Update
- Record
RHSA-2025:9838- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-31755
7.6
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.
- Record
UBUNTU-CVE-2024-31755- CVSS 3.1
- 7.6 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H - Updated
- 2026-11-02
OSVAZL-40184 No score
CVE-2024-31755 affecting package apparmor for versions less than 3.0.4-4
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.
- Record
AZL-40184- Updated
- 2026-11-02
OSVAZL-67458 No score
CVE-2024-31755 affecting package apparmor for versions less than 3.1.7-1
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.
- Record
AZL-67458- Updated
- 2026-11-05
OSVMGASA-2024-0324 No score
Updated cjson packages fix security vulnerability
cJSON was discovered to contain a segmentation violation, which can trigger through the second parameter of function cJSON_SetValuestring at cJSON.c. (CVE-2024-31755)
- Record
MGASA-2024-0324- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0139-1 No score
Security update for cJSON
This update for cJSON fixes the following issues:
-
Update to 1.7.18:
- CVE-2024-31755: NULL pointer dereference via cJSON_SetValuestring() (boo#1223420)
- Remove non-functional list handling of compiler flags
- Fix heap buffer overflow
- remove misused optimization flag -01
- Set free'd pointers to NULL whenever they are not reassigned immediately after
-
Update to version 1.7.17 (boo#1218098, CVE-2023-50472, boo#1218099, CVE-2023-50471):
- Fix null reference in cJSON_SetValuestring (CVE-2023-50472).
- Fix null reference in cJSON_InsertItemInArray (CVE-2023-50471).
-
Update to 1.7.16:
- Add an option for ENABLE_CJSON_VERSION_SO in CMakeLists.txt
- Add cmake_policy to CMakeLists.txt
- Add cJSON_SetBoolValue
- Add meson documentation
- Fix memory leak in merge_patch
- Fix conflicting target names 'uninstall'
- Bump cmake version to 3.0 and use new version syntax
- Print int without decimal places
- Fix 'cjson_utils-static' target not exist
- Add allocate check for replace_item_in_object
- Fix a null pointer crash in cJSON_ReplaceItemViaPointer
- Record
openSUSE-SU-2024:0139-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14021-1 No score
cJSON-devel-1.7.18-1.1 on GA media
These are all security issues fixed in the cJSON-devel-1.7.18-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14021-1- Updated
- 2026-11-02
OSVUSN-6784-1 No score
cjson vulnerabilities
It was discovered that cJSON incorrectly handled certain input. An attacker could possibly use this issue to cause cJSON to crash, resulting in a denial of service. This issue only affected Ubuntu 22.04 LTS and Ubuntu 23.10. (CVE-2023-50471, CVE-2023-50472)
Luo Jin discovered that cJSON incorrectly handled certain input. An attacker could possibly use this issue to cause cJSON to crash, resulting in a denial of service. (CVE-2024-31755)
- Record
USN-6784-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
apparmorAzure Linux:2 |
before 3.0.4-4 | 3.0.4-4 |
apparmorAzure Linux:3 |
before 3.1.7-1 | 3.1.7-1 |
cjsonAlpaquita:stream |
1.7.15-r2 up to 1.7.18-r1 | 1.7.18-r1 |
cjsonDebian:12 |
before 1.7.15-1+deb12u2, plus listed versions 1.7.15-11.7.15-1+deb12u1 |
1.7.15-1+deb12u2 |
cjsonDebian:13 |
before 1.7.18-1 | 1.7.18-1 |
cjsonDebian:14 |
before 1.7.18-1 | 1.7.18-1 |
cjsonMageia:9 |
before 1.7.15-2.2.mga9 | 1.7.15-2.2.mga9 |
cjsonRed Hat:satellite_capsule:6.17::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debuginfoRed Hat:satellite_capsule:6.17::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debugsourceRed Hat:satellite_capsule:6.17::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
Show 34 moreShow less
| Package | Affected | Fixed |
|---|---|---|
cjsonRed Hat:satellite:6.17::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debuginfoRed Hat:satellite:6.17::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debugsourceRed Hat:satellite:6.17::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjsonRed Hat:satellite_capsule:6.16::el8 |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debuginfoRed Hat:satellite_capsule:6.16::el8 |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debugsourceRed Hat:satellite_capsule:6.16::el8 |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjsonRed Hat:satellite:6.16::el8 |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debuginfoRed Hat:satellite:6.16::el8 |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debugsourceRed Hat:satellite:6.16::el8 |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjsonRed Hat:satellite_capsule:6.16::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debuginfoRed Hat:satellite_capsule:6.16::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debugsourceRed Hat:satellite_capsule:6.16::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjsonRed Hat:satellite:6.16::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debuginfoRed Hat:satellite:6.16::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjson-debugsourceRed Hat:satellite:6.16::el9 |
before 0:1.7.18-1.el9sat | 0:1.7.18-1.el9sat |
cjsonRed Hat:satellite_capsule:6.15::el8 From an advisory covering 5 CVEs |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debuginfoRed Hat:satellite_capsule:6.15::el8 From an advisory covering 5 CVEs |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debugsourceRed Hat:satellite_capsule:6.15::el8 From an advisory covering 5 CVEs |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjsonRed Hat:satellite:6.15::el8 From an advisory covering 5 CVEs |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debuginfoRed Hat:satellite:6.15::el8 From an advisory covering 5 CVEs |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
cjson-debugsourceRed Hat:satellite:6.15::el8 From an advisory covering 5 CVEs |
before 0:1.7.18-1.el8sat | 0:1.7.18-1.el8sat |
python-sqlparseRed Hat:satellite_capsule:6.15::el8 From an advisory covering 5 CVEs |
before 0:0.5.0-1.el8pc | 0:0.5.0-1.el8pc |
python3.11-sqlparseRed Hat:satellite_capsule:6.15::el8 From an advisory covering 5 CVEs |
before 0:0.5.0-1.el8pc | 0:0.5.0-1.el8pc |
python-sqlparseRed Hat:satellite:6.15::el8 From an advisory covering 5 CVEs |
before 0:0.5.0-1.el8pc | 0:0.5.0-1.el8pc |
python3.11-sqlparseRed Hat:satellite:6.15::el8 From an advisory covering 5 CVEs |
before 0:0.5.0-1.el8pc | 0:0.5.0-1.el8pc |
rubygem-rackRed Hat:satellite_capsule:6.15::el8 From an advisory covering 5 CVEs |
before 0:2.2.14-1.el8sat | 0:2.2.14-1.el8sat |
rubygem-rackRed Hat:satellite:6.15::el8 From an advisory covering 5 CVEs |
before 0:2.2.14-1.el8sat | 0:2.2.14-1.el8sat |
cjsonUbuntu:Pro:22.04:LTS |
before 1.7.15-1ubuntu0.1~esm2, plus listed versions 1.7.14-11.7.15-1 |
1.7.15-1ubuntu0.1~esm2 |
cjsonUbuntu:Pro:24.04:LTS |
before 1.7.17-1ubuntu0.1~esm2, plus listed versions 1.7.16-11.7.16-21.7.17-1 |
1.7.17-1ubuntu0.1~esm2 |
cjsonUbuntu:Pro:22.04:LTS From an advisory covering 3 CVEs |
before 1.7.15-1ubuntu0.1~esm2, plus listed versions 1.7.14-11.7.15-1 |
1.7.15-1ubuntu0.1~esm2 |
cjsonUbuntu:Pro:24.04:LTS From an advisory covering 3 CVEs |
before 1.7.17-1ubuntu0.1~esm2, plus listed versions 1.7.16-11.7.16-21.7.17-1 |
1.7.17-1ubuntu0.1~esm2 |
cJSONSUSE:Package Hub 15 SP5 From an advisory covering 3 CVEs |
before 1.7.18-bp155.3.3.1 | 1.7.18-bp155.3.3.1 |
cJSONopenSUSE:Leap 15.5 From an advisory covering 3 CVEs |
before 1.7.18-bp155.3.3.1 | 1.7.18-bp155.3.3.1 |
cJSONopenSUSE:Tumbleweed |
before 1.7.18-1.1 | 1.7.18-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-31755 is a high vulnerability (CVSS 7.6) in Cjson Project Cjson, published April 26, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.65%, the 51st percentile. Fixed in apparmor 3.0.4-4.
References
github.com/DaveGamble/cJSON/issues/839
nvd.nist.gov/vuln/detail/CVE-2024-31755
github.com/advisories/GHSA-5g69-hr8r-x577
docs.bell-sw.com/security/cves/CVE-2024-31755
github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31755.json
security-tracker.debian.org/tracker/CVE-2024-31755
Show 61 moreShow less
advisories.mageia.org/MGASA-2024-0324.html
bugs.mageia.org/show_bug.cgi?id=33600
lists.fedoraproject.org/archives/list/[email protected]/message/6B5ZS2THGMPX2CG2C7OVYS5F7REKYJYJ
access.redhat.com/errata/RHSA-2025:9022
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2277268
issues.redhat.com/browse/SAT-34204
issues.redhat.com/browse/SAT-34205
issues.redhat.com/browse/SAT-34206
issues.redhat.com/browse/SAT-34207
issues.redhat.com/browse/SAT-34208
issues.redhat.com/browse/SAT-34209
issues.redhat.com/browse/SAT-34210
issues.redhat.com/browse/SAT-34211
issues.redhat.com/browse/SAT-34214
issues.redhat.com/browse/SAT-34800
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_9022.json
access.redhat.com/security/cve/CVE-2024-31755
cve.org/CVERecord?id=CVE-2024-31755
access.redhat.com/errata/RHSA-2025:9203
access.redhat.com/documentation/en-us/red_hat_satellite/6.16/html/updating_red_hat_satellite/index
issues.redhat.com/browse/SAT-34932
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_9203.json
access.redhat.com/errata/RHSA-2025:9838
access.redhat.com/documentation/en-us/red_hat_satellite/6.15/html/updating_red_hat_satellite/index
bugzilla.redhat.com/show_bug.cgi?id=2254641
bugzilla.redhat.com/show_bug.cgi?id=2254643
bugzilla.redhat.com/show_bug.cgi?id=2278038
bugzilla.redhat.com/show_bug.cgi?id=2364966
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_9838.json
access.redhat.com/security/cve/CVE-2023-50471
cve.org/CVERecord?id=CVE-2023-50471
nvd.nist.gov/vuln/detail/CVE-2023-50471
access.redhat.com/security/cve/CVE-2023-50472
cve.org/CVERecord?id=CVE-2023-50472
nvd.nist.gov/vuln/detail/CVE-2023-50472
access.redhat.com/security/cve/CVE-2024-4340
cve.org/CVERecord?id=CVE-2024-4340
nvd.nist.gov/vuln/detail/CVE-2024-4340
github.com/advisories/GHSA-2m57-hf25-phgg
access.redhat.com/security/cve/CVE-2025-46727
cve.org/CVERecord?id=CVE-2025-46727
nvd.nist.gov/vuln/detail/CVE-2025-46727
github.com/rack/rack/commit/2bb5263b464b65ba4b648996a579dbd180d2b712
github.com/rack/rack/commit/3f5a4249118d09d199fe480466c8c6717e43b6e3
github.com/rack/rack/commit/cd6b70a1f2a1016b73dc906f924869f4902c2d74
github.com/rack/rack/security/advisories/GHSA-gjh7-p2fx-99vx
ubuntu.com/security/CVE-2024-31755
github.com/DaveGamble/cJSON/pull/840
github.com/DaveGamble/cJSON/commit/7e4d5dabe7a9b754c601f214e65b544e67ba9f59
github.com/DaveGamble/cJSON/pull/849/commits/18d1749e26eb1abe803bf49f383e72faec02da93
ubuntu.com/security/notices/USN-6784-1
ubuntu.com/security/CVE-2023-50471
ubuntu.com/security/CVE-2023-50472
lists.opensuse.org/archives/list/[email protected]/thread/36QNMKFWNRJX3XHLNGZ3DNLMLIHSRF4U
bugzilla.suse.com/1218098
bugzilla.suse.com/1218099
bugzilla.suse.com/1223420
suse.com/security/cve/CVE-2023-50471
suse.com/security/cve/CVE-2023-50472
suse.com/security/cve/CVE-2024-31755