From: Thomas Perale via buildroot <buildroot@buildroot.org>
To: Peter Korsgaard <peter@korsgaard.com>
Cc: Thomas Perale <thomas.perale@mind.be>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/cjson: security bump to version 1.7.19
Date: Thu, 25 Sep 2025 22:16:44 +0200 [thread overview]
Message-ID: <20250925201645.43432-1-thomas.perale@mind.be> (raw)
In-Reply-To: <20250916093105.525147-1-peter@korsgaard.com>
In reply of:
> 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
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Applied to 2025.02.x, 2025.05.x & 2025.08.x. Thanks
> ---
> 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(-)
>
> diff --git a/package/cjson/0001-make_compatible_with_cmake_4.0.patch b/package/cjson/0001-make_compatible_with_cmake_4.0.patch
> index 1fe5cd43ef..684773e4da 100644
> --- a/package/cjson/0001-make_compatible_with_cmake_4.0.patch
> +++ b/package/cjson/0001-make_compatible_with_cmake_4.0.patch
> @@ -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 <benoit.monin@bootlin.com>
> +Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> +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
> diff --git a/package/cjson/cjson.hash b/package/cjson/cjson.hash
> index e07ae0f7bf..a876ffafe8 100644
> --- a/package/cjson/cjson.hash
> +++ b/package/cjson/cjson.hash
> @@ -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
> diff --git a/package/cjson/cjson.mk b/package/cjson/cjson.mk
> index 35304ec618..e0320770cb 100644
> --- a/package/cjson/cjson.mk
> +++ b/package/cjson/cjson.mk
> @@ -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
> --
> 2.39.5
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2025-09-25 20:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 9:31 [Buildroot] [PATCH] package/cjson: security bump to version 1.7.19 Peter Korsgaard
2025-09-16 13:51 ` Thomas Perale via buildroot
2025-09-16 14:06 ` Peter Korsgaard
2025-09-16 18:53 ` Julien Olivain via buildroot
2025-09-25 20:16 ` Thomas Perale via buildroot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250925201645.43432-1-thomas.perale@mind.be \
--to=buildroot@buildroot.org \
--cc=peter@korsgaard.com \
--cc=thomas.perale@mind.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox