CVEfocus › CVE database › CVE-2024-53427

CVE-2024-53427

CVSS 8.1 HighEPSS 0.4% (higher than 25% of CVEs)Published 2025-02-26Updated 2025-03-28Assigner: mitre

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

CWE-843

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
2Fix pending
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04jqNot affected
vulnerable_code_not_present
Ubuntu 25.10jqNot affected
vulnerable_code_not_present
Ubuntu 24.04jqFixed1.7.1-3ubuntu0.24.04.1UBUNTU-CVE-2024-53427
Ubuntu 22.04jqNot affected
vulnerable_code_not_present
Debian 14jqFixed1.7.1-5DEBIAN-CVE-2024-53427
Debian 13jqFixed1.7.1-6+deb13u3DEBIAN-CVE-2024-53427
Red Hat Enterprise Linux 10jqFix pending
Fix deferred
Red Hat Enterprise Linux 10jq-develFix pending
Fix deferred
Red Hat Enterprise Linux 9jqNot affected
Red Hat Enterprise Linux 9jq-develNot affected
Red Hat Enterprise Linux 8jqNot affected
Red Hat Enterprise Linux 8jq-develNot affected
Alpine Linux 3.24jqFixed1.8.0-r0ALPINE-CVE-2024-53427
Alpine Linux 3.23jqFixed1.8.0-r0ALPINE-CVE-2024-53427
Alpine Linux 3.22jqFixed1.8.0-r0ALPINE-CVE-2024-53427
Alpine Linux 3.21jqFixed1.8.2-r0ALPINE-CVE-2024-53427

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.