Logo
vulnerabilityCVE-2026-33948
Name
CVE-2026-33948
Source
NVD ( link)Debian ( link)
Description
jq is a command-line JSON processor. Commits before 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b contain a vulnerability where CLI input parsing allows validation bypass via embedded NUL bytes. When reading JSON from files or stdin, jq uses strlen() to determine buffer length instead of the actual byte count from fgets(), causing it to truncate input at the first NUL byte and parse only the preceding prefix. This enables an attacker to craft input with a benign JSON prefix before a NUL byte followed by malicious trailing data, where jq validates only the prefix as valid JSON while silently discarding the suffix. Workflows relying on jq to validate untrusted JSON before forwarding it to downstream consumers are susceptible to parser differential attacks, as those consumers may process the full input including the malicious trailing bytes. This issue has been patched by commit 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
jq
Exploitable

Vulnerability Ratings#


2.9
CVSSv4
5.3
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
master
1.8.1
Exploitable
openwrt
master
1.8.1-r2
Exploitable
openwrt
openwrt-25.12
1.8.1-r2
Exploitable
yocto
kirkstone
1.6+gitX
Exploitable
yocto
master
1.8.1
Patched
yocto
scarthgap
1.7.1
Patched

Resolved with patches#


jq (yocto:master)

#
Title
Author
Resolve
1
Fix NUL truncation in the JSON parser
itchyny <itchyny@cybozu.co.jp>
CVE-2026-33948

jq (yocto:scarthgap)

#
Title
Author
Resolve
1
Fix NUL truncation in the JSON parser
itchyny <itchyny@cybozu.co.jp>
CVE-2026-33948