Vulnerabilities · 2015 · Canonical
CVE-2015-8557
Canonical Ubuntu Linux vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Ubuntu Linux, Pygments. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Canonical Ubuntu Linux runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff · Vendor Advisory
- packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injecti
- seclists.org/fulldisclosure/2015/Oct/4
- www.debian.org/security/2016/dsa-3445
- www.openwall.com/lists/oss-security/2015/12/14/17
- www.openwall.com/lists/oss-security/2015/12/14/6
- www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- www.ubuntu.com/usn/USN-2862-1
- nvd.nist.gov/vuln/detail/CVE-2015-8557
- cve.org/CVERecord?id=CVE-2015-8557
More vulnerabilities in Canonical products
CVE-2025-54293CVE-2025-54292CVE-2025-54291CVE-2025-54290CVE-2025-54289CVE-2025-54288CVE-2025-54286CVE-2025-53513All 4,095
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.