Skip to content
OpenAdvisories
Critical · 9.0 CVE-2015-8557 EUVD-2016-0026GHSA-fff8-4w9p-7v76PYSEC-2016-32

Command Injection in Pygments

Published Jan 8, 2016 · Updated Aug 6, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pygments 2.0.1+dfsg-2 —
Debian 13 pygments 2.0.1+dfsg-2 —
Debian 12 pygments 2.0.1+dfsg-2 —
Debian 8 pygments 2.0.1+dfsg-1.1+deb8u1 DSA-3445-1
Debian 7 pygments 1.5+dfsg-1+deb7u1 DSA-3445-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 6.0 pygments 1.3.1+dfsg-1+deb6u11 DLA-369-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS pygments 1.6+dfsg-1ubuntu1.1 USN-2862-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pygments >= 1.2.2, < 2.1 2.1 GHSA-fff8-4w9p-7v76

Advisories 3

References