VDB
CVE-2015-8557
CVE-2015-8557
PUBLISHED
CVSS 9 CRITICAL
Command Injection in Pygments
Reported by mitre · Published January 8, 2016
pygments is fixed in 2.1 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pygments | PyPI | 2.1 |
Risk scores
CVSS 3.0
9
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | Pygments | 1.2.2 |
| n/a | n/a | * |
Timeline
- Dec 14, 2015 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 5, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 5, 2026 Security Advisory (4 in total, the first dated here)
- Oct 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2015-8557
vulnetix vdb fixes CVE-2015-8557
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2015-8557/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-2862-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- [oss-security] 20151214 CVE request: Shell Injection in Pygments FontManager._get_nix_font_path mailing-listx_refsource_MLIST
- [oss-security] 20151214 Re: CVE request: Shell Injection in Pygments FontManager._get_nix_font_path mailing-listx_refsource_MLIST
- 20151001 Shell Injection in Pygments FontManager._get_nix_font_path mailing-listx_refsource_FULLDISC
- DSA-3445 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- GLSA-201612-05 vendor-advisoryx_refsource_GENTOO
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2015-8557 advisory
- https://github.com/advisories/GHSA-fff8-4w9p-7v76 advisory
- https://github.com/pygments/pygments/commit/db6dd826f8624179e563aaded391efe824462f51 patch
- https://github.com/pygments/pygments url
- https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2016-32.yaml advisory