portage-ng / portage / app-misc / jq / 1.8.2
portage-ng glsa
1 advisory reference app-misc/jq · none place version 1.8.2 in a vulnerable range
▸ GLSA 201612-20 jq: Buffer overflow this version unaffected normal remote 2016-12-08

A buffer overflow in jq might allow remote attackers to execute arbitrary code.

Announced
2016-12-08
Revised
2016-12-08
Access
remote
Bugs
#580606
Advisory
https://security.gentoo.org/glsa/201612-20

Affected packages

PackageArchVulnerableUnaffected
app-misc/jq*< 1.5-r2>= 1.5-r2

Background

jq is a lightweight and flexible command-line JSON processor.

Description

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.

Resolution

All jq users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-misc/jq-1.5-r2"

References