Name | CVE-2024-53427 |
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). |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1102679 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
jq (PTS) | bookworm, bullseye | 1.6-2.1 | fixed |
trixie | 1.7.1-6+deb13u1 | fixed | |
sid | 1.8.1-3 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
jq | source | bullseye | (not affected) | |||
jq | source | bookworm | (not affected) | |||
jq | source | (unstable) | 1.7.1-5 | 1102679 |
[bookworm] - jq <not-affected> (Vulnerable code introduced later)
[bullseye] - jq <not-affected> (Vulnerable code introduced later)
https://github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22
https://github.com/jqlang/jq/issues/3196
Fixed by: https://github.com/jqlang/jq/commit/b86ff49f46a4a37e5a8e75a140cb5fd6e1331384 (jq-1.8.0)
Fixed by: https://github.com/jqlang/jq/commit/a09a4dfd55e6c24d04b35062ccfe4509748b1dd3 (jq-1.8.0)
Introduced by: https://github.com/jqlang/jq/commit/cf4b48c7ba30cb30e116b523cff036ea481459f6 (jq-1.7rc1)