CVE-2026-43895: CWE-20: Improper Input Validation in jqlang jq
jq is a command-line JSON processor. In 1.8.1 and earlier, jq accepts embedded NUL bytes in import paths at the jq-language level, but later resolves those paths through C string operations during module and data-file lookup. This creates a mismatch between the logical import string that policy or audit code may validate and the on-disk path that jq actually opens.
AI Analysis
Technical Summary
The jq command-line JSON processor (version 1.8.1 and earlier) improperly validates input by accepting embedded NUL bytes in import paths at the jq-language level. However, when resolving these paths for module and data-file lookup, jq uses C string operations that treat NUL bytes as string terminators. This discrepancy creates a mismatch between the logical import string validated by policy or audit code and the actual on-disk path accessed by jq, potentially allowing unintended file access.
Potential Impact
This vulnerability could allow an attacker with local access and limited privileges to cause jq to open files different from those intended by the import path validation logic. This may lead to information disclosure or other unintended behavior due to the mismatch in path resolution. The impact is limited to confidentiality and integrity with no known impact on availability. No known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when processing untrusted input with jq versions 1.8.1 and earlier, especially in environments where import path validation is critical. Monitoring vendor channels for updates is recommended.
CVE-2026-43895: CWE-20: Improper Input Validation in jqlang jq
Description
jq is a command-line JSON processor. In 1.8.1 and earlier, jq accepts embedded NUL bytes in import paths at the jq-language level, but later resolves those paths through C string operations during module and data-file lookup. This creates a mismatch between the logical import string that policy or audit code may validate and the on-disk path that jq actually opens.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The jq command-line JSON processor (version 1.8.1 and earlier) improperly validates input by accepting embedded NUL bytes in import paths at the jq-language level. However, when resolving these paths for module and data-file lookup, jq uses C string operations that treat NUL bytes as string terminators. This discrepancy creates a mismatch between the logical import string validated by policy or audit code and the actual on-disk path accessed by jq, potentially allowing unintended file access.
Potential Impact
This vulnerability could allow an attacker with local access and limited privileges to cause jq to open files different from those intended by the import path validation logic. This may lead to information disclosure or other unintended behavior due to the mismatch in path resolution. The impact is limited to confidentiality and integrity with no known impact on availability. No known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when processing untrusted input with jq versions 1.8.1 and earlier, especially in environments where import path validation is critical. Monitoring vendor channels for updates is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-04T15:17:09.330Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a021aa7cbff5d861043052e
Added to database: 5/11/2026, 6:06:31 PM
Last enriched: 5/11/2026, 6:23:32 PM
Last updated: 5/12/2026, 3:53:15 AM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.