Skip to main content
Public proof of conceptFix available

CVE-2024-53427

A public proof of concept exists; no exploitation attested.

  • Published2025-02-26
  • WeaknessCWE-843

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2025-02-2616:15CVE publishedNVD

Versions per branch

NVD
Jqlang jq
BranchAffectedFixed in
1.7≤ 1.7.1no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As mitre, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • jqlang jqother versions: unknown
    Affected
    • ≤ 1.7.1no fix statedcustom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-03-28

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • jqWolfiall versions · fixed in 1.7.1-r4
  • jqUbuntu:24.04:LTSall versions · fixed in 1.7.1-3ubuntu0.24.04.1
  • jqUbuntu:22.04:LTSall versions · fixed in 1.6-2.1ubuntu3.1
  • jqSUSE:Linux Micro 6.1all versions · fixed in 1.7.1-slfo.1.1_2.1
  • jqSUSE:Linux Micro 6.0all versions · fixed in 1.7.1-1.1
  • jqSUSE:Linux Enterprise Server for SAP Applications 15 SP6all versions · fixed in 1.7.1-150000.3.25.1
  • jqSUSE:Linux Enterprise Server for SAP Applications 15 SP5all versions · fixed in 1.7.1-150000.3.25.1
  • jqSUSE:Linux Enterprise Server for SAP Applications 15 SP4all versions · fixed in 1.7.1-150000.3.25.1

23 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-53427 Red Hat Product Security1 known affected

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

    jq.src as a component of Red Hat Enterprise Linux 10

Full record on NVD

Fix

  1. No fix available, says the vendor Red Hat Product Security CVE-2024-53427 · 1 productFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
2025-02-26
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-8mxc-vqrq-gcm8

Frequently asked questions

What is CVE-2024-53427?

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

Is CVE-2024-53427 actively exploited?

A proof-of-concept exploit exists for CVE-2024-53427, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-53427?

CVE-2024-53427 has a CVSS v3 base score of 8.1 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.

Running jq? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record