CVE-2015-8557
CRITICAL 9.0CVSS 3.0Command Injection in Pygments
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.
- Published
- 8 Jan 2016
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-fff8-4w9p-7v76PYSEC-2016-32
- Sources
- NVDJSONOSV GHSA-fff8-4w9p-7v76JSONOSV PYSEC-2016-32JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* |
= 12.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:* |
= 15.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:* |
= 15.10 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:1.2.2:*:*:*:*:*:*:* |
= 1.2.2 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:1.3:*:*:*:*:*:*:* |
= 1.3 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:1.3.1:*:*:*:*:*:*:* |
= 1.3.1 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:1.4:*:*:*:*:*:*:* |
= 1.4 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:1.5:*:*:*:*:*:*:* |
= 1.5 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:1.6:*:*:*:*:*:*:* |
= 1.6 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:1.6:rc1:*:*:*:*:*:* |
= 1.6 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:2.0:rc1:*:*:*:*:*:* |
= 2.0 | |
| NVD | pygments | pygmentscpe:2.3:a:pygments:pygments:2.0.1:*:*:*:*:*:*:* |
= 2.0.1 | |
| OSV | PyPI | pygments | >= 1.2.2, < 2.1 | 2.1 |
References
- http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html · WEB
- http://seclists.org/fulldisclosure/2015/Oct/4 · WEB
- http://www.debian.org/security/2016/dsa-3445 · WEB, ADVISORY
- http://www.openwall.com/lists/oss-security/2015/12/14/17 · WEB
- http://www.openwall.com/lists/oss-security/2015/12/14/6 · WEB
- http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html · WEB
- http://www.ubuntu.com/usn/USN-2862-1 · WEB, ADVISORY
- https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff · Vendor Advisory, WEB
- https://security.gentoo.org/glsa/201612-05 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2015-8557 · ADVISORY
- https://github.com/pygments/pygments/commit/db6dd826f8624179e563aaded391efe824462f51 · WEB
- https://github.com/advisories/GHSA-fff8-4w9p-7v76 · ADVISORY
- https://github.com/pygments/pygments · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2016-32.yaml · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 8 Jan 2016)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Jan 2016)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2022)