CVE-2023-50471
cJSON v1.7.16 was discovered to contain a segmentation violation via the function...
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
CVE-2023-50471- 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 - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
CVE-2023-50471- Updated
- 2026-11-02
EUVDEUVD-2023-55256 No score
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
EUVD-2023-55256- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-xgc4-4vwx-6v94
7.5
cJSON v1.7.16 was discovered to contain a segmentation violation via the function...
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
GHSA-xgc4-4vwx-6v94- 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 - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVALPINE-CVE-2023-50471
7.5
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
ALPINE-CVE-2023-50471- 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
OSVAZL-32206
7.5
CVE-2023-50471 affecting package apparmor for versions less than 3.0.4-3
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
AZL-32206- 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
Show 12 moreShow less
OSVAZL-67464
7.5
CVE-2023-50471 affecting package apparmor for versions less than 3.1.7-1
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
AZL-67464- 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-05
OSVBELL-CVE-2023-50471
7.5
- Record
BELL-CVE-2023-50471- 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
OSVDEBIAN-CVE-2023-50471
7.5
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
DEBIAN-CVE-2023-50471- 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
OSVOESA-2024-2302
7.5
cjson security update
cJSON aims to be the dumbest possible parser that you can get your job done with. It's a single file of C, and a single header file. %package devel Summary: Development files for cJSON Requires: = - Requires: pkgconfig %description devel The cjson-devel package contains libraries and header files for developing applications that use cJSON. %prep %autosetup -n cJSON-
Security Fix(es):
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.(CVE-2023-50471)
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_SetValuestring at cJSON.c.(CVE-2023-50472)
- Record
OESA-2024-2302- 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
OSVOESA-2024-2303
7.5
cjson security update
cJSON aims to be the dumbest possible parser that you can get your job done with. It's a single file of C, and a single header file. %package devel Summary: Development files for cJSON Requires: = - Requires: pkgconfig %description devel The cjson-devel package contains libraries and header files for developing applications that use cJSON. %prep %autosetup -n cJSON-
Security Fix(es):
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.(CVE-2023-50471)
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_SetValuestring at cJSON.c.(CVE-2023-50472)
- Record
OESA-2024-2303- 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-2023-50471
7.5
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
UBUNTU-CVE-2023-50471- 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
OSV No score
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
- Record
CVE-2023-50471- Updated
- 2026-11-02
OSVMGASA-2024-0156 No score
Updated cjson packages fix security vulnerabilities
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c. (CVE-2023-50471) cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_SetValuestring at cJSON.c. (CVE-2023-50472)
- Record
MGASA-2024-0156- 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:13537-1 No score
cJSON-devel-1.7.17-1.1 on GA media
These are all security issues fixed in the cJSON-devel-1.7.17-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13537-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 |
|---|---|---|
cjsonAlpine:v3.15 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.16 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.17 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.18 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.19 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.20 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.21 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.22 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.23 |
before 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpine:v3.24 |
before 1.7.17-r0 | 1.7.17-r0 |
Show 29 moreShow less
| Package | Affected | Fixed |
|---|---|---|
apparmorAzure Linux:2 |
before 3.0.4-3 | 3.0.4-3 |
apparmorAzure Linux:3 |
before 3.1.7-1 | 3.1.7-1 |
cjsonAlpaquita:23 |
1.7.15-r2 up to 1.7.17-r0 | 1.7.17-r0 |
cjsonAlpaquita:stream |
1.7.15-r2 up to 1.7.17-r0 | 1.7.17-r0 |
cjsonDebian:12 |
before 1.7.15-1+deb12u1, plus listed versions 1.7.15-1 |
1.7.15-1+deb12u1 |
cjsonDebian:13 |
before 1.7.17-1 | 1.7.17-1 |
cjsonDebian:14 |
before 1.7.17-1 | 1.7.17-1 |
cjsonDebian:10 |
before 1.7.10-1.1+deb10u2, plus listed versions 1.7.10-1.11.7.10-1.1+deb10u1 |
1.7.10-1.1+deb10u2 |
cjsonMageia:9 From an advisory covering 2 CVEs |
before 1.7.15-2.1.mga9 | 1.7.15-2.1.mga9 |
cjsonopenEuler:22.03-LTS-SP3 From an advisory covering 2 CVEs |
before 1.7.15-5.oe2203sp3 | 1.7.15-5.oe2203sp3 |
cjsonopenEuler:22.03-LTS-SP1 From an advisory covering 2 CVEs |
before 1.7.15-5.oe2203sp1 | 1.7.15-5.oe2203sp1 |
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: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 From an advisory covering 2 CVEs |
before 1.7.17-1.1 | 1.7.17-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-50471 is a high vulnerability (CVSS 7.5) in Davegamble Cjson, published December 14, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.52%, the 74th percentile. Fixed in cjson 1.7.17-r0.
References
github.com/DaveGamble/cJSON/issues/802
lists.debian.org/debian-lts-announce/2023/12/msg00023.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EO4XCUTY3ZMVW4YBG6DBYVS5NSMNP6JY
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YQOQ7CAOYBNHGAMNOR7ELGLC22HV3ZQV
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JSI3LL6ZNKYNM5JKPA5FKZTATL4MPF7V
lists.fedoraproject.org/archives/list/[email protected]/message/YQOQ7CAOYBNHGAMNOR7ELGLC22HV3ZQV
Show 56 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/EO4XCUTY3ZMVW4YBG6DBYVS5NSMNP6JY
lists.fedoraproject.org/archives/list/[email protected]/message/JSI3LL6ZNKYNM5JKPA5FKZTATL4MPF7V
nvd.nist.gov/vuln/detail/CVE-2023-50471
github.com/advisories/GHSA-xgc4-4vwx-6v94
security.alpinelinux.org/vuln/CVE-2023-50471
docs.bell-sw.com/security/cves/CVE-2023-50471
docs.bell-sw.com/security/advisories/BELL-SA-2024-1
github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50471.json
security-tracker.debian.org/tracker/CVE-2023-50471
advisories.mageia.org/MGASA-2024-0156.html
bugs.mageia.org/show_bug.cgi?id=33133
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2302
nvd.nist.gov/vuln/detail/CVE-2023-50472
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2303
access.redhat.com/errata/RHSA-2025:9838
access.redhat.com/security/updates/classification
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=2277268
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
access.redhat.com/security/cve/CVE-2023-50472
cve.org/CVERecord?id=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-2024-31755
cve.org/CVERecord?id=CVE-2024-31755
nvd.nist.gov/vuln/detail/CVE-2024-31755
github.com/DaveGamble/cJSON/issues/839
github.com/advisories/GHSA-5g69-hr8r-x577
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-2023-50471
github.com/DaveGamble/cJSON/commit/60ff122ef5862d04b39b150541459e7f5e35add8
github.com/DaveGamble/cJSON/commit/f66cbab4bfb3926ffd4c5e13f9fb6d506ee0241d
ubuntu.com/security/notices/USN-6784-1
ubuntu.com/security/CVE-2023-50472
ubuntu.com/security/CVE-2024-31755
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