{"id":"CVE-2015-8557","sourceIdentifier":"cve@mitre.org","published":"2016-01-08T20:59:02.233","lastModified":"2026-06-17T00:34:46.240","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"La función FontManager._get_nix_font_path en formatters/img.py en Pygments 1.2.2 hasta la versión 2.0.2 permite a atacantes remotos ejecutar comandos arbitrarios a través de metacaracteres de shell en un nombre de fuente."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","baseScore":9.0,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":6.0}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","baseScore":9.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":8.6,"impactScore":10.0,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-78"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*","matchCriteriaId":"B6B7CAD7-9D4E-4FDB-88E3-1E583210A01F"},{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","matchCriteriaId":"B5A6F2F3-4894-4392-8296-3B8DD2679084"},{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:*","matchCriteriaId":"F38D3B7E-8429-473F-BB31-FC3583EE5A5B"},{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:*","matchCriteriaId":"E88A537F-F4D0-46B9-9E37-965233C2A355"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:1.2.2:*:*:*:*:*:*:*","matchCriteriaId":"D0EA0F71-FC29-4C3A-90DF-2FFEF16712F3"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:1.3:*:*:*:*:*:*:*","matchCriteriaId":"195E015F-0A85-41F7-9DE9-F542A9F8756D"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:1.3.1:*:*:*:*:*:*:*","matchCriteriaId":"EA9CB3F5-2FEA-4DC1-BBAC-5D4CF6DA7D39"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:1.4:*:*:*:*:*:*:*","matchCriteriaId":"B3468562-7027-40D1-8E6D-5F3F1364A1BA"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:1.5:*:*:*:*:*:*:*","matchCriteriaId":"F0FCED0A-4343-440C-A1A0-BB3363F6ECED"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:1.6:*:*:*:*:*:*:*","matchCriteriaId":"307A01FA-B943-4C7F-9AB2-FB2BD28F3738"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:1.6:rc1:*:*:*:*:*:*","matchCriteriaId":"88C42296-D5EA-4A35-9551-54ED8BBA3944"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:2.0:*:*:*:*:*:*:*","matchCriteriaId":"DF08EF1D-5232-42AA-AEA0-0DD504D89680"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:2.0:rc1:*:*:*:*:*:*","matchCriteriaId":"9E88F72E-2F7A-4D27-AD22-BB3C3BDD25E4"},{"vulnerable":true,"criteria":"cpe:2.3:a:pygments:pygments:2.0.1:*:*:*:*:*:*:*","matchCriteriaId":"F0200D6E-B72D-4C07-9427-EB2D2A5EF72E"}]}]}],"references":[{"url":"http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html","source":"cve@mitre.org"},{"url":"http://seclists.org/fulldisclosure/2015/Oct/4","source":"cve@mitre.org"},{"url":"http://www.debian.org/security/2016/dsa-3445","source":"cve@mitre.org"},{"url":"http://www.openwall.com/lists/oss-security/2015/12/14/17","source":"cve@mitre.org"},{"url":"http://www.openwall.com/lists/oss-security/2015/12/14/6","source":"cve@mitre.org"},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html","source":"cve@mitre.org"},{"url":"http://www.ubuntu.com/usn/USN-2862-1","source":"cve@mitre.org"},{"url":"https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff","source":"cve@mitre.org","tags":["Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/201612-05","source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2015/Oct/4","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.debian.org/security/2016/dsa-3445","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2015/12/14/17","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2015/12/14/6","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-2862-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/201612-05","source":"af854a3a-2127-422b-91ae-364da2661108"}]}