Description
Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (crash) via a long JSON-encoded number, which triggers a heap-based buffer overflow.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jq | 1.5+dfsg-1.1 | — |
| Debian 13 | jq | 1.5+dfsg-1.1 | — |
| Debian 12 | jq | 1.5+dfsg-1.1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | jq | 1.5+dfsg-1ubuntu0.1 | — |
| Ubuntu 14.04 LTS | jq | 1.3-1.1ubuntu1.1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 8 | jq | 1.3-3.el7ost | RHSA-2016:1106 |
| Red Hat OpenStack 7 | jq | 1.3-3.el7ost | RHSA-2016:1099 |
| Red Hat OpenStack 6 | jq | 1.3-3.el7ost | RHSA-2016:1098 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLES 15 SP6 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLES 15 SP5 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLES 15 SP4 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLES for SAP 15 SP5 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLES for SAP 15 SP4 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLE Micro 6.0 | jq | 1.7.1-1.1 | SUSE-SU-2026:23873-1 |
| SLE Micro 5.5 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLE Micro 5.4 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLE Micro 5.3 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLE HPC 15 SP5 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
| SLE HPC 15 SP4 | jq | 1.7.1-150000.3.25.1 | SUSE-SU-2026:4275-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | jq | 1.5-3.3 | openSUSE-SU-2024:10409-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | jq | 1.5-6 | — |
Advisories 6
- SUSE-SU-2026:23873-1 Security update for jq SUSE / openSUSE Security Updates · Sep 28, 2026
- SUSE-SU-2026:4275-1 Security update for jq SUSE / openSUSE Security Updates · Sep 21, 2026
- RHSA-2016:1106 Red Hat Security Advisory: jq security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:1099 Red Hat Security Advisory: jq security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:1098 Red Hat Security Advisory: jq security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- openSUSE-SU-2024:10409-1 jq-1.5-3.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- RHSA-2016:1106 vendor-advisory
- RHSA-2016:1099 vendor-advisory
- [oss-security] 20160423 Re: CVE Request: jq: heap buffer overflow in tokenadd() function mailing-list
- openSUSE-SU-2016:1212 vendor-advisory
- RHSA-2016:1098 vendor-advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802231
- https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babd
- https://github.com/stedolan/jq/issues/995
- [oss-security] 20160423 CVE Request: jq: heap buffer overflow in tokenadd() function mailing-list
- openSUSE-SU-2016:1214 vendor-advisory
- GLSA-201612-20 vendor-advisory