CVE-2015-8863
published 2016-05-06CVE-2015-8863: 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…
PriorityP350critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
7.50%
93.7th percentile
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.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | jq | < jq 1.5+dfsg-1.1 (bookworm) | jq 1.5+dfsg-1.1 (bookworm) |
| jq_project | jq | <= 1.5 | — |
| jqlang | jq | >= 0 < 1.5+dfsg-1.1 | 1.5+dfsg-1.1 |
| jqlang | jq | >= 0 < 1.5+dfsg-1.1 | 1.5+dfsg-1.1 |
| jqlang | jq | >= 0 < 1.5+dfsg-1.1 | 1.5+dfsg-1.1 |
| jqlang | jq | >= 0 < 1.5+dfsg-1.1 | 1.5+dfsg-1.1 |
| msrc | cbl2_jq_1.5-6_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| msrc | cm1_jq_1.5-6_on_cbl_mariner_1.0 | — | — |
| opensuse | leap | — | — |
| opensuse | opensuse | — | — |
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv9.8CRITICAL
vendor_debian9.8LOW
vendor_msrc9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
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.
vendor_msrc·2016-05-10·CVSS 9.8
CVE-2015-8863 [CRITICAL] CWE-119 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the C
Red Hat
jq: heap-buffer-overflow in tokenadd() function
vendor_redhat·2015-10-18·CVSS 9.8
CVE-2015-8863 [CRITICAL] CWE-122 jq: heap-buffer-overflow in tokenadd() function
jq: heap-buffer-overflow in tokenadd() function
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.
A heap-based buffer overflow flaw was found in jq's tokenadd() function. By tricking a victim into processing a specially crafted JSON file, an attacker could use this flaw to crash jq or, potentially, execute arbitrary code on the victim's system.
Package: jq (Red Hat Enterprise Linux 8) - Not affected
Package: jq (Red Hat Enterprise Linux 9) - Not affected
Package: jq (Red Hat OpenStack Platform 9 (Mitaka)) - Not affected
Debian
CVE-2015-8863: jq - Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote atta...
vendor_debian·2015·CVSS 9.8
CVE-2015-8863 [CRITICAL] CVE-2015-8863: jq - Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote atta...
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.
Scope: local
bookworm: resolved (fixed in 1.5+dfsg-1.1)
bullseye: resolved (fixed in 1.5+dfsg-1.1)
forky: resolved (fixed in 1.5+dfsg-1.1)
sid: resolved (fixed in 1.5+dfsg-1.1)
trixie: resolved (fixed in 1.5+dfsg-1.1)
GHSA
GHSA-j4rg-46c3-r5vq: Off-by-one error in the tokenadd function in jv_parse
ghsa_unreviewed·2022-05-14
CVE-2015-8863 [CRITICAL] CWE-119 GHSA-j4rg-46c3-r5vq: Off-by-one error in the tokenadd function in jv_parse
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.
OSV
CVE-2015-8863: Off-by-one error in the tokenadd function in jv_parse
osv·2016-05-06·CVSS 9.8
CVE-2015-8863 [CRITICAL] CVE-2015-8863: Off-by-one error in the tokenadd function in jv_parse
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function
bugzilla·2016-04-20·CVSS 9.8
CVE-2015-8863 [CRITICAL] CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function
A vulnerability was found in jq. There was an off-by one error, as the NUL terminator byte was not allocated on resize. A maliciously crafted JSON file could cause the application to crash.
External references:
https://github.com/stedolan/jq/issues/995
Upstream fix:
https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babd
References(reproducer available):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802231
Discussion:
Created jq tracking bugs for this issue:
Affects: fedora-all [bug 1328748]
Affects: epel-6 [bug 1328749]
Affects: epel-7 [bug 1328750]
---
This issue has been addressed in the following products:
Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7
Via RHSA-2016
Bugzilla
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [epel-7]
bugzilla·2016-04-20·CVSS 9.8
CVE-2015-8863 [CRITICAL] CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [epel-7]
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
[bug automatically created by: add-tracking-bugs]
Discus
Bugzilla
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [epel-6]
bugzilla·2016-04-20·CVSS 9.8
CVE-2015-8863 [CRITICAL] CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [epel-6]
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [epel-6]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
[bug automatically created by: add-tracking-bugs]
Discus
Bugzilla
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [fedora-all]
bugzilla·2016-04-20·CVSS 9.8
CVE-2015-8863 [CRITICAL] CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [fedora-all]
CVE-2015-8863 jq: heap-buffer-overflow in tokenadd() function [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fed
http://lists.opensuse.org/opensuse-updates/2016-05/msg00012.htmlhttp://lists.opensuse.org/opensuse-updates/2016-05/msg00014.htmlhttp://rhn.redhat.com/errata/RHSA-2016-1098.htmlhttp://rhn.redhat.com/errata/RHSA-2016-1099.htmlhttp://rhn.redhat.com/errata/RHSA-2016-1106.htmlhttp://www.openwall.com/lists/oss-security/2016/04/23/1http://www.openwall.com/lists/oss-security/2016/04/23/2https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802231https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babdhttps://github.com/stedolan/jq/issues/995https://security.gentoo.org/glsa/201612-20http://lists.opensuse.org/opensuse-updates/2016-05/msg00012.htmlhttp://lists.opensuse.org/opensuse-updates/2016-05/msg00014.htmlhttp://rhn.redhat.com/errata/RHSA-2016-1098.htmlhttp://rhn.redhat.com/errata/RHSA-2016-1099.htmlhttp://rhn.redhat.com/errata/RHSA-2016-1106.htmlhttp://www.openwall.com/lists/oss-security/2016/04/23/1http://www.openwall.com/lists/oss-security/2016/04/23/2https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802231https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babdhttps://github.com/stedolan/jq/issues/995https://security.gentoo.org/glsa/201612-20
2016-05-06
Published