CVE-2026-33948
jq: Embedded-NUL Truncation in CLI JSON Input Path Causes Prefix-Only Validation of Malformed Input
Mitigation
- Upgrade jq to 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b or later.
Who should check
- Anyone running jqlang jq < 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b
Vulnerability facts
- Affected
- jqlang jq < 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b
- Fixed in
- jqlang jq 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 2.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:POpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- Exploit maturity: Proof of concept
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 11, 2026-11-26)
- CWE
- CWE-170, CWE-20
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| jqlang jq | < 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-33948. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-33948.md Affected: jqlang jq < 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b Fixed in: jqlang jq 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b Steps: 1. Search this machine and project for jqlang jq: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-33948 being exploited?
There is no confirmed exploitation: CVE-2026-33948 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-33948?
Low: CVSS 2.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-33948?
jqlang jq < 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b.
Is there a fix for CVE-2026-33948?
Yes. Fixed in jqlang jq 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b. Upgrade jq to 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b or later.
How do I check if I'm affected by CVE-2026-33948?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.