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 arbitrary commands via shell metacharacters in a font name.
02 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.
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 6.71% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 93.6% of scored records. A rank, not a probability.
- NVD base score
- 9.0 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2016-01-08 20:00Z10 YR AGO
- Last updated
- 2024-08-06 08:20Z2 YR AGO
- Reserved
- 2015-12-14
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- Data version
- 5.1
- Document digest
- 5db163c260de2f51b38b11820a3ee5ab5a45dc85617dc0f4a1091560ee694e9c
05 Affected products
06 References
- www.ubuntu.comUSN-2862-1http://www.ubuntu.com/usn/USN-2862-1
- packetstormsecurity.comhttp://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html
- www.openwall.com[oss-security] 20151214 CVE request: Shell Injection in Pygments FontManager._get_nix_font_pathhttp://www.openwall.com/lists/oss-security/2015/12/14/6
- www.openwall.com[oss-security] 20151214 Re: CVE request: Shell Injection in Pygments FontManager._get_nix_font_pathhttp://www.openwall.com/lists/oss-security/2015/12/14/17
- seclists.org20151001 Shell Injection in Pygments FontManager._get_nix_font_pathhttp://seclists.org/fulldisclosure/2015/Oct/4
- www.debian.orgDSA-3445http://www.debian.org/security/2016/dsa-3445
- www.oracle.comhttp://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- security.gentoo.orgGLSA-201612-05https://security.gentoo.org/glsa/201612-05
- bitbucket.orghttps://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff
07 Fixed in
Debian 12
- pygments Fixed in 2.0.1+dfsg-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- pygments Fixed in 2.0.1+dfsg-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- pygments Fixed in 2.0.1+dfsg-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 14.04 LTS
- pygments Fixed in 1.6+dfsg-1ubuntu1.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.