CVE-2024-53427
jq v1.7.1 contains a stack-buffer-overflow in the decNumberCopy function within decNumber.c.
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).
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.1
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).
- Record
CVE-2024-53427- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-843
- Updated
- 2026-11-02
EUVDEUVD-2025-5310
8.1
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).
- Record
EUVD-2025-5310- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8mxc-vqrq-gcm8
8.1
jq v1.7.1 contains a stack-buffer-overflow in the decNumberCopy function within decNumber.c.
jq v1.7.1 contains a stack-buffer-overflow in the decNumberCopy function within decNumber.c.
- Record
GHSA-8mxc-vqrq-gcm8- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-843
- Updated
- 2026-11-02
NVD
8.1
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).
- Record
CVE-2024-53427- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-843
- Updated
- 2026-11-02
OSVALPINE-CVE-2024-53427
8.1
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).
- Record
ALPINE-CVE-2024-53427- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2024-53427
8.1
- Record
BELL-CVE-2024-53427- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
Show 10 moreShow less
OSV
8.1
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).
- Record
CVE-2024-53427- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-843
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-53427
8.1
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).
- Record
DEBIAN-CVE-2024-53427- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-53427
8.1
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).
- Record
UBUNTU-CVE-2024-53427- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-57376 No score
CVE-2024-53427 affecting package jq for versions less than 1.7.1-2
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).
- Record
AZL-57376- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15161-1 No score
jq-1.7.1-3.1 on GA media
These are all security issues fixed in the jq-1.7.1-3.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15161-1- Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-12-CVE-2024-53427 No score
CVE-2024-53427 in rootio-jq - Patched by Root
Root has patched CVE-2024-53427 in the rootio-jq package for Root:Debian:12. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-12-CVE-2024-53427- Updated
- 2026-11-02
OSVSUSE-SU-2025:20591-1 No score
Security update for jq
This update for jq fixes the following issues:
- CVE-2025-48060: Fixed stack-buffer-overflow in jq_fuzz_execute (jv_string_vfmt) (bsc#1244116)
- CVE-2024-23337: Fixed signed integer overflow in jv.c:jvp_array_write (bsc#1243450)
- CVE-2024-53427: Fixed stack-buffer-overflow in the decNumberCopy function in decNumber.c (bsc#1238078)
- Record
SUSE-SU-2025:20591-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:23873-1 No score
Security update for jq
This update for jq fixes the following issues:
Security issues fixed:
- CVE-2015-8863: heap buffer overflow in tokenadd() function (bsc#976992).
- CVE-2023-50246: improper memory handling can lead to a heap buffer overflow in
decNumberToString(bsc#1218034). - CVE-2023-50268: stack-based buffer overflow in builds using decNumber (bsc#1218038).
- CVE-2024-53427: stack-buffer-overflow in the decNumberCopy function in decNumber.c (bsc#1238078).
- CVE-2025-9403: reachable assertion in run_jq_tests() (bsc#1248600).
- CVE-2026-32316: denial of Service or potential arbitrary code execution due to integer overflow and heap-based buffer overflow (bsc#1262044).
- CVE-2026-33948: CLI input parsing allows validation bypass via embedded NUL bytes (bsc#1262043).
- CVE-2026-40164: predictable hash collisions can lead to a denial of service (bsc#1262072).
- CVE-2026-40612: jv_contains recurses into nested arrays/objects with no depth limit and can cause a stack overflow (bsc#1265060).
- CVE-2026-41256: embedded NUL truncates top-level jq programs loaded with -f and can lead to execution of unintended programs (bsc#1265061).
- CVE-2026-41257: integer overflow in
stack_reallocatecan lead to memory corruption and DoS (bsc#1265062). - CVE-2026-43894: signed integer overflow in
decNumbercan lead to out-of-bounds memory write (bsc#1265070). - CVE-2026-43895: embedded NUL bytes in import paths can lead to policy bypass and sensitive information disclosure (bsc#1265071).
- CVE-2026-43896: unbounded recursion in
jv_object_merge_recursive()can lead to C stack exhaustion and a process crash (bsc#1265075). - CVE-2026-44777: uncontrolled recursion in ordinary module loader when two valid modules
includeeach other can lead to stack exhaustion and process crash (bsc#1265076). - CVE-2026-47770: stack overflow in deep structural equality (bsc#1269221).
- CVE-2026-49839:
--rawfileinvalid-state reuse afterString too longcan lead to a heap buffer overflow (bsc#1269220). - CVE-2026-54679: integer overflow in
jvp_string_appendcan lead to a buffer overrun on 32-bit systems (bsc#1269390).
Changes for jq:
Update to version 1.7.1:
- Make the default background color more suitable for bright backgrounds.
- Allow passing the inline jq script after --.
- Fix possible uninitialised value dereference if jq_init() fails
- Simplify paths/0 and paths/1.
- Reject U+001F in string literals.
- Remove unused nref accumulator in block_bind_library.
- Remove a bunch of unused variables, and useless assignments.
- main.c: Remove unused EXIT_STATUS_EXACT option.
- Actually use the number correctly casted from double to int as index.
- src/builtin.c: remove unnecessary jv_copy-s in type_error/type_error2.
- Remove undefined behavior caught by LLVM 10 UBSAN.
- Convert decnum to binary64 (double) instead of decimal64. This makes jq behave like the JSON specification suggests and more similar to other languages.
- Fix memory leaks on invalid input for ltrimstr/1 and rtrimstr/1.
- Fix memory leak on failed get for setpath/2.
- Fix nan from json parsing also for nans with payload that start with 'n'.
- Allow carriage return characters in comments.
- Generate links in the man page.
- Add extern C for C++.
- Make object key color configurable using JQ_COLORS environment variable.
- Change the default color of null to Bright Black.
- Respect NO_COLOR environment variable to disable color output.
- Improved --help output. Now mentions all options and nicer order.
- Fix multiple issues of exit code using --exit-code/-e option.
- Add --raw-output0 for NUL (zero byte) separated output.
- Fix assert crash and validate JSON for --jsonarg.
- Remove deprecated --argfile option.
- Use decimal number literals to preserve precision. Comparison operations respects precision but arithmetic operations might truncate.
- Adds new builtin pick(stream) to emit a projection of the input object or array.
- Adds new builtin…
- Record
SUSE-SU-2026:23873-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:4275-1 No score
Security update for jq
This update for jq fixes the following issues:
Security issues fixed:
- CVE-2015-8863: heap buffer overflow in tokenadd() function (bsc#976992).
- CVE-2023-50246: improper memory handling can lead to a heap buffer overflow in
decNumberToString(bsc#1218034). - CVE-2023-50268: stack-based buffer overflow in builds using decNumber (bsc#1218038).
- CVE-2024-53427: stack-buffer-overflow in the decNumberCopy function in decNumber.c (bsc#1238078).
- CVE-2025-9403: reachable assertion in run_jq_tests() (bsc#1248600).
- CVE-2026-33948: CLI input parsing allows validation bypass via embedded NUL bytes (bsc#1262043).
- CVE-2026-40164: predictable hash collisions can lead to a denial of service (bsc#1262072).
- CVE-2026-40612: jv_contains recurses into nested arrays/objects with no depth limit and can cause a stack overflow (bsc#1265060).
- CVE-2026-41256: embedded NUL truncates top-level jq programs loaded with -f and can lead to execution of unintended programs (bsc#1265061).
- CVE-2026-41257: integer overflow in
stack_reallocatecan lead to memory corruption and DoS (bsc#1265062). - CVE-2026-43894: signed integer overflow in
decNumbercan lead to out-of-bounds memory write (bsc#1265070). - CVE-2026-43895: embedded NUL bytes in import paths can lead to policy bypass and sensitive information disclosure (bsc#1265071).
- CVE-2026-43896: unbounded recursion in
jv_object_merge_recursive()can lead to C stack exhaustion and a process crash (bsc#1265075). - CVE-2026-44777: uncontrolled recursion in ordinary module loader when two valid modules
includeeach other can lead to stack exhaustion and process crash (bsc#1265076). - CVE-2026-47770: stack overflow in deep structural equality (bsc#1269221).
- CVE-2026-49839:
--rawfileinvalid-state reuse afterString too longcan lead to a heap buffer overflow (bsc#1269220). - CVE-2026-54679: integer overflow in
jvp_string_appendcan lead to a buffer overrun on 32-bit systems (bsc#1269390).
Changes for jq:
Update to version 1.7.1:
- Make the default background color more suitable for bright backgrounds.
- Allow passing the inline jq script after --.
- Fix possible uninitialised value dereference if jq_init() fails
- Simplify paths/0 and paths/1.
- Reject U+001F in string literals.
- Remove unused nref accumulator in block_bind_library.
- Remove a bunch of unused variables, and useless assignments.
- main.c: Remove unused EXIT_STATUS_EXACT option.
- Actually use the number correctly casted from double to int as index.
- src/builtin.c: remove unnecessary jv_copy-s in type_error/type_error2.
- Remove undefined behavior caught by LLVM 10 UBSAN.
- Convert decnum to binary64 (double) instead of decimal64. This makes jq behave like the JSON specification suggests and more similar to other languages.
- Fix memory leaks on invalid input for ltrimstr/1 and rtrimstr/1.
- Fix memory leak on failed get for setpath/2.
- Fix nan from json parsing also for nans with payload that start with 'n'.
- Allow carriage return characters in comments.
- Generate links in the man page.
- Add extern C for C++.
- Make object key color configurable using JQ_COLORS environment variable.
- Change the default color of null to Bright Black.
- Respect NO_COLOR environment variable to disable color output.
- Improved --help output. Now mentions all options and nicer order.
- Fix multiple issues of exit code using --exit-code/-e option.
- Add --raw-output0 for NUL (zero byte) separated output.
- Fix assert crash and validate JSON for --jsonarg.
- Remove deprecated --argfile option.
- Use decimal number literals to preserve precision. Comparison operations respects precision but arithmetic operations might truncate.
- Adds new builtin pick(stream) to emit a projection of the input object or array.
- Adds new builtin debug(msgs) that works like debug but applies a filter on the input before writing to stderr.
- Adds new builtin scan($re; $flags). Was documented…
- Record
SUSE-SU-2026:4275-1- Updated
- 2026-11-02
OSVUSN-7657-1 No score
jq vulnerabilities
It was discovered that jq incorrectly handled certain values when parsing JSON data. A remote attacker could possibly use this issue to cause jq to crash, resulting in a denial of service. (CVE-2024-23337)
It was discovered that jq incorrectly handled NaN values when parsing JSON data. A remote attacker could possibly use this issue to cause jq to crash, resulting in a denial of service. This issue only affected Ubuntu 24.04 LTS, and Ubuntu 25.04. (CVE-2024-53427)
It was discovered that jq incorrectly handled certain values when parsing JSON data. A remote attacker could use this issue to cause jq to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-48060)
- Record
USN-7657-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
jqAlpine:v3.22 |
before 1.8.0-r0 | 1.8.0-r0 |
jqAlpine:v3.23 |
before 1.8.0-r0 | 1.8.0-r0 |
jqAlpine:v3.24 |
before 1.8.0-r0 | 1.8.0-r0 |
jqAzure Linux:3 |
before 1.7.1-2 | 1.7.1-2 |
jqAlpaquita:25 |
1.7.1-r0 up to 1.8.0-r0 | 1.8.0-r0 |
jqAlpaquita:stream |
1.7-r0 up to 1.8.0-r0 | 1.8.0-r0 |
jqDebian:13 |
before 1.7.1-6+deb13u3, plus listed versions 1.7.1-6+deb13u11.7.1-6+deb13u2 |
1.7.1-6+deb13u3 |
jqDebian:14 |
before 1.7.1-5 | 1.7.1-5 |
jqSUSE:Linux Micro 6.1 |
before 1.7.1-slfo.1.1_2.1 | 1.7.1-slfo.1.1_2.1 |
jqSUSE:Linux Micro 6.0 |
before 1.7.1-1.1 | 1.7.1-1.1 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
jqSUSE:Linux Enterprise Micro 5.3 |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Micro 5.4 |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Micro 5.5 |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Module for Basesystem 15 SP7 |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Server 15 SP4-LTSS |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Server 15 SP5-LTSS |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Server 15 SP6-LTSS |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Server for SAP Applications 15 SP4 |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Server for SAP Applications 15 SP5 |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqSUSE:Linux Enterprise Server for SAP Applications 15 SP6 |
before 1.7.1-150000.3.25.1 | 1.7.1-150000.3.25.1 |
jqUbuntu:24.04:LTS |
before 1.7.1-3ubuntu0.24.04.1, plus listed versions 1.6-31.7-11.7.1-21.7.1-31.7.1-3build1 |
1.7.1-3ubuntu0.24.04.1 |
jqUbuntu:22.04:LTS |
before 1.6-2.1ubuntu3.1, plus listed versions 1.6-2.1ubuntu21.6-2.1ubuntu3 |
1.6-2.1ubuntu3.1 |
jqopenSUSE:Tumbleweed |
before 1.7.1-3.1 | 1.7.1-3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-53427 is a high vulnerability (CVSS 8.1) in Jqlang Jq, published February 26, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.39%, the 33rd percentile. Fixed in jq 1.8.0-r0.
References
github.com/jqlang/jq/issues/3196
gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92
github.com/jqlang/jq/blob/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297/src/decNumber/decNumber.c
github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22
github.com/jqlang/jq/issues/3296
nvd.nist.gov/vuln/detail/CVE-2024-53427
Show 55 moreShow less
github.com/advisories/GHSA-8mxc-vqrq-gcm8
security.alpinelinux.org/vuln/CVE-2024-53427
docs.bell-sw.com/security/cves/CVE-2024-53427
github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53427.json
security-tracker.debian.org/tracker/CVE-2024-53427
suse.com/support/update/announcement/2025/suse-su-202520591-1
bugzilla.suse.com/1238078
bugzilla.suse.com/1243450
bugzilla.suse.com/1244116
suse.com/security/cve/CVE-2024-23337
suse.com/security/cve/CVE-2024-53427
suse.com/security/cve/CVE-2025-48060
suse.com/support/update/announcement/2026/suse-su-202623873-1
bugzilla.suse.com/1215737
bugzilla.suse.com/1218034
bugzilla.suse.com/1218038
bugzilla.suse.com/1248600
bugzilla.suse.com/1262043
bugzilla.suse.com/1262044
bugzilla.suse.com/1262072
bugzilla.suse.com/1265060
bugzilla.suse.com/1265061
bugzilla.suse.com/1265062
bugzilla.suse.com/1265070
bugzilla.suse.com/1265071
bugzilla.suse.com/1265075
bugzilla.suse.com/1265076
bugzilla.suse.com/1269220
bugzilla.suse.com/1269221
bugzilla.suse.com/1269390
bugzilla.suse.com/976992
suse.com/security/cve/CVE-2015-8863
suse.com/security/cve/CVE-2023-50246
suse.com/security/cve/CVE-2023-50268
suse.com/security/cve/CVE-2025-9403
suse.com/security/cve/CVE-2026-32316
suse.com/security/cve/CVE-2026-33948
suse.com/security/cve/CVE-2026-40164
suse.com/security/cve/CVE-2026-40612
suse.com/security/cve/CVE-2026-41256
suse.com/security/cve/CVE-2026-41257
suse.com/security/cve/CVE-2026-43894
suse.com/security/cve/CVE-2026-43895
suse.com/security/cve/CVE-2026-43896
suse.com/security/cve/CVE-2026-44777
suse.com/security/cve/CVE-2026-47770
suse.com/security/cve/CVE-2026-49839
suse.com/security/cve/CVE-2026-54679
suse.com/support/update/announcement/2026/suse-su-20264275-1
ubuntu.com/security/CVE-2024-53427
cve.org/CVERecord?id=CVE-2024-53427
ubuntu.com/security/notices/USN-7657-1
ubuntu.com/security/CVE-2024-23337
ubuntu.com/security/CVE-2025-48060
lists.opensuse.org/archives/list/[email protected]/thread/JTB54BUKGI3PO5QEDVXN4XSDB2RSYZ7F
Left out here: the rest of 2 source descriptions. The JSON record has them.