Skip to contentSkip to conversation

package/jq: security bump to version 1.8.1

PATCH Superseded Angelo Compagnucci 2 participants 2 messages Aug 19, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/jq: security bump to version 1.8.1

Changelog:
https://github.com/jqlang/jq/releases/tag/jq-1.8.1

COPYING:
Add LICENSE notice of NetBSD's strptime() to COPYING

Fixes the following security issues:

- CVE-2025-49014
Fix heap use after free in f_strftime, f_strflocaltime.

- GHSA-f946-j5j2-4w5m
Fix stack overflow in node_min_byte_len of oniguruma.

---

v1->v2:
* Updated COPYING hash (Thomas P)

 package/jq/jq.hash | 4 ++--
 package/jq/jq.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/jq/jq.hash +2 -2
index 344f73d463..4596134620 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  91811577f91d9a6195ff50c2bffec9b72c8429dc05ec3ea022fd95c06d2b319c  jq-1.8.0.tar.gz
-sha256  ea9e53f5974239869c51ace8bb6849c9751dee7c9d592180957987a1a133caff  COPYING
+sha256  2be64e7129cecb11d5906290eba10af694fb9e3e7f9fc208a311dc33ca837eb0  jq-1.8.1.tar.gz
+sha256  ad2b4a266b2268939c1446979759706077421cf906a203aa188c6f396e8cfd74  COPYING
package/jq/jq.mk +1 -1
index f3f4704f37..3077a76b17 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-JQ_VERSION = 1.8.0
+JQ_VERSION = 1.8.1
 JQ_SITE = https://github.com/jqlang/jq/releases/download/jq-$(JQ_VERSION)
 JQ_LICENSE = MIT (code), ICU (decNumber), CC-BY-3.0 (documentation)
 JQ_LICENSE_FILES = COPYING
Signature · 6 lines
2.34.1

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

Hi Angelo,

Thanks for the patch!

I have few comments, see below.

Quoted 5 lines · Angelo Compagnucci

Changelog:
https://github.com/jqlang/jq/releases/tag/jq-1.8.1

COPYING:
Add LICENSE notice of NetBSD's strptime() to COPYING

When there is a change in the license text, it is preferable to provide a link of the upstream commit of the change, if available. This makes reviews easier. In that case, it is:

https://github.com/jqlang/jq/commit/78045d8aa9d155ec0f82ab102aa752300c2349f1

Looking at this change, I see it is introducing a new BSD-2-Clause paragraph for strptime(). So the JQ_LICENSE variable would also need to be updated accordingly. See below.

Quoted 4 lines

Fixes the following security issues:

- CVE-2025-49014
Fix heap use after free in f_strftime, f_strflocaltime.

To make review faster, could you add a direct link to the CVE, please?

    https://www.cve.org/CVERecord?id=CVE-2025-49014
Quoted 3 lines

- GHSA-f946-j5j2-4w5m
Fix stack overflow in node_min_byte_len of oniguruma.

Same comment here:

    https://github.com/jqlang/jq/security/advisories/GHSA-f946-j5j2-4w5m
Quoted 38 lines

---

v1->v2:
* Updated COPYING hash (Thomas P)

 package/jq/jq.hash | 4 ++--
 package/jq/jq.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/jq/jq.hash +0 -1
index 344f73d463..4596134620 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  

91811577f91d9a6195ff50c2bffec9b72c8429dc05ec3ea022fd95c06d2b319c jq-1.8.0.tar.gz -sha256 ea9e53f5974239869c51ace8bb6849c9751dee7c9d592180957987a1a133caff COPYING +sha256 2be64e7129cecb11d5906290eba10af694fb9e3e7f9fc208a311dc33ca837eb0 jq-1.8.1.tar.gz +sha256 ad2b4a266b2268939c1446979759706077421cf906a203aa188c6f396e8cfd74 COPYING

package/jq/jq.mk +1 -1
index f3f4704f37..3077a76b17 100644
@@ -4,7 +4,7 @@
 #
 
 ################################################################################
 
-JQ_VERSION = 1.8.0
+JQ_VERSION = 1.8.1
 JQ_SITE = 
 https://github.com/jqlang/jq/releases/download/jq-$(JQ_VERSION)
Quoted 1 line

JQ_LICENSE = MIT (code), ICU (decNumber), CC-BY-3.0 (documentation)

Here, we should update _LICENSE to include the new BSD-2-Clause:

JQ_LICENSE = MIT (code), ICU (decNumber), CC-BY-3.0 (documentation), BSD-2-Clause (strptime)

Quoted 3 lines

JQ_LICENSE_FILES = COPYING
--
2.34.1

Could you send an updated patch, please?

Best regards,

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