Buffer Overflow in jq Command-Line JSON Processor
CVE-2026-41257
6.4MEDIUM
What is CVE-2026-41257?
The jq command-line JSON processor has a vulnerability in its bytecode VM related to how the data stack tracks allocation size. In versions 1.8.1 and earlier, an integer overflow can occur when the stack exceeds roughly 1 GiB due to deeply nested generator forks. This can lead to the wrapped value being incorrectly passed to realloc, which subsequently affects a memmove operation using offsets influenced by an attacker. It poses a risk to data integrity and system security.
Affected Version(s)
jq <= 1.8.1
