Vulnerability Name:

CVE-2015-8557 (CCN-106924)

Assigned:2015-09-28
Published:2015-09-28
Updated:2017-07-01
Summary: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.
CVSS v3 Severity:9.0 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H)
7.8 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.3 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L)
7.2 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:9.3 High (CVSS v2 Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
7.5 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-78
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2015-8557

Source: MISC
Type: UNKNOWN
http://packetstormsecurity.com/files/133823/Pygments-FontManager._get_nix_font_path-Shell-Injection.html

Source: CCN
Type: Pygments Web site
Pygments

Source: CCN
Type: Full-Disclosure Mailing List, Mon, 28 Sep 2015 17:27:41 -0000
Shell Injection in Pygments FontManager._get_nix_font_path

Source: FULLDISC
Type: UNKNOWN
20151001 Shell Injection in Pygments FontManager._get_nix_font_path

Source: CCN
Type: oss-sec Mailing List, Mon, 14 Dec 2015 15:09:39 +0100
CVE request: Shell Injection in Pygments FontManager._get_nix_font_path

Source: DEBIAN
Type: UNKNOWN
DSA-3445

Source: MLIST
Type: UNKNOWN
[oss-security] 20151214 Re: CVE request: Shell Injection in Pygments FontManager._get_nix_font_path

Source: MLIST
Type: UNKNOWN
[oss-security] 20151214 CVE request: Shell Injection in Pygments FontManager._get_nix_font_path

Source: CONFIRM
Type: UNKNOWN
http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html

Source: UBUNTU
Type: UNKNOWN
USN-2862-1

Source: MISC
Type: Vendor Advisory
https://bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff

Source: CCN
Type: Red Hat Bugzilla – Bug 1276321
(CVE-2015-8557) CVE-2015-8557 python-pygments: Shell injection in FontManager._get_nix_font_path

Source: XF
Type: UNKNOWN
pygments-cve20158557-command-exec(106924)

Source: GENTOO
Type: UNKNOWN
GLSA-201612-05

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2015-8557

Vulnerable Configuration:Configuration 1:
  • cpe:/o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:15.10:*:*:*:*:*:*:*

  • Configuration 2:
  • cpe:/a:pygments:pygments:1.2.2:*:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:1.3:*:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:1.3.1:*:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:1.4:*:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:1.5:*:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:1.6:*:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:1.6:rc1:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:2.0:*:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:2.0:rc1:*:*:*:*:*:*
  • OR cpe:/a:pygments:pygments:2.0.1:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.cisecurity:def:371
    P
    DSA-3445-1 -- pygments -- security update
    2016-02-26
    oval:com.ubuntu.precise:def:20158557000
    V
    CVE-2015-8557 on Ubuntu 12.04 LTS (precise) - medium.
    2016-01-08
    oval:com.ubuntu.trusty:def:20158557000
    V
    CVE-2015-8557 on Ubuntu 14.04 LTS (trusty) - medium.
    2016-01-08
    BACK
    canonical ubuntu linux 12.04
    canonical ubuntu linux 14.04
    canonical ubuntu linux 15.04
    canonical ubuntu linux 15.10
    pygments pygments 1.2.2
    pygments pygments 1.3
    pygments pygments 1.3.1
    pygments pygments 1.4
    pygments pygments 1.5
    pygments pygments 1.6
    pygments pygments 1.6 rc1
    pygments pygments 2.0
    pygments pygments 2.0 rc1
    pygments pygments 2.0.1