Heap-based buffer overflow - CVE-2015-8863
Published: May 6, 2016 / Updated: August 3, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in Off-by-one error in the tokenadd function in jv_parse.c in jq. A remote attacker can use a long JSON-encoded number to trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Amazon Linux AMI
jq (Alpine package)
wireshark (Alpine package)
jq (Red Hat package)
Red Hat OpenStack
How to mitigate CVE-2015-8863
wireshark (Alpine package) - addressed in versions 2.2.14-r0, 2.4.6-r0
Red Hat OpenStack - update to 8
jq (Red Hat package) - update to 1.3-3.el7ost
External References
- http://lists.opensuse.org/opensuse-updates/2016-05/msg00012.html
- http://lists.opensuse.org/opensuse-updates/2016-05/msg00014.html
- http://rhn.redhat.com/errata/RHSA-2016-1098.html
- http://rhn.redhat.com/errata/RHSA-2016-1099.html
- http://rhn.redhat.com/errata/RHSA-2016-1106.html
- http://www.openwall.com/lists/oss-security/2016/04/23/1
- http://www.openwall.com/lists/oss-security/2016/04/23/2
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802231
- https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babd
- https://github.com/stedolan/jq/issues/995
- https://security.gentoo.org/glsa/201612-20