Use-after-free in jq - #VU126893
Published: April 23, 2026
jq
Detailed vulnerability description
The vulnerability allows a local user to execute arbitrary code.
The vulnerability exists due to use-after-free in the args2obj() function in src/execute.c when processing array arguments in the public jq_compile_args() API. A local user can supply a crafted array with 2 or more named argument entries to execute arbitrary code.
The standard jq CLI binary is not affected because it passes an object rather than an array to args2obj().