NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
CRITICAL severity

CVE-2015-8557 — pygments

CRITICALFix: pygments/pygments@db6dd82

CVE-2015-8557 is a critical-severity (CVSS 9) OS Command Injection vulnerability in pygments. A fix is available for pygments — see the affected versions and patch details below.

Command Injection in Pygments

Also known asGHSA-fff8-4w9p-7v76PYSEC-2016-32
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
6.7%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs94th percentile — riskier than 94% of all scored CVEsHighest risk
5.13%6.08%7.03%7.98%5.7%6.7%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐍pygments

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIpygments≥ 1.2.2&&< 2.12.1pip install --upgrade 'pygments==2.1'

Affected Products

2 products · 14 configurations
OS
ubuntu linuxcanonical
4 versions
12.0414.0415.0415.10
Application
pygmentspygments
8 versions
1.2.21.31.3.11.41.51.62.02.0.1

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pygments, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update pygments to 2.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2015-8557 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2015-8557 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2015-8557: pygments — Fixed in 2.1