{"id":"CVE-2015-8557","published":"2016-01-08T20:00:00Z","modified":"2024-08-06T08:20:43Z","title":"The FontManager._get_nix_font_path function in formatters/img.py in Pygments 1.2.2 through 2.0.2 allows remote…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06718,"percentile":0.94082,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.ubuntu.com/usn/USN-2862-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2015/12/14/6","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2015/12/14/17","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://seclists.org/fulldisclosure/2015/Oct/4","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://www.debian.org/security/2016/dsa-3445","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/201612-05","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff","tags":["x_refsource_MISC"]}],"priority":{"score":23.8,"factors":[{"name":"EPSS percentile","points":18.82},{"name":"Public exploit code","points":5.0}]},"affected":[{"ecosystem":"PyPI","package":"Pygments","vulnerableRanges":[">=1.2.2, <2.1"],"patched":["2.1"],"from":["GHSA-fff8-4w9p-7v76","PYSEC-2016-32"],"provenance":"source"}],"summary":{"text":"The FontManager._get_nix_font_path function in formatters/img.py of the Pygments syntax-highlighting library (versions 1.2.2 through 2.0.2) builds a shell command from a font name without proper sanitisation. An attacker able to supply a font name to the image formatter can inject shell metacharacters to run arbitrary commands on the host.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:00:54Z"},"euvd":{"id":"EUVD-2016-0026","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html"]}