CVE-2026-32316

8.2

Jqlang · jq

An integer overflow in the jvp_string_append and jvp_string_copy_replace_bad functions of jq allows for heap-based buffer overflows, potentially leading to process crashes or remote code execution.

Executive summary

An unauthenticated integer overflow vulnerability in the jq JSON processor poses a significant risk of heap corruption, which may lead to process crashes or potential arbitrary code execution.

Vulnerability

The vulnerability originates from a lack of bounds checking on string concatenations, which triggers an integer overflow when combined string lengths exceed 2^31 bytes. This results in an undersized heap buffer allocation and subsequent memory corruption via heap-based buffer overflow, which is reachable by any unauthenticated attacker providing a malicious jq query.

Business impact

The flaw carries a CVSS score of 8.2, reflecting its high impact on system availability and potential for integrity compromise. Because jq is frequently used to process untrusted data in automated pipelines and web services, a successful exploit could lead to service disruption or unauthorized control of the underlying host environment.

Remediation

Immediate Action: Update the jq software to the version incorporating commit e47e56d226519635768e6aab2f38f0ab037c09e5 or the next available stable release.

Proactive Monitoring: Monitor system and application logs for abnormal process crashes or repeated attempts to pass excessively large JSON strings to the jq binary.

Compensating Controls: Implement strict input validation or size limits on JSON payloads before they are passed to the jq processor to prevent the triggering of the overflow condition.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Given the prevalence of jq in modern infrastructure and the potential for memory corruption, this vulnerability represents a high-priority risk. Administrators must prioritize updating their installations to ensure the necessary integer bounds checks are applied, effectively neutralizing the heap overflow vector.

Sources