CVE-2026-43894: CWE-190: Integer Overflow or Wraparound in jqlang jq
jq is a command-line JSON processor. In 1.8.1 and earlier, when decNumberFromString is given a number literal of INT_MAX-1 (2147483646) digits, the D2U() macro overflows during signed-int arithmetic. The wrapped negative value bypasses the heap-allocation size check, causes the function to use a 30-byte stack buffer, and then writes ≈715 million 16-bit units (≈1.4 GiB) at an offset 1.43 GiB below the stack frame. The written content is fully attacker-controlled (the parsed decimal digits, packed 3-per-unit).
AI Analysis
Technical Summary
jq, a command-line JSON processor, suffers from an integer overflow in the decNumberFromString function when handling extremely large number literals (INT_MAX-1 digits). The D2U() macro overflows signed-int arithmetic, resulting in a wrapped negative value that bypasses heap allocation size checks. Consequently, the function uses a small stack buffer (30 bytes) but writes approximately 1.4 GiB of attacker-controlled data at a large negative offset relative to the stack frame. This can cause a significant stack-based buffer overflow and potential denial of service. The vulnerability affects jq versions up to and including 1.8.1.
Potential Impact
The vulnerability can lead to a denial of service due to a large stack buffer overflow with attacker-controlled data. There is no indication from the provided data that confidentiality or integrity are impacted. No known exploits are reported in the wild. The CVSS vector indicates local attack vector with low complexity and no privileges or user interaction required, but only availability impact is noted.
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 JSON inputs with jq versions 1.8.1 and earlier. Monitor vendor channels for updates regarding patches or workarounds.
CVE-2026-43894: CWE-190: Integer Overflow or Wraparound in jqlang jq
Description
jq is a command-line JSON processor. In 1.8.1 and earlier, when decNumberFromString is given a number literal of INT_MAX-1 (2147483646) digits, the D2U() macro overflows during signed-int arithmetic. The wrapped negative value bypasses the heap-allocation size check, causes the function to use a 30-byte stack buffer, and then writes ≈715 million 16-bit units (≈1.4 GiB) at an offset 1.43 GiB below the stack frame. The written content is fully attacker-controlled (the parsed decimal digits, packed 3-per-unit).
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
jq, a command-line JSON processor, suffers from an integer overflow in the decNumberFromString function when handling extremely large number literals (INT_MAX-1 digits). The D2U() macro overflows signed-int arithmetic, resulting in a wrapped negative value that bypasses heap allocation size checks. Consequently, the function uses a small stack buffer (30 bytes) but writes approximately 1.4 GiB of attacker-controlled data at a large negative offset relative to the stack frame. This can cause a significant stack-based buffer overflow and potential denial of service. The vulnerability affects jq versions up to and including 1.8.1.
Potential Impact
The vulnerability can lead to a denial of service due to a large stack buffer overflow with attacker-controlled data. There is no indication from the provided data that confidentiality or integrity are impacted. No known exploits are reported in the wild. The CVSS vector indicates local attack vector with low complexity and no privileges or user interaction required, but only availability impact is noted.
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 JSON inputs with jq versions 1.8.1 and earlier. Monitor vendor channels for updates regarding patches or workarounds.
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: 6a021aa7cbff5d861043052b
Added to database: 5/11/2026, 6:06:31 PM
Last enriched: 5/11/2026, 6:23:38 PM
Last updated: 5/12/2026, 3:39:11 AM
Views: 4
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.