Logo
vulnerabilityCVE-2026-49839
Name
CVE-2026-49839
Source
NVD ( link)Debian ( link)
Description
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
jq
Exploitable

Vulnerability Ratings#


7.1
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
1.7.1
Patched
buildroot
master
1.8.2
Not Affected
openwrt
master
1.8.2-r1
Not Affected
openwrt
openwrt-25.12
1.8.1-r2
Exploitable
yocto
master
1.8.2
Not Affected
yocto
scarthgap
1.7.1
Patched

Resolved with patches#


jq (buildroot:2025.02.x)

#
Title
Author
Resolve
1
Fix heap-buffer-overflow in raw file loading
itchyny <itchyny@cybozu.co.jp>
CVE-2026-49839

jq (yocto:scarthgap)

#
Title
Author
Resolve
1
Fix heap-buffer-overflow in raw file loading
itchyny <itchyny@cybozu.co.jp>
CVE-2026-49839