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)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jq (PTS)bookworm, bullseye1.6-2.1vulnerable
sid, trixie1.7.1-3vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jqsource(unstable)(unfixed)

Notes

[bullseye] - jq <postponed> (Minor issue, wait until it's fixed upstream)
https://github.com/jqlang/jq/issues/3196

Search for package or bug name: Reporting problems