Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pygments
  4. ›
  5. CVE-2015-8557

CVE-2015-8557: Command Injection in Pygments

May 17, 2022 (updated October 24, 2024)

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.

References

  • bitbucket.org/birkenfeld/pygments-main/pull-requests/501/fix-shell-injection-in/diff
  • github.com/advisories/GHSA-fff8-4w9p-7v76
  • github.com/pygments/pygments
  • github.com/pygments/pygments/commit/db6dd826f8624179e563aaded391efe824462f51
  • github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2016-32.yaml
  • nvd.nist.gov/vuln/detail/CVE-2015-8557
  • security.gentoo.org/glsa/201612-05

Code Behaviors & Features

Detect and mitigate CVE-2015-8557 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.2.2 before 2.1

Fixed versions

  • 2.1

Solution

Upgrade to version 2.1 or above.

Impact 9 CRITICAL

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/Pygments/CVE-2015-8557.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:14 +0000.