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
- github.com/pygments/pygments@db6dd82 commit
- bitbucket.org/birkenfeld/pygments-main#501 pull request
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-pygmentsaffected: no fix planned “Will not fix”
+1 more productsfewer
Red Hat Software Collections python27-python-pygments, python33-python-pygments, rh-python34-python-pygments
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
-
bitbucket.org
/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff
web, vendor-advisory
-
github.com
/pygments/pygments/commit/db6dd826f8624179e563aaded391efe824462f51
web
-
ubuntu.com
/usn/USN-2862-1
vendor-advisory, web, advisory
-
debian.org
/security/2016/dsa-3445
vendor-advisory, web, advisory
-
security.gentoo.org
/glsa/201612-05
vendor-advisory, web, advisory
-
packetstormsecurity.com
/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html
web
-
openwall.com
/lists/oss-security/2015/12/14/6
mailing-list, web
-
openwall.com
/lists/oss-security/2015/12/14/17
mailing-list, web
-
seclists.org
/fulldisclosure/2015/Oct/4
mailing-list, web
-
oracle.com
/technetwork/topics/security/bulletinjan2016-2867206.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2015-8557
advisory
-
github.com
/advisories/GHSA-fff8-4w9p-7v76
advisory
-
github.com
/pygments/pygments
package
-
github.com
/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2016-32.yaml
web
Sources
- CVE List CVE-2015-8557
- GitHub Advisory GHSA-fff8-4w9p-7v76
- NVD CVE-2015-8557
- OSV PYSEC-2016-32
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.