RCE in Pygments
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.0 (Critical). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.067 (93.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 94th percentile — 93.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.067 · newest: 0.067 · change: 0.000
Affected products
- Pygments — versions 1.2.2, 1.3, 1.3.1
- Canonical Ubuntu Linux — versions 12.04, 14.04, 15.04
Weakness classification (CWE)
References
- www.ubuntu.com/usn/USN-2862-1 (vendor-advisory)
- packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Sh…
- www.openwall.com/lists/oss-security/2015/12/14/6 (mailing-list)
- www.openwall.com/lists/oss-security/2015/12/14/17 (mailing-list)
- seclists.org/fulldisclosure/2015/Oct/4 (mailing-list)
- www.debian.org/security/2016/dsa-3445 (vendor-advisory)
- www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- security.gentoo.org/glsa/201612-05 (vendor-advisory)
- bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in… (Vendor Advisory)
Frequently asked questions
- What is CVE-2015-8557?
- CVE-2015-8557 is a critical-severity vulnerability in Pygments, classified under OS Command Injection. CVSS score: 9.0/10. Published 2016-01-08.
- How severe is CVE-2015-8557?
- Critical severity. CVSS v3 base score is 9.0 out of 10.