CVE-2026-33948: jq is a command-line JSON processor. Commits before 6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b contain a vulnerability…

CVE-2026-33948 · Severity: medium · CVSS 5.3 · Published 2026-04-14

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.

Technologies: Jqlang Jq. Vendors: Jqlang.

Quick answers

Is CVE-2026-33948 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-33948 being exploited in the wild.
How severe is CVE-2026-33948?
Medium severity, with a CVSS score of 5.3, published 14 April 2026.
Which products and versions are affected?
Jqlang Jq. The advisory does not name versions.
Is there a fix for CVE-2026-33948?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
Am I affected by CVE-2026-33948?
Check whether you run Jqlang Jq. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Affected products

  • Jqlang Jq

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.