Skip to contentSkip to conversation

package/cjson: security bump to version 1.7.19

PATCH Applied Peter Korsgaard 2 participants 5 messages Sep 16, 2025 – Sep 25, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/cjson: security bump to version 1.7.19

Fixes the following security issue:

CVE-2025-57052: cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters

https://nvd.nist.gov/vuln/detail/CVE-2025-57052
https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability
https://github.com/DaveGamble/cJSON/commit/74e1ff4994aa4139126967f6d289b675b4b36fef
https://github.com/DaveGamble/cJSON/releases/tag/v1.7.19

---
 package/cjson/0001-make_compatible_with_cmake_4.0.patch | 4 +++-
 package/cjson/cjson.hash                                | 2 +-
 package/cjson/cjson.mk                                  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
package/cjson/0001-make_compatible_with_cmake_4.0.patch +3 -1
index 1fe5cd43ef..684773e4da 100644
@@ -16,6 +16,8 @@ CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
 This change raises the minimum required CMake version to 3.5 and thus makes the project compatible with CMake 4.0
 
 Signed-off-by: Benoît Monin <[email protected]>
+Signed-off-by: Peter Korsgaard <[email protected]>
+Peter: update for 1.7.19
 Upstream: https://github.com/DaveGamble/cJSON/pull/935
 ---
  CMakeLists.txt | 2 +-
