DSA-6416-1
Active Unknownjq - security update
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 12 records
Shared by all 12 CVE relationships
Exact relationship value
advisory_listExact field value
DSA/DLA structured-text list| CVE | Publisher evidence |
|---|---|
| CVE-2024-53427 | https://security-tracker.debian.org/tracker/CVE-2024-53427 |
| CVE-2026-32316 | https://security-tracker.debian.org/tracker/CVE-2026-32316 |
| CVE-2026-40612 | https://security-tracker.debian.org/tracker/CVE-2026-40612 |
| CVE-2026-41256 | https://security-tracker.debian.org/tracker/CVE-2026-41256 |
| CVE-2026-41257 | https://security-tracker.debian.org/tracker/CVE-2026-41257 |
| CVE-2026-43894 | https://security-tracker.debian.org/tracker/CVE-2026-43894 |
| CVE-2026-43895 | https://security-tracker.debian.org/tracker/CVE-2026-43895 |
| CVE-2026-43896 | https://security-tracker.debian.org/tracker/CVE-2026-43896 |
| CVE-2026-44777 | https://security-tracker.debian.org/tracker/CVE-2026-44777 |
| CVE-2026-47770 | https://security-tracker.debian.org/tracker/CVE-2026-47770 |
| CVE-2026-49839 | https://security-tracker.debian.org/tracker/CVE-2026-49839 |
| CVE-2026-54679 | https://security-tracker.debian.org/tracker/CVE-2026-54679 |
Description
CVE-2024-53427: decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which has a resultant stack-based buffer overflow and out-of-bounds write, as demonstrated by use of --slurp with subtraction, such as a filter of .-. when the input has a certain form of digit string with NaN (e.g., "1 NaN123"
Read full publisher description 5796 characters
CVE-2024-53427: decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which has a resultant stack-based buffer overflow and out-of-bounds write, as demonstrated by use of --slurp with subtraction, such as a filter of .-. when the input has a certain form of digit string with NaN (e.g., "1 NaN123" immediately followed by many more digits). CVE-2026-32316: jq is a command-line JSON processor. An integer overflow vulnerability exists through version 1.8.1 within the jvp_string_append() and jvp_string_copy_replace_bad functions, where concatenating strings with a combined length exceeding 2^31 bytes causes a 32-bit unsigned integer overflow in the buffer allocation size calculation, resulting in a drastically undersized heap buffer. Subsequent memory copy operations then write the full string data into this undersized buffer, causing a heap buffer overflow classified as CWE-190 (Integer Overflow) leading to CWE-122 (Heap-based Buffer Overflow). Any system evaluating untrusted jq queries is affected, as an attacker can crash the process or potentially achieve further exploitation through heap corruption by crafting queries that produce extremely large strings. The root cause is the absence of string size bounds checking, unlike arrays and objects which already have size limits. The issue has been addressed in commit e47e56d226519635768e6aab2f38f0ab037c09e5. CVE-2026-40612: jq is a command-line JSON processor. In 1.8.1 and earlier, jv_contains recurses into nested arrays/objects with no depth limit. With a sufficiently nested input structure (built programmatically with reduce, since the JSON parser caps at depth 10000), the C stack is exhausted. CVE-2026-41256: jq is a command-line JSON processor. In 1.8.1 and earlier, Top-level jq programs loaded from a file with -f are truncated at the first embedded NUL byte on current upstream HEAD. A crafted filter file such as . followed by \x00 and arbitrary suffix compiles and executes as only the prefix before the NUL. This leaves jq with a post-CVE-2026-33948 prefix/full-buffer mismatch on the compilation path even though the JSON parser path has already been fixed. CVE-2026-41257: jq is a command-line JSON processor. In 1.8.1 and earlier, the jq bytecode VM's data stack tracks its allocation size in a signed int. When the stack grows beyond ≈1 GiB (via deeply nested generator forks), the doubling arithmetic overflows. The wrapped value is passed to realloc and then used for a memmove with attacker-influenced offsets. CVE-2026-43894: jq is a command-line JSON processor. In 1.8.1 and earlier, when decNumberFromString is given a number literal of INT_MAX-1 (2147483646) digits, the D2U() macro overflows during signed-int arithmetic. The wrapped negative value bypasses the heap-allocation size check, causes the function to use a 30-byte stack buffer, and then writes ≈715 million 16-bit units (≈1.4 GiB) at an offset 1.43 GiB below the stack frame. The written content is fully attacker-controlled (the parsed decimal digits, packed 3-per-unit). CVE-2026-43895: jq is a command-line JSON processor. In 1.8.1 and earlier, jq accepts embedded NUL bytes in import paths at the jq-language level, but later resolves those paths through C string operations during module and data-file lookup. This creates a mismatch between the logical import string that policy or audit code may validate and the on-disk path that jq actually opens. CVE-2026-43896: jq is a command-line JSON processor. In 1.8.1 and earlier, unbounded recursion in jv_object_merge_recursive() allows a crafted jq program to crash the process with a segfault. The function is reachable through the * operator when both operands are objects. CVE-2026-44777: jq is a command-line JSON processor. In 1.8.2rc1 and earlier, the ordinary module loader recurses without cycle detection when two otherwise valid modules include each other. CVE-2026-47770: jq is a command-line JSON processor. Prior to 1.8.2, comparing two sufficiently deeply nested arrays with the == operator exhausts the C stack on jq's ordinary command-line surface, resulting in denial of service via stack exhaustion (uncontrolled recursion). The crash occurs in jq's recursive structural comparison code, with the recursion repeating through jvp_array_equal() and jv_equal() in src/jv.c when comparing deeply nested arrays; a nearby sort comparator path through jv_cmp() in src/jv_aux.c overflows the stack at a larger nesting depth from the same missing recursion guard. Anyone running jq comparisons on attacker-controlled deeply nested JSON values, or embedding jq in a context where untrusted data can reach the == comparison path, is affected. This vulnerability is fixed in 1.8.2. CVE-2026-49839: jq is a command-line JSON processor. Prior to 1.8.2,` jq --rawfile` can turn a handled oversized-string error into invalid-state reuse and a real heap out-of-bounds write in assertion-disabled builds. When jv_load_file(raw=1) reads an attacker-controlled file, it repeatedly appends file chunks to the same jv string accumulator. Once jv_string_append_buf() returns jv_invalid_with_msg("String too long"), the raw-file loop does not stop. If the file contains at least one more byte, the next loop iteration appends a new chunk to an object that is already invalid. With assertions enabled this aborts in jvp_string_ptr(). With assertions disabled, the invalid object is interpreted as a string object and ASan reports heap-buffer-overflow. This vulnerability is fixed in 1.8.2. CVE-2026-54679: jq is a command-line JSON processor. Prior to 1.8.2, on 32bit system, jvp_string_append has a chance of integer/multiple overflowing and then causing a massive buffer overrun. This vulnerability is fixed in 1.8.2.
No solution guidance was provided.
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to this occurrence- Package role
- Source package
- Ecosystem
- Debian:trixie
- Fixed version
- 1.7.1-6+deb13u3
Affected ranges and events
-
ECOSYSTEM
- Fixed at 1.7.1-6+deb13u3
-
1jqSource package
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
13- DSA-6416-1 https://www.debian.org/security/2026/dsa-6416
- CVE-2024-53427 https://security-tracker.debian.org/tracker/CVE-2024-53427
- CVE-2026-32316 https://security-tracker.debian.org/tracker/CVE-2026-32316
- CVE-2026-40612 https://security-tracker.debian.org/tracker/CVE-2026-40612
- CVE-2026-41256 https://security-tracker.debian.org/tracker/CVE-2026-41256
- CVE-2026-41257 https://security-tracker.debian.org/tracker/CVE-2026-41257
- CVE-2026-43894 https://security-tracker.debian.org/tracker/CVE-2026-43894
- CVE-2026-43895 https://security-tracker.debian.org/tracker/CVE-2026-43895
- CVE-2026-43896 https://security-tracker.debian.org/tracker/CVE-2026-43896
- CVE-2026-44777 https://security-tracker.debian.org/tracker/CVE-2026-44777
- CVE-2026-47770 https://security-tracker.debian.org/tracker/CVE-2026-47770
- CVE-2026-49839 https://security-tracker.debian.org/tracker/CVE-2026-49839
- CVE-2026-54679 https://security-tracker.debian.org/tracker/CVE-2026-54679
Provenance
- Schema version
- Unknown
- Parser version
- debian-dsa-dla-tracker/1
- Attribution
- Debian Security Team
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| structured_advisory_list | https://salsa.debian.org/security-tracker-team/security-tracker/-/raw/master/data/DSA/list | Unknown | da33469682d6de38d081451cd46570a0d98e5eea0a040401f9ab153d18157c2a | debian-dsa-dla-tracker/1 | Unknown |