CVE-2024-53427
Jqlang Jq vulnerability
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
Jq. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Jqlang Jq runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/jqlang/jq/issues/3196 · Exploit
- github.com/jqlang/jq/issues/3296 · Vendor Advisory
- github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22 · Vendor Advisory
- gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92 · Third Party Advisory
- github.com/jqlang/jq/blob/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297/src/decNumber/decNumber
- nvd.nist.gov/vuln/detail/CVE-2024-53427
- cve.org/CVERecord?id=CVE-2024-53427
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.