{"id":"CVE-2024-53427","state":"PUBLISHED","title":"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 ","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).","publishedAt":"2025-02-26T00:00:00.000Z","updatedAt":"2025-03-28T16:39:39.470Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"mitre"},"assigner":"mitre","products":["jqlang jq"],"affected":[{"vendor":"jqlang","product":"jq","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.7.1","versionType":"custom"}]}],"references":["https://github.com/jqlang/jq/issues/3196","https://gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92","https://github.com/jqlang/jq/blob/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297/src/decNumber/decNumber.c#L3375","https://github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22","https://github.com/jqlang/jq/issues/3296"],"weaknesses":["CWE-843"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/53xxx/CVE-2024-53427.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-53427","state":"PUBLISHED","datePublished":"2025-02-26T00:00:00.000Z","dateUpdated":"2025-03-28T16:39:39.470Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2024-11-20T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"jqlang","product":"jq","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.7.1","versionType":"custom"}]}],"references":[{"url":"https://github.com/jqlang/jq/issues/3196"},{"url":"https://gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92"},{"url":"https://github.com/jqlang/jq/blob/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297/src/decNumber/decNumber.c#L3375"},{"url":"https://github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22"},{"url":"https://github.com/jqlang/jq/issues/3296"}],"metrics":[{"cvssV3_1":{"version":"3.1","baseScore":8.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-843","description":"CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2025-03-28T16:39:39.470Z"},"x_generator":{"engine":"enrichogram 0.0.1"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*","versionEndIncluding":"1.7.1"}]}]}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-05T15:33:30.589656Z","id":"CVE-2024-53427","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-05T15:33:51.636Z"}}]}}}