{"id":"GHSA-fff8-4w9p-7v76","summary":"Command Injection in Pygments","details":"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.","aliases":["CVE-2015-8557","PYSEC-2016-32"],"modified":"2024-10-24T22:26:14.588075Z","published":"2022-05-17T02:37:56Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-06-03T15:40:31Z","nvd_published_at":"2016-01-08T20:59:00Z","cwe_ids":["CWE-78"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-8557"},{"type":"WEB","url":"https://github.com/pygments/pygments/commit/db6dd826f8624179e563aaded391efe824462f51"},{"type":"WEB","url":"https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fff8-4w9p-7v76"},{"type":"PACKAGE","url":"https://github.com/pygments/pygments"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2016-32.yaml"},{"type":"WEB","url":"https://security.gentoo.org/glsa/201612-05"},{"type":"WEB","url":"http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2015/Oct/4"},{"type":"WEB","url":"http://www.debian.org/security/2016/dsa-3445"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2015/12/14/17"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2015/12/14/6"},{"type":"WEB","url":"http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html"},{"type":"WEB","url":"http://www.ubuntu.com/usn/USN-2862-1"}],"affected":[{"package":{"name":"pygments","ecosystem":"PyPI","purl":"pkg:pypi/pygments"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.2"},{"fixed":"2.1"}]}],"versions":["1.2.2","1.3","1.3.1","1.4","1.5","1.6","1.6rc1","2.0","2.0.1","2.0.2","2.0rc1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-fff8-4w9p-7v76/GHSA-fff8-4w9p-7v76.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}