Skip to content
Fencer Vulns
high 8.1

CVE-2024-53427 json

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 2025-02-26 20 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-5310

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 33%
public exploits
0
none known

Summary

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).

Patch / fix

  • jqlang jq 1.8.0
  • jq Debian 13 1.7.1-6+deb13u3
  • jq Debian 14 1.7.1-5

debian advisories DEBIAN-CVE-2024-53427

  • jq Ubuntu 24.04 LTS 1.7.1-3ubuntu0.24.04.1

ubuntu advisories UBUNTU-CVE-2024-53427

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • jq SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +11 more 1.7.1-150000.3.25.1
  • jq Linux Micro 6.0 1.7.1-1.1
  • jq Linux Micro 6.1 1.7.1-slfo.1.1_2.1

suse advisories SUSE-SU-2026:4275-1SUSE-SU-2026:23873-1SUSE-SU-2025:20591-1

  • jq openSUSE Tumbleweed 1.7.1-3.1

opensuse advisories openSUSE-SU-2025:15161-1

  • jq Alpine 3.24, Alpine 3.23, Alpine 3.22 1.8.0-r0

alpine advisories ALPINE-CVE-2024-53427

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • jq Azure Linux 3.0 1.7.1-2

azure linux advisories AZL-57376

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-53427 updated cvss 5.3

jq: stack-buffer-overflow in the decNumberCopy function in decNumber.c

  • Red Hat Enterprise Linux 10 jq
    affected: no fix available “Fix deferred”
  • Red Hat Ceph Storage 4 jq Red Hat Enterprise Linux 8 jq Red Hat Enterprise Linux 9 jq Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
20 mo ago

Exploit prediction

0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/jqlang/jq/issues/3196 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 8.1 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected products

  • jqlang jq

Classification

Weakness
  • CWE-843 Access of Resource Using Incompatible Type

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.