PT-2015-7803 · Pygments+1 · Pygments+1
Stefan Cornelius
·
Published
2015-12-16
·
Updated
2022-05-17
·
CVE-2015-8557
CVSS v4.0
9.5
Critical
| Vector | AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
Name of the Vulnerable Software and Affected Versions
Pygments versions 1.2.2 through 2.0.2
Description
The issue allows remote attackers to execute arbitrary commands via shell metacharacters in a font name, specifically in the FontManager. get nix font path function in formatters/img.py.
Recommendations
For Pygments versions 1.2.2 through 2.0.2, consider disabling the
FontManager. get nix font path function until a patch is available to prevent the execution of arbitrary commands. Restrict access to the formatters/img.py module to minimize the risk of exploitation. Avoid using font names that contain shell metacharacters in the affected function until the issue is resolved.Fix
RCE
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Pygments
Ubuntu