# CVE-2023-50246: jq has heap-buffer-overflow vulnerability in the function decToString in decNumber.c

- 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.51%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-13T20:43:50.862Z
- Modified: 2026-06-17T06:39:22.477Z
- Weaknesses: CWE-120, CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

jq is a command-line JSON processor. Version 1.7 is vulnerable to heap-based buffer overflow. Version 1.7.1 contains a patch for this issue.

(As written by CVE List.)

## Affected

- jqlang jq: = 1.7; 1.7

## 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-686w-5m7m-54vc> (exploit, vendor-advisory)
- <https://github.com/jqlang/jq/commit/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297> (patch)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64574> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2023/12/15/10> (mailing-list, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2023-50246](https://www.cve.org/CVERecord?id=CVE-2023-50246), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-50246](https://nvd.nist.gov/vuln/detail/CVE-2023-50246), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-50246 · Whole record: https://cve.day/CVE-2023-50246.json · Rebuilt by cve.day 2026-11-25T22:58:31.312Z
