PT-2026-47092 · Jq · Jq
CVSS v4.0
6.8
Medium
| Vector | AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
jq versions prior to 1.8.2
Description
Comparing two deeply nested arrays using the == operator can lead to a denial of service through stack exhaustion caused by uncontrolled recursion. The issue occurs within the recursive structural comparison code, specifically involving the
jvp array equal() and jv equal() functions in src/jv.c. Additionally, a sort comparator path through the jv cmp() function in src/jv aux.c can also cause a stack overflow at a greater nesting depth due to a missing recursion guard. This affects users who perform comparisons on attacker-controlled deeply nested JSON values or embed the software in environments where untrusted data reaches the == comparison path.Recommendations
Update to version 1.8.2.
Exploit
Fix
DoS
Uncontrolled Recursion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Jq