GLSA-201612-20 : jq: Buffer overflow

Critical Nessus Plugin ID 95636


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-201612-20 (jq: Buffer overflow)

An off-by-one error was discovered in the tokenadd function in jv_parse.c which triggers a heap-based buffer overflow.
Impact :

A remote attacker could trick a victim into processing a specially crafted JSON file, possibly resulting in the execution of arbitrary code with the privileges of the process. Additionally, a remote attacker could cause a Denial of Service condition.
Workaround :

There is no known workaround at this time.


All jq users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-misc/jq-1.5-r2'

See Also

Plugin Details

Severity: Critical

ID: 95636

File Name: gentoo_GLSA-201612-20.nasl

Version: $Revision: 2.1 $

Type: local

Published: 2016/12/08

Modified: 2016/12/08

Dependencies: 12634

Risk Information

Risk Factor: Critical


Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C


Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:jq, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2016/12/08

Reference Information

CVE: CVE-2015-8863

GLSA: 201612-20