Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-41256: CWE-158: Improper Neutralization of Null Byte or NUL Character in jqlang jq

0
Medium
VulnerabilityCVE-2026-41256cvecve-2026-41256cwe-158
Published: Mon May 11 2026 (05/11/2026, 17:18:30 UTC)
Source: CVE Database V5
Vendor/Project: jqlang
Product: jq

Description

jq is a command-line JSON processor. In 1.8.1 and earlier, Top-level jq programs loaded from a file with -f are truncated at the first embedded NUL byte on current upstream HEAD. A crafted filter file such as . followed by \x00 and arbitrary suffix compiles and executes as only the prefix before the NUL. This leaves jq with a post-CVE-2026-33948 prefix/full-buffer mismatch on the compilation path even though the JSON parser path has already been fixed.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/11/2026, 18:24:12 UTC

Technical Analysis

jq versions 1.8.1 and earlier improperly handle embedded null (NUL) bytes in filter files loaded with the -f option. When a filter file contains a NUL byte, jq truncates the program at that byte, causing the compiled filter to only include the prefix before the NUL. This leads to a mismatch between the prefix and the full buffer during compilation, a problem that remains even after fixing a related issue in the JSON parser path (CVE-2026-33948). The vulnerability is classified under CWE-158 (Improper Neutralization of Null Byte or NUL Character) and has a CVSS 3.1 score of 5.5, indicating medium severity. No official patch or remediation level has been published yet.

Potential Impact

The vulnerability allows a crafted filter file containing a null byte to cause jq to execute only the prefix before the null byte, potentially leading to unexpected behavior or logic bypass in jq filter execution. The CVSS vector indicates local attack vector, low complexity, no privileges required, user interaction required, unchanged scope, no confidentiality or availability impact, but high integrity impact. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid processing untrusted jq filter files containing embedded null bytes and consider restricting file sources or validating filter files to prevent null byte injection.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-18T14:01:46.801Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a021aa3cbff5d861043037f

Added to database: 5/11/2026, 6:06:27 PM

Last enriched: 5/11/2026, 6:24:12 PM

Last updated: 5/12/2026, 3:40:28 AM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses