GLSA 201612-05: Pygments: Arbitrary code execution
Severity: | normal |
Title: | Pygments: Arbitrary code execution |
Date: | 12/04/2016 |
Bugs: |
|
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 | Architecture(s) |
---|---|---|---|
dev-python/pygments | < 2.0.2-r1 | >= 2.0.2-r1 | All supported architectures |
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
Availability
This GLSA and any updates to it are available for viewing at the Gentoo Security Website:
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 2010 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.