CVE-2015-8557: Command Injection in Pygments

CVE-2015-8557 · Severity: low · CVSS 3 · Published 2016-01-08

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.

Technologies: pygments (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2015-8557 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2015-8557 being exploited in the wild.
How severe is CVE-2015-8557?
Low severity, with a CVSS score of 3, published 8 January 2016.
Which products and versions are affected?
pygments (PyPI) ECOSYSTEM:introduced=1.2.2,fixed=2.1.
Is there a fix for CVE-2015-8557?
Yes. pygments (PyPI): upgrade to 2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2015-8557?
Check whether you run pygments (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • pygments (PyPI): upgrade to 2.1 or later
    pip install "pygments>=2.1"

Affected products

  • pygments (PyPI) ECOSYSTEM:introduced=1.2.2,fixed=2.1

Identifiers

  • CVE-2015-8557
  • GHSA-fff8-4w9p-7v76
  • PYSEC-2016-32

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.