Skip to content
Fencer Intel
critical 9.0

CVE-2015-8557 json

Command Injection in Pygments

published 2016-01-08 10 y ago modified 2026-06-17 4 mo ago also GHSA-fff8-4w9p-7v76 , PYSEC-2016-32 , EUVD-2016-0026

cvss
9.0
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
6.7%
EPSS 6.7% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi pygments 2.1
  • pygments Debian 14, Debian 13, Debian 12 2.0.1+dfsg-2

debian advisories DEBIAN-CVE-2015-8557

  • pygments Ubuntu 14.04 LTS 1.6+dfsg-1ubuntu1.1

ubuntu advisories UBUNTU-CVE-2015-8557

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2015-8557 updated cvss 5.1

python-pygments: Shell injection in FontManager._get_nix_font_path

  • Red Hat Ceph Storage 1.2 python-pygments Red Hat Enterprise Linux 6 python-pygments Red Hat Enterprise Linux 7 python-pygments Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) python-pygments Red Hat Enterprise Linux OpenStack Platform 6 (Juno) python-pygments Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) python-pygments
    +1 more products
    Red Hat Software Collections python27-python-pygments, python33-python-pygments, rh-python34-python-pygments
    affected: no fix planned “Will not fix”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

6.72% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 9.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD 2.0 9.3 AV:N/AC:M/Au:N/C:C/I:C/A:C
GitHub 3.0 9.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi pygments
>=1.2.2, <2.1
2.1

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.