CVE-2015-8557: OS Command Injection
The FontManager.getnixfontpath function in formatters/img.py in Pygments 1.2.2 through 2.0.2 allows remote attackers to execute arbitrary commands via shell metacharacters in a font name.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/Pygmentsto a version that resolves this vulnerability.Fixed in 2.1
Event History
Frequently Asked Questions
What is the severity of CVE-2015-8557?
CVE-2015-8557 has a medium severity level due to the potential for remote code execution through shell metacharacters in font names.
How do I fix CVE-2015-8557?
To fix CVE-2015-8557, upgrade Pygments to version 2.1 or later.
Which versions of Pygments are affected by CVE-2015-8557?
CVE-2015-8557 affects Pygments versions 1.2.2 to 2.0.2.
What types of attacks can exploit CVE-2015-8557?
CVE-2015-8557 can be exploited through remote attacks that inject arbitrary commands into font names.
What platforms are impacted by CVE-2015-8557?
CVE-2015-8557 impacts systems running vulnerable versions of Pygments, particularly on Ubuntu 12.04, 14.04, 15.04, and 15.10.