CWE
78
Advisory Published
Advisory Published
Updated

CVE-2015-8557: OS Command Injection

First published: Fri Jan 08 2016(Updated: )

The FontManager._get_nix_font_path 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.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
pip/Pygments>=1.2.2<2.1
2.1
Ubuntu Linux=12.04
Ubuntu Linux=14.04
Ubuntu Linux=15.04
Ubuntu Linux=15.10
Pygments Pygments=1.2.2
Pygments Pygments=1.3
Pygments Pygments=1.3.1
Pygments Pygments=1.4
Pygments Pygments=1.5
Pygments Pygments=1.6
Pygments Pygments=1.6-rc1
Pygments Pygments=2.0
Pygments Pygments=2.0-rc1
Pygments Pygments=2.0.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203