Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.5
CVE-2015-8557: Pygments Font Manager Vulnerability Allows Remote Command Execution
CVE-2015-8557 · published 10 years ago
Summary
Pygments, a code formatting library, has a security issue that allows attackers to run arbitrary commands if they input special characters in a font name. This could let attackers take control of a system. Update to a fixed version of Pygments to protect against this vulnerability.
What to do
- Update matthäus g. chajdas pygments to version 2.1.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | matthäus g. chajdas | pygments |
>= 1.2.2, < 2.1 Fix: upgrade to 2.1
|
| – | canonical | ubuntu_linux |
12.04 14.04 15.04 15.10 cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* |
| – | pygments | pygments |
1.2.2 1.3 1.3.1 1.4 1.5 1.6 2.0 2.0.1 cpe:2.3:a:pygments:pygments:1.2.2:*:*:*:*:*:*:* |
Original advisory text
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.
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-8557
- https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injec...
- https://security.gentoo.org/glsa/201612-05
- http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_p...
- http://seclists.org/fulldisclosure/2015/Oct/4
- http://www.debian.org/security/2016/dsa-3445
- http://www.openwall.com/lists/oss-security/2015/12/14/17
- http://www.openwall.com/lists/oss-security/2015/12/14/6
- http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- http://www.ubuntu.com/usn/USN-2862-1
- https://github.com/advisories/GHSA-fff8-4w9p-7v76
- https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2016-32...
- https://github.com/pygments/pygments/commit/db6dd826f8624179e563aaded391efe82446...
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker full control (estimated)
Type
CWE-78OS Command Injection
Timeline
Published8 Jan 2016
Updated22 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta