CVE-2026-33948
A public proof of concept exists; no exploitation attested.
- Published2026-04-14
- Fixed in1.8.2
- WeaknessCWE-170 · CWE-20
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2026-04-1400:16CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.8 | < 1.8.2 | 1.8.2 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- jqlang jqAffected
- = < 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5bno fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-04-13
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- jqUbuntu:Pro:20.04:LTSall versions · fixed in 1.6-1ubuntu0.20.04.1+esm2
- jqUbuntu:Pro:18.04:LTSall versions · fixed in 1.5+dfsg-2ubuntu0.1~esm2
- jqUbuntu:Pro:16.04:LTSall versions · fixed in 1.5+dfsg-1ubuntu0.1+esm4
- jqUbuntu:Pro:14.04:LTSall versions · fixed in 1.3-1.1ubuntu1.1+esm4
- jqUbuntu:26.04:LTSall versions · fixed in 1.8.1-4ubuntu2
- jqUbuntu:25.10all versions · fixed in 1.8.1-3ubuntu1.1
- jqUbuntu:24.04:LTSall versions · fixed in 1.7.1-3ubuntu0.24.04.2
- jqUbuntu:22.04:LTSall versions · fixed in 1.6-2.1ubuntu3.2
44 more package ranges on OSV.dev
Vendor advisories
jq: jq: Input validation bypass via embedded NUL bytes allows parser differential attacks
jq.src as a component of Red Hat Enterprise Linux 10 · jq as a component of Red Hat Enterprise Linux 8 · jq-devel as a component of Red Hat Enterprise Linux 8 · +6 more
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Fix
- Update Jqlang jq to 1.8.2
- Vendor fix Red Hat Product Security RHSA-2026:8579 · 5 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
- Workaround from the vendor Red Hat Product Security RHSA-2026:8579 · 5 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
- No fix available, says the vendor Red Hat Product Security CVE-2026-33948 · 9 productsFix deferred
Advisories and patches
- github.comPatch
- github.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2026-04-14
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2026-04-14
- CNACVSS 4.02.9known since 2026-10-27
- NVDCVSS 3.15.3read 2026-10-27
- CNAweakness (CWE)CWE-170, CWE-20known since 2026-10-27
- FIRST EPSSEPSS score0.3 %2026-11-18
- OSVaffected packages—
- Microsoft MSRCadvisory—
Identifiers
- AZL-82928same flawAzure Linux · MIT
- EUVD-2026-22158same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- MGASA-2026-0188advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2026-1981advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2026:10850-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:21248-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2026:8579advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2026:22545-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:22566-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:22664-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:22705-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:23873-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:4275-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-8202-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CVSS 4.0 vector
- 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:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Published
- 2026-04-14
- Last Modified
- 2026-10-26
- NVD status
- Analyzed
- MSRC Title
- jq: Embedded-NUL Truncation in CLI JSON Input Path Causes Prefix-Only Validation of Malformed Input
Frequently asked questions
What is CVE-2026-33948?
Is CVE-2026-33948 actively exploited?
What is the CVSS score for CVE-2026-33948?
Running jq? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2016-4074same product
- CVE-2026-32316same productjq: Integer overflow in jvp_string_append() allows Heap-based Buffer Overflow
- CVE-2026-39979same product
- CVE-2025-48060same product
- CVE-2024-23337same product
- CVE-2026-40164same productjq: Algorithmic complexity DoS via hardcoded MurmurHash3 seed
- CVE-2026-33947same product
- CVE-2025-9403same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- Microsoft MSRC · Microsoft terms of use (personal and non-commercial use) · terms restrict redistribution
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0