@@ -31,4 +33,4 @@ index 36a6cb57..9428da58 100644
 +cmake_minimum_required(VERSION 3.5)
  
  project(cJSON
-     VERSION 1.7.18
+     VERSION 1.7.19
package/cjson/cjson.hash +1 -1
index e07ae0f7bf..a876ffafe8 100644
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  3aa806844a03442c00769b83e99970be70fbef03735ff898f4811dd03b9f5ee5  cjson-1.7.18.tar.gz
+sha256  7fa616e3046edfa7a28a32d5f9eacfd23f92900fe1f8ccd988c1662f30454562  cjson-1.7.19.tar.gz
 sha256  a36dda207c36db5818729c54e7ad4e8b0c6fba847491ba64f372c1a2037b6d5c  LICENSE
package/cjson/cjson.mk +1 -1
index 35304ec618..e0320770cb 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-CJSON_VERSION = 1.7.18
+CJSON_VERSION = 1.7.19
 CJSON_SITE = $(call github,DaveGamble,cjson,v$(CJSON_VERSION))
 CJSON_INSTALL_STAGING = YES
 CJSON_LICENSE = MIT
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Peter,

In reply of:

Quoted 7 lines

Fixes the following security issue:

CVE-2025-57052: cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters

Quoted 6 lines

https://nvd.nist.gov/vuln/detail/CVE-2025-57052
https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability
https://github.com/DaveGamble/cJSON/commit/74e1ff4994aa4139126967f6d289b675b4b36fef
https://github.com/DaveGamble/cJSON/releases/tag/v1.7.19

I see the CPE reported on NVD for this CVE is the following cpe:2.3:a:davegamble:cjson:1.7.18:*:*:*:*:*:*:* while the one present in Buildroot is cpe:2.3:a:cjson_project:cjson:1.7.18:*:*:*:*:*:*:*.

Is 'cjson_project:cjson' still in use ?

Regards,
PERALE Thomas

Quoted 54 lines
---
 package/cjson/0001-make_compatible_with_cmake_4.0.patch | 4 +++-
 package/cjson/cjson.hash                                | 2 +-
 package/cjson/cjson.mk                                  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
package/cjson/0001-make_compatible_with_cmake_4.0.patch +3 -1
index 1fe5cd43ef..684773e4da 100644
@@ -16,6 +16,8 @@ CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
 This change raises the minimum required CMake version to 3.5 and thus makes the project compatible with CMake 4.0
 
 Signed-off-by: Benoît Monin <[email protected]>
+Signed-off-by: Peter Korsgaard <[email protected]>
+Peter: update for 1.7.19
 Upstream: https://github.com/DaveGamble/cJSON/pull/935
 ---
  CMakeLists.txt | 2 +-
@@ -31,4 +33,4 @@ index 36a6cb57..9428da58 100644
 +cmake_minimum_required(VERSION 3.5)
 
  project(cJSON
-     VERSION 1.7.18
+     VERSION 1.7.19
package/cjson/cjson.hash +1 -1
index e07ae0f7bf..a876ffafe8 100644
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  3aa806844a03442c00769b83e99970be70fbef03735ff898f4811dd03b9f5ee5  cjson-1.7.18.tar.gz
+sha256  7fa616e3046edfa7a28a32d5f9eacfd23f92900fe1f8ccd988c1662f30454562  cjson-1.7.19.tar.gz
 sha256  a36dda207c36db5818729c54e7ad4e8b0c6fba847491ba64f372c1a2037b6d5c  LICENSE
package/cjson/cjson.mk +1 -1
index 35304ec618..e0320770cb 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-CJSON_VERSION = 1.7.18
+CJSON_VERSION = 1.7.19
 CJSON_SITE = $(call github,DaveGamble,cjson,v$(CJSON_VERSION))
 CJSON_INSTALL_STAGING = YES
 CJSON_LICENSE = MIT
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Perale <[email protected]> writes:

Hi Peter,
In reply of:

Quoted 12 lines

Fixes the following security issue:

CVE-2025-57052: cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters

https://nvd.nist.gov/vuln/detail/CVE-2025-57052
https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability
https://github.com/DaveGamble/cJSON/commit/74e1ff4994aa4139126967f6d289b675b4b36fef
https://github.com/DaveGamble/cJSON/releases/tag/v1.7.19

Quoted 7 lines
Quoted 1 line

I see the CPE reported on NVD for this CVE is the following cpe:2.3:a:davegamble:cjson:1.7.18:*:*:*:*:*:*:* while the one present in Buildroot is cpe:2.3:a:cjson_project:cjson:1.7.18:*:*:*:*:*:*:*.

Is 'cjson_project:cjson' still in use ?

Ahh, no idea - Just saw Debian pushing a security update for this.

The CPE was added by:

commit 7edfc478ea16a78b98a1e8172b6de3e3abed989e

Author: Heiko Thiery <[email protected]>
Date:   Thu Jan 21 14:36:42 2021 +0100

package/cjson: set CJSON_CPE_ID_VALID

cpe:2.3:a:cjson_project:cjson is a valid CPE identifier for this package:

https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cjson

And that URL indeed now only shows the davegamble:cjson entries. Care to send a patch to update the CPE info?

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Peter Korsgaard
Quoted 7 lines · Peter Korsgaard

Fixes the following security issue:

CVE-2025-57052: cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters

Quoted 6 lines

https://nvd.nist.gov/vuln/detail/CVE-2025-57052
https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability
https://github.com/DaveGamble/cJSON/commit/74e1ff4994aa4139126967f6d289b675b4b36fef
https://github.com/DaveGamble/cJSON/releases/tag/v1.7.19

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Peter Korsgaard

In reply of:

Quoted 7 lines

Fixes the following security issue:

CVE-2025-57052: cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters

Quoted 6 lines

https://nvd.nist.gov/vuln/detail/CVE-2025-57052
https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability
https://github.com/DaveGamble/cJSON/commit/74e1ff4994aa4139126967f6d289b675b4b36fef
https://github.com/DaveGamble/cJSON/releases/tag/v1.7.19

Applied to 2025.02.x, 2025.05.x & 2025.08.x. Thanks

Quoted 54 lines
---
 package/cjson/0001-make_compatible_with_cmake_4.0.patch | 4 +++-
 package/cjson/cjson.hash                                | 2 +-
 package/cjson/cjson.mk                                  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
package/cjson/0001-make_compatible_with_cmake_4.0.patch +3 -1
index 1fe5cd43ef..684773e4da 100644
@@ -16,6 +16,8 @@ CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
 This change raises the minimum required CMake version to 3.5 and thus makes the project compatible with CMake 4.0
 
 Signed-off-by: Benoît Monin <[email protected]>
+Signed-off-by: Peter Korsgaard <[email protected]>
+Peter: update for 1.7.19
 Upstream: https://github.com/DaveGamble/cJSON/pull/935
 ---
  CMakeLists.txt | 2 +-
@@ -31,4 +33,4 @@ index 36a6cb57..9428da58 100644
 +cmake_minimum_required(VERSION 3.5)
 
  project(cJSON
-     VERSION 1.7.18
+     VERSION 1.7.19
package/cjson/cjson.hash +1 -1
index e07ae0f7bf..a876ffafe8 100644
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  3aa806844a03442c00769b83e99970be70fbef03735ff898f4811dd03b9f5ee5  cjson-1.7.18.tar.gz
+sha256  7fa616e3046edfa7a28a32d5f9eacfd23f92900fe1f8ccd988c1662f30454562  cjson-1.7.19.tar.gz
 sha256  a36dda207c36db5818729c54e7ad4e8b0c6fba847491ba64f372c1a2037b6d5c  LICENSE
package/cjson/cjson.mk +1 -1
index 35304ec618..e0320770cb 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-CJSON_VERSION = 1.7.18
+CJSON_VERSION = 1.7.19
 CJSON_SITE = $(call github,DaveGamble,cjson,v$(CJSON_VERSION))
 CJSON_INSTALL_STAGING = YES
 CJSON_LICENSE = MIT
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot