Skip to content
OpenAdvisories
High · 8.1 CVE-2024-53427 EUVD-2025-5310GHSA-8mxc-vqrq-gcm8

decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which has a resultant stack…

Published Feb 26, 2025 · Updated Mar 28, 2025 · Assigned by mitre

Description

decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which has a resultant stack-based buffer overflow and out-of-bounds write, as demonstrated by use of --slurp with subtraction, such as a filter of .-. when the input has a certain form of digit string with NaN (e.g., "1 NaN123" immediately followed by many more digits).

Affected products

VendorProductAffectedFixed
jqlang jq ≤ 1.7.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 jq 1.7.1-5 —
Debian 13 jq 1.7.1-6+deb13u3 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS jq 1.7.1-3ubuntu0.24.04.1 USN-7657-1
Ubuntu 22.04 LTS jq 1.6-2.1ubuntu3.1 USN-7657-1
ReleasePackageFixed inAdvisory
SLES 15 SP7 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLES 15 SP6 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLES 15 SP5 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLES 15 SP4 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLES for SAP 15 SP5 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLES for SAP 15 SP4 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLE Micro 6.1 jq 1.7.1-slfo.1.1_2.1 SUSE-SU-2025:20591-1
SLE Micro 6.0 jq 1.7.1-1.1 SUSE-SU-2026:23873-1
SLE Micro 5.5 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLE Micro 5.4 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLE Micro 5.3 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLE HPC 15 SP5 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
SLE HPC 15 SP4 jq 1.7.1-150000.3.25.1 SUSE-SU-2026:4275-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed jq 1.7.1-3.1 openSUSE-SU-2025:15161-1
ReleasePackageFixed inAdvisory
Alpine v3.24 jq 1.8.0-r0 —
Alpine v3.23 jq 1.8.0-r0 —
Alpine v3.22 jq 1.8.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 jq +1 1.7.1-49.amzn2023.0.2 ALAS2023-2025-919

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 jq 1.7.1-2 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jq 1.7.1-r4 —

Advisories 6

References