CVE-2015-8557
CRITICAL9.0EPSS 7.4%pygments - security update
Published: 5/17/2022Modified: 4/28/2026
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.
Affected packages (5)
- Debian/pygmentsfrom 0, < 2.0.1+dfsg-2
- Debian/pygmentsfrom 0, < 1.3.1+dfsg-1+deb6u11
- Debian/pygmentsfrom 0, < 1.5+dfsg-1+deb7u1
- PyPI/pygments>= 1.2.2, < 2.1
- PyPI/pygments>= 1.2.2, < 2.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | CRITICAL9.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
References (15)
- ADVISORYhttps://github.com/advisories/GHSA-fff8-4w9p-7v76
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2015-8557
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2015-8557
- PATCHhttps://github.com/pygments/pygments
- WEBhttp://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html
- WEBhttps://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff
- WEBhttp://seclists.org/fulldisclosure/2015/Oct/4
- WEBhttps://github.com/pygments/pygments/commit/db6dd826f8624179e563aaded391efe824462f51
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2016-32.yaml
- WEBhttps://security.gentoo.org/glsa/201612-05
- WEBhttp://www.debian.org/security/2016/dsa-3445
- WEBhttp://www.openwall.com/lists/oss-security/2015/12/14/17
- WEBhttp://www.openwall.com/lists/oss-security/2015/12/14/6
- WEBhttp://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- WEBhttp://www.ubuntu.com/usn/USN-2862-1