Home / mailingsPDF  

[gentoo-announce] [ GLSA 201612-20 ] jq: Buffer overflow

Posted on 08 December 2016
Gentoo-announce

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--9GJOj6PtT9X0HEkQRMNvERmeuc3CKK28V
Content-Type: multipart/mixed; boundary="AvMmUfhNDKbpkHil4agr1wCKjoW9480bL"
From: Aaron Bauman <bman@gentoo.org>
To: gentoo-announce@lists.gentoo.org
Message-ID: <d75424c4-80ed-d48b-522e-cf30bc1e2500@gentoo.org>
Subject: [ GLSA 201612-20 ] jq: Buffer overflow

--AvMmUfhNDKbpkHil4agr1wCKjoW9480bL
Content-Type: multipart/alternative;
boundary="------------C09F524F8BDF8FD68F1E2513"

This is a multi-part message in MIME format.
--------------C09F524F8BDF8FD68F1E2513
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 201612-20
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: jq: Buffer overflow
Date: December 08, 2016
Bugs: #580606
ID: 201612-20

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

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

Affected packages
=================
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 app-misc/jq < 1.5-r2 >= 1.5-r2

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
==========
[ 1 ] CVE-2015-8863
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8863

Availability
============
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

https://security.gentoo.org/glsa/201612-20

Concerns?
=========
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======
Copyright 2016 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5


--------------C09F524F8BDF8FD68F1E2513
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=utf=-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
<meta http-equiv="content-type" content="text/html; charset=u=tf-8">
</p>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-l=igatures: normal; font-variant-caps: normal; font-weight: normal; letter-=spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-tr=ansform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0=px; word-wrap: break-word; white-space: pre-wrap;">- - - - - - - - - - - =- - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 201612-20
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<a class="moz-txt-link-freet=ext" href="https://security.gentoo.org/">https://security.gentoo.org/</=a>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: jq: Buffer overflow
Date: December 08, 2016
Bugs: #580606
ID: 201612-20

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

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

Affected packages
=================
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 app-misc/jq < 1.5-r2 >= 1.=5-r2

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
==========
[ 1 ] CVE-2015-8863
<a class="moz-txt-link-freetext" href="http://cve.mitre.org/cgi=-bin/cvename.cgi?name=CVE-2015-8863">http://cve.mitre.org/cgi-bin/cvena=me.cgi?name=CVE-2015-8863</a>

Availability
============
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

<a class="moz-txt-link-freetext" href="https://security.gentoo.org/g=lsa/201612-20">https://security.gentoo.org/glsa/201612-20</a>

Concerns?
=========
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
<a class="moz-txt-link-abbreviated" href="mailto:security@gentoo.org"=>security@gentoo.org</a> or alternatively, you may file a bug at
<a class="moz-txt-link-freetext" href="https://bugs.gentoo.org">https=://bugs.gentoo.org</a>.

License
=======
Copyright 2016 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

<a class="moz-txt-link-freetext" href="http://creativecommons.org/lic=enses/by-sa/2.5">http://creativecommons.org/licenses/by-sa/2.5</a></pre>
</body>
</html>

--------------C09F524F8BDF8FD68F1E2513--

--AvMmUfhNDKbpkHil4agr1wCKjoW9480bL--

--9GJOj6PtT9X0HEkQRMNvERmeuc3CKK28V
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

 

TOP