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…
EPSS 0.1%top 96%

CVE-2026-41257: CWE-190: Integer Overflow or Wraparound in jqlang jq

0
Medium
VulnerabilityCVE-2026-41257cvecve-2026-41257cwe-190cwe-787
Published: 05/11/2026 (05/11/2026, 17:14:32 UTC)
Source: CVE Database V5
Vendor/Project: jqlang
Product: 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

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

Affected software

GitHub Actionsmore threats →ai
jqlang/jq
pkg:github/jqlang/jq
Affected versions
<=1.8.1

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

AILast updated: 06/03/2026, 21:14:00 UTC

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.

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
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 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