Home / mailingsPDF  

[gentoo-announce] [ GLSA 201612-05 ] Pygments: Arbitrary code execution

Posted on 04 December 2016
Gentoo-announce

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Neww88Oo6Omo4KULr0dpdQr79eXEj87En
Content-Type: multipart/mixed; boundary="GqIP8HjVEn2mEi4wpCwPTKRfiJGLGP5JN"
From: Aaron Bauman <bman@gentoo.org>
To: gentoo-announce@lists.gentoo.org
Message-ID: <5cd80ad6-c46a-7724-3af5-5cdf9472de7e@gentoo.org>
Subject: [ GLSA 201612-05 ] Pygments: Arbitrary code execution

--GqIP8HjVEn2mEi4wpCwPTKRfiJGLGP5JN
Content-Type: multipart/alternative;
boundary="------------1C60138F39D71EDA8BA73DF5"

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

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

Severity: Normal
Title: Pygments: Arbitrary code execution
Date: December 04, 2016
Bugs: #564478
ID: 201612-05

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

Synopsis
========
Pygments is vulnerable to remote code execution if an attacker is
allowed to specify the font name.

Background
==========
Pygments is a generic syntax highlighter suitable for use in code
hosting, forums, wikis or other applications that need to prettify
source code.

Affected packages
=================
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 dev-python/pygments < 2.0.2-r1 >= 2.0.2-r1

Description
===========
A vulnerability in FontManager's _get_nix_font_path function allows
shell metacharacters to be passed in a font name.

Impact
======
A remote attacker could possibly execute arbitrary code with the
privileges of the process.

Workaround
==========
There is no known workaround at this time.

Resolution
==========
All Pygments users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-python/pygments-2.0.2-r1"

References
==========
[ 1 ] CVE-2015-8557
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8557

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

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

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


--------------1C60138F39D71EDA8BA73DF5
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-05
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<a class="moz-txt-link-freet=ext" href="https://security.gentoo.org/">https://security.gentoo.org/</=a>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: Pygments: Arbitrary code execution
Date: December 04, 2016
Bugs: #564478
ID: 201612-05

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

Synopsis
========
Pygments is vulnerable to remote code execution if an attacker is
allowed to specify the font name.

Background
==========
Pygments is a generic syntax highlighter suitable for use in code
hosting, forums, wikis or other applications that need to prettify
source code.

Affected packages
=================
-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 dev-python/pygments < 2.0.2-r1 >= 2.0.=2-r1

Description
===========
A vulnerability in FontManager's _get_nix_font_path function allows
shell metacharacters to be passed in a font name.

Impact
======
A remote attacker could possibly execute arbitrary code with the
privileges of the process.

Workaround
==========
There is no known workaround at this time.

Resolution
==========
All Pygments users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-python/pygments-2.0.2-r1="

References
==========
[ 1 ] CVE-2015-8557
<a class="moz-txt-link-freetext" href="http://web.nvd.nist.gov/=view/vuln/detail?vulnId=CVE-2015-8557">http://web.nvd.nist.gov/view/vul=n/detail?vulnId=CVE-2015-8557</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-05">https://security.gentoo.org/glsa/201612-05</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>

--------------1C60138F39D71EDA8BA73DF5--

--GqIP8HjVEn2mEi4wpCwPTKRfiJGLGP5JN--

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

 

TOP