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
CVSS 3.0
9.0 critical
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
6.7% chance of exploitation in the next 30 days; higher than 93% of CVEs (scores of 2026-10-31)