CVE-2024-53427

NameCVE-2024-53427
DescriptiondecNumberCopy 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).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1102679

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jq (PTS)bookworm, bullseye1.6-2.1fixed
trixie1.7.1-6+deb13u1fixed
sid1.8.1-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jqsourcebullseye(not affected)
jqsourcebookworm(not affected)
jqsource(unstable)1.7.1-51102679

Notes

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

Search for package or bug name: Reporting problems