CVE-2026-41257: CWE-190: Integer Overflow or Wraparound in jqlang jq
CVE-2026-41257 is a medium severity integer overflow vulnerability in jq, a command-line JSON processor. Versions 1.8.1 and earlier have a flaw in the jq bytecode VM's data stack allocation size tracking, which uses a signed integer. When the stack grows beyond approximately 1 GiB due to deeply nested generator forks, the doubling arithmetic overflows, causing the wrapped value to be passed to realloc and used in a memmove with attacker-controlled offsets. This can lead to memory corruption. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.
AI Analysis
Technical Summary
jq versions 1.8.1 and earlier contain an integer overflow vulnerability in the bytecode VM's data stack allocation size tracking. The stack size is tracked using a signed int, and when it grows beyond roughly 1 GiB, the doubling operation overflows, resulting in a wrapped value being passed to realloc. This wrapped value is then used as an offset in a memmove operation, which can be influenced by an attacker through deeply nested generator forks, potentially causing memory corruption.
Potential Impact
The integer overflow can cause memory corruption within the jq process, which may lead to crashes or potentially exploitable conditions. The vulnerability requires local access with the ability to supply deeply nested generator forks to trigger the overflow. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing JSON inputs that cause deeply nested generator forks exceeding approximately 1 GiB of stack growth. Monitor vendor channels for updates and apply official patches once released.
CVE-2026-41257: CWE-190: Integer Overflow or Wraparound in jqlang jq
Description
CVE-2026-41257 is a medium severity integer overflow vulnerability in jq, a command-line JSON processor. Versions 1.8.1 and earlier have a flaw in the jq bytecode VM's data stack allocation size tracking, which uses a signed integer. When the stack grows beyond approximately 1 GiB due to deeply nested generator forks, the doubling arithmetic overflows, causing the wrapped value to be passed to realloc and used in a memmove with attacker-controlled offsets. This can lead to memory corruption. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.
CVSS v4.0
Score 6.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
jq versions 1.8.1 and earlier contain an integer overflow vulnerability in the bytecode VM's data stack allocation size tracking. The stack size is tracked using a signed int, and when it grows beyond roughly 1 GiB, the doubling operation overflows, resulting in a wrapped value being passed to realloc. This wrapped value is then used as an offset in a memmove operation, which can be influenced by an attacker through deeply nested generator forks, potentially causing memory corruption.
Potential Impact
The integer overflow can cause memory corruption within the jq process, which may lead to crashes or potentially exploitable conditions. The vulnerability requires local access with the ability to supply deeply nested generator forks to trigger the overflow. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing JSON inputs that cause deeply nested generator forks exceeding approximately 1 GiB of stack growth. Monitor vendor channels for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-18T14:01:46.801Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a021aa3cbff5d8610430382
Added to database: 05/11/2026, 18:06:27 UTC
Last enriched: 06/03/2026, 21:14:00 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 78
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.