CVE-2026-33948
Publication date 14 April 2026
Last updated 28 April 2026
Ubuntu priority
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| jq | 26.04 LTS resolute |
Fixed 1.8.1-4ubuntu2
|
| 25.10 questing |
Fixed 1.8.1-3ubuntu1.1
|
|
| 24.04 LTS noble |
Fixed 1.7.1-3ubuntu0.24.04.2
|
|
| 22.04 LTS jammy |
Fixed 1.6-2.1ubuntu3.2
|
|
| 20.04 LTS focal |
Fixed 1.6-1ubuntu0.20.04.1+esm2
|
|
| 18.04 LTS bionic |
Fixed 1.5+dfsg-2ubuntu0.1~esm2
|
|
| 16.04 LTS xenial |
Fixed 1.5+dfsg-1ubuntu0.1+esm4
|
|
| 14.04 LTS trusty |
Not affected
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialReferences
Related Ubuntu Security Notices (USN)
- USN-8202-1
- jq vulnerabilities
- 23 April 2026
- USN-8202-2
- jq vulnerabilities
- 28 April 2026