portage-ng / portage / dev-python / pygments / 2.21.0
portage-ng glsa
1 advisory reference dev-python/pygments · none place version 2.21.0 in a vulnerable range
▸ GLSA 201612-05 Pygments: Arbitrary code execution this version unaffected normal remote 2016-12-04

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

Announced
2016-12-04
Revised
2016-12-04
Access
remote
Bugs
#564478
Advisory
https://security.gentoo.org/glsa/201612-05

Affected packages

PackageArchVulnerableUnaffected
dev-python/pygments*< 2.0.2-r1>= 2.0.2-r1

Background

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

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