Advisory

GHSA-fff8-4w9p-7v76

Also known as: CVE-2015-8557, PYSEC-2016-32

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-17 02:37 UTC
Modified
2024-10-24 22:26 UTC

Affected packages and fixes

pygments

PyPI · All systems

Affected

  • introduced 1.2.2, fixed 2.1 (ecosystem)

Fixed versions

2.1

Fix

  • Fixed version 2.1
    pip install --upgrade pygments==2.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences