Alpine: multiple jq packages: security update to 1.8.2-r0

high Tenable Cloud Security Plugin ID 482951

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- jq is a command-line JSON processor. In commits before 2f09060afab23fe9390cce7cb860b10416e1bf5f, the
jv_parse_sized() API in libjq accepts a counted buffer with an explicit length parameter, but its error-
handling path formats the input buffer using %s in jv_string_fmt(), which reads until a NUL terminator is
found rather than respecting the caller-supplied length. This means that when malformed JSON is passed in
a non-NUL-terminated buffer, the error construction logic performs an out-of-bounds read past the end of
the buffer. The vulnerability is reachable by any libjq consumer calling jv_parse_sized() with untrusted
input, and depending on memory layout, can result in memory disclosure or process termination. The issue
has been patched in commit 2f09060afab23fe9390cce7cb860b10416e1bf5f. (CVE-2026-39979)

- jq is a command-line JSON processor. In 1.8.1 and earlier, the jq bytecode VM's data stack tracks its
allocation size in a signed int. When the stack grows beyond ≈1 GiB (via deeply nested generator forks),
the doubling arithmetic overflows. The wrapped value is passed to realloc and then used for a memmove with
attacker-influenced offsets. (CVE-2026-41257)

- jq is a command-line JSON processor. In version 1.8.0 a heap use after free vulnerability exists within
the function f_strflocaltime of /src/builtin.c. This issue has been patched in commit 499c91b, no known
fix version exists at time of publication. (CVE-2025-49014)

- jq is a command-line JSON processor. In versions up to and including 1.7.1, a heap-buffer-overflow is
present in function `jv_string_vfmt` in the jq_fuzz_execute harness from oss-fuzz. This crash happens on
file jv.c, line 1456 `void* p = malloc(sz);`. As of time of publication, no patched versions are
available. (CVE-2025-48060)

- jq is a command-line JSON processor. In 1.8.1 and earlier, unbounded recursion in
jv_object_merge_recursive() allows a crafted jq program to crash the process with a segfault. The function
is reachable through the * operator when both operands are objects. (CVE-2026-43896)

Solution

Update the jq library and its related packages to version 1.8.2-r0 or later.

See Also

https://security.alpinelinux.org/vuln/CVE-2024-23337

https://security.alpinelinux.org/vuln/CVE-2024-53427

https://security.alpinelinux.org/vuln/CVE-2025-48060

https://security.alpinelinux.org/vuln/CVE-2025-49014

https://security.alpinelinux.org/vuln/CVE-2026-32316

https://security.alpinelinux.org/vuln/CVE-2026-33947

https://security.alpinelinux.org/vuln/CVE-2026-33948

https://security.alpinelinux.org/vuln/CVE-2026-39956

https://security.alpinelinux.org/vuln/CVE-2026-39979

https://security.alpinelinux.org/vuln/CVE-2026-40164

https://security.alpinelinux.org/vuln/CVE-2026-40612

https://security.alpinelinux.org/vuln/CVE-2026-41256

https://security.alpinelinux.org/vuln/CVE-2026-41257

https://security.alpinelinux.org/vuln/CVE-2026-43894

https://security.alpinelinux.org/vuln/CVE-2026-43895

https://security.alpinelinux.org/vuln/CVE-2026-43896

https://security.alpinelinux.org/vuln/CVE-2026-44777

https://security.alpinelinux.org/vuln/CVE-2026-47770

https://security.alpinelinux.org/vuln/CVE-2026-49839

https://security.alpinelinux.org/vuln/CVE-2026-54679

Plugin Details

Severity: High

ID: 482951

Version: Revision 1.1

Type: Local

Published: 11/26/2026

Updated: 11/26/2026

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: High

Score: 7.7

Percentile: 98.96

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:P

CVSS Score Source: CVE-2026-39979

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 7.7

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS Score Source: CVE-2025-48060

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 2/26/2025

Reference Information

CVE: CVE-2024-23337, CVE-2024-53427, CVE-2025-48060, CVE-2025-49014, CVE-2026-32316, CVE-2026-33947, CVE-2026-33948, CVE-2026-39956, CVE-2026-39979, CVE-2026-40164, CVE-2026-40612, CVE-2026-41256, CVE-2026-41257, CVE-2026-43894, CVE-2026-43895, CVE-2026-43896, CVE-2026-44777, CVE-2026-47770, CVE-2026-49839, CVE-2026-54679

IAVB: 2025-B-0188, 2026-B-0180