CVE-2026-49839
Fixed in a distro release EPSS <1%CVSS 7.1
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.
Products: jqlang jq
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.22 | jq | 1.8.2-r0 |
| Alpine 3.23 | jq | 1.8.2-r0 |
| Alpine 3.24 | jq | 1.8.2-r0 |
| Amazon Linux 2023 | jq | 1.8.1-60.amzn2023 |
| Amazon Linux 2023 | jq-devel | 1.8.1-60.amzn2023 |
| Debian 12 | jq | 1.6-2.1+deb12u2 |
| Debian 13 | jq | 1.7.1-6+deb13u3 |
| Debian 14 | jq | 1.8.1-8 |
| Red Hat hummingbird 1 | jq | 0:1.8.2-0.1.hum1 |
| Red Hat hummingbird 1 | jq-devel | 0:1.8.2-0.1.hum1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Micro 5.3 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Micro 5.4 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Micro 5.5 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server 16.0 | jq | 1.7.1-160000.4.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | jq | 1.7.1-150000.3.25.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | jq | 1.7.1-160000.4.1 |
| SUSE Linux Micro 6.0 | jq | 1.7.1-1.1 |
| SUSE Linux Micro 6.1 | jq | 1.7.1-slfo.1.1_4.1 |
| SUSE Linux Micro 6.2 | jq | 1.7.1-160000.4.1 |
| Ubuntu 22.04 LTS | jq | no fix |
| Ubuntu 24.04 LTS | jq | no fix |
| Ubuntu 25.10 | jq | no fix |
| Ubuntu 26.04 LTS | jq | no fix |
| Ubuntu 26.10 | jq | no fix |
| Ubuntu Pro 14.04 LTS | jq | no fix |
| Ubuntu Pro 16.04 LTS | jq | no fix |
| Ubuntu Pro 18.04 LTS | jq | no fix |
| Ubuntu Pro 20.04 LTS | jq | no fix |
| openSUSE Leap 16.0 | jq | 1.7.1-160000.4.1 |
| openSUSE Tumbleweed | jq | 1.8.2-1.1 |