Every CVE Search/ Get API key

CVE-2024-31755

cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the...

7.6 HighFix available

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

0.65%Up 0.6 points since Apr 26, 2024
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
apparmor
Azure Linux:2
before 3.0.4-4
3.0.4-4
apparmor
Azure Linux:3
before 3.1.7-1
3.1.7-1
cjson
Alpaquita:stream
1.7.15-r2 up to 1.7.18-r1
1.7.18-r1
cjson
Debian:12
before 1.7.15-1+deb12u2, plus listed versions
1.7.15-11.7.15-1+deb12u1
1.7.15-1+deb12u2
cjson
Debian:13
before 1.7.18-1
1.7.18-1
cjson
Debian:14
before 1.7.18-1
1.7.18-1
cjson
Mageia:9
before 1.7.15-2.2.mga9
1.7.15-2.2.mga9
cjson
Red Hat:satellite_capsule:6.17::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debuginfo
Red Hat:satellite_capsule:6.17::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debugsource
Red Hat:satellite_capsule:6.17::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
Show 34 moreShow less
Affected packages
PackageAffectedFixed
cjson
Red Hat:satellite:6.17::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debuginfo
Red Hat:satellite:6.17::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debugsource
Red Hat:satellite:6.17::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson
Red Hat:satellite_capsule:6.16::el8
before 0:1.7.18-1.el8sat
0:1.7.18-1.el8sat
cjson-debuginfo
Red Hat:satellite_capsule:6.16::el8
before 0:1.7.18-1.el8sat
0:1.7.18-1.el8sat
cjson-debugsource
Red Hat:satellite_capsule:6.16::el8
before 0:1.7.18-1.el8sat
0:1.7.18-1.el8sat
cjson
Red Hat:satellite:6.16::el8
before 0:1.7.18-1.el8sat
0:1.7.18-1.el8sat
cjson-debuginfo
Red Hat:satellite:6.16::el8
before 0:1.7.18-1.el8sat
0:1.7.18-1.el8sat
cjson-debugsource
Red Hat:satellite:6.16::el8
before 0:1.7.18-1.el8sat
0:1.7.18-1.el8sat
cjson
Red Hat:satellite_capsule:6.16::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debuginfo
Red Hat:satellite_capsule:6.16::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debugsource
Red Hat:satellite_capsule:6.16::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson
Red Hat:satellite:6.16::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debuginfo
Red Hat:satellite:6.16::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson-debugsource
Red Hat:satellite:6.16::el9
before 0:1.7.18-1.el9sat
0:1.7.18-1.el9sat
cjson
Red 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-debuginfo
Red 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-debugsource
Red 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
Red 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-debuginfo
Red 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-debugsource
Red 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-sqlparse
Red 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-sqlparse
Red 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-sqlparse
Red 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-sqlparse
Red 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-rack
Red 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-rack
Red Hat:satellite:6.15::el8
From an advisory covering 5 CVEs
before 0:2.2.14-1.el8sat
0:2.2.14-1.el8sat
cjson
Ubuntu: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
cjson
Ubuntu: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
cjson
Ubuntu: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
cjson
Ubuntu: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
cJSON
SUSE: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
cJSON
openSUSE:Leap 15.5
From an advisory covering 3 CVEs
before 1.7.18-bp155.3.3.1
1.7.18-bp155.3.3.1
cJSON
openSUSE:Tumbleweed
before 1.7.18-1.1
1.7.18-1.1

History

History
RecordedChangedSources
affected
factsOSV
aliasesEUVD
first indexedCVE 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

Show 61 moreShow less
MoveEnter Open