cve.bz

CVE-2015-8557 OS Command Injection

9.0 criticalEPSS 6.7%Fix available

Critical (9.0). EPSS 6.7% estimated probability of exploitation activity in the next 30 days. Fixed in pygments 2.1.

On this page
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.

Severity

CVSS 3.0

9.0 critical
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
6.7% (unchanged from 6.7% a week ago; 6.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2015-8557 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2015-8557?via=ask-ai-copy and https://cve.bz/cve/CVE-2015-8557?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2015-8557 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux15.04
canonical:ubuntu_linux15.10
pygments:pygments1.2.2
pygments:pygments1.3
pygments:pygments1.3.1
pygments:pygments1.4
pygments:pygments1.5
pygments:pygments1.6
pygments:pygments1.6:rc1
pygments:pygments2.0
pygments:pygments2.0:rc1
pygments:pygments2.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fff8-4w9p-7v76PyPIpygments>=1.2.2 <2.12.1
PYSEC-2016-32PyPIpygments>=1.2.2 <2.12.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian6.0pygments1.3.1+dfsg-1+deb6u11DLA-369-1
Debian7pygments1.5+dfsg-1+deb7u1DSA-3445-1
Debian8pygments2.0.1+dfsg-1.1+deb8u1DSA-3445-1
Debian12, 13, 14pygments2.0.1+dfsg-2DEBIAN-CVE-2015-8557
Ubuntu14.04:LTSpygments1.6+dfsg-1ubuntu1.1UBUNTU-CVE-2015-8557 USN-2862-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Ceph Storage 1.2python-pygmentsWill not fix
Red Hat Enterprise Linux 6python-pygmentsWill not fix
Red Hat Enterprise Linux 7python-pygmentsWill not fix
Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse)python-pygmentsWill not fix
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)python-pygmentsWill not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)python-pygmentsWill not fix
Red Hat Software Collectionspython27-python-pygmentsWill not fix
Red Hat Software Collectionspython33-python-pygmentsWill not fix
Red Hat Software Collectionsrh-python34-python-pygmentsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2015-8557.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON