Summary
It was discovered that jq did not properly handle specially crafted
program or data files. An attacker could possibly use these issues
to cause a crash, resulting in a denial of service, or execute
arbitrary code. (CVE-2026-41256, CVE-2026-41257, CVE-2026-49839)
It was discovered that jq did not properly handle module import paths
containing NUL bytes. An attacker could possibly use this issue to
cause jq to open a different file than the one validated by policy
or audit code. (CVE-2026-43895)
It was discovered that jq did not properly limit the recursion depth
when recursively merging objects. An attacker could possibly use
this issue to cause a crash, resulting in a denial of service.
(CVE-2026-43896)
It was discovered that the jq module loader did not detect circular
module imports. An attacker could possibly use this issue to cause
a crash, resulting in a denial of service. (CVE-2026-44777)
Fixed packages 3
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 22.04 LTS 22.04:LTS | jq | 1.6-2.1ubuntu3.3 |
| Ubuntu · 24.04 LTS 24.04:LTS | jq | 1.7.1-3ubuntu0.24.04.3 |
| Ubuntu · 26.04 LTS 26.04:LTS | jq | 1.8.1-4ubuntu2.1 |
Vulnerabilities 6
-
High 7.1
jq --rawfile invalid-state reuse after String too long causes heap-buffer-overflow
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…
-
Medium 6.4
jq: Signed-int overflow in `stack_reallocate` (jq VM stack)
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…
-
Medium 6.2
jq: Stack Overflow in Recursive Object Merge
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.
-
Medium 5.5
jq: Embedded NUL truncates top-level jq programs loaded with -f
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 a…
-
Medium 5.4
jq: stack overflow in module loading on mutual `include`
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.
-
Medium 4.4
jq: Embedded NUL in jq import paths causes local redaction-policy bypass and preserves sensitive fields in published artifacts
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 t…