# CVE-2026-43894: jq: Wild stack write via signed-integer overflow in decNumber D2U() macro

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-11T17:20:06.055Z
- Modified: 2026-10-26T18:10:00.173Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

jq is a command-line JSON processor. In 1.8.1 and earlier, when decNumberFromString is given a number literal of INT_MAX-1 (2147483646) digits, the D2U() macro overflows during signed-int arithmetic. The wrapped negative value bypasses the heap-allocation size check, causes the function to use a 30-byte stack buffer, and then writes ≈715 million 16-bit units (≈1.4 GiB) at an offset 1.43 GiB below the stack frame. The written content is fully attacker-controlled (the parsed decimal digits, packed 3-per-unit).

(As written by CVE List.)

## Affected

- jqlang jq: <= 1.8.1; up to 1.8.1

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/jqlang/jq/security/advisories/GHSA-5v7p-2r57-2g4g> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-43894](https://www.cve.org/CVERecord?id=CVE-2026-43894), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-43894](https://nvd.nist.gov/vuln/detail/CVE-2026-43894), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-43894 · Whole record: https://cve.day/CVE-2026-43894.json · Rebuilt by cve.day 2026-11-25T22:59:21.231Z
