Vulnerabilities / CVE-2015-8557

critical

CVE-2015-8557

python-pygments: Shell injection in FontManager._get_nix_font_path

Published Modified CWE 78
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
GHSA9.5CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Red Hat5.1AV:N/AC:H/Au:N/C:P/I:P/A:P

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Amazon (high), Red Hat (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pippygments2.1
amazon linux 1python26-pygments, python27-pygments1.4-4.12.amzn1
debian 11pygments2.0.1+dfsg-2
debian 12pygments2.0.1+dfsg-2
debian 13pygments2.0.1+dfsg-2
debian 14pygments2.0.1+dfsg-2
debian 7pygments1.5+dfsg-1+deb7u1
debian 8pygments2.0.1+dfsg-1.1+deb8u1
echopygments2.0.1+dfsg-2
Red Hatpython-pygments, python27-python-pygments, python33-python-pygments and 1 moreno fix listed
ubuntu 12.04pygments1.4+dfsg-2ubuntu0.1
ubuntu 14.04pygments1.6+dfsg-1ubuntu1.1
Show all 19 entries from 15 sources
SourcePackageFixed in
pip::GitHub Security Advisory pippygments2.1
amazon linux 1python26-pygments1.4-4.12.amzn1
amazon linux 1python27-pygments1.4-4.12.amzn1
debian 11pygments2.0.1+dfsg-2
debian 12pygments2.0.1+dfsg-2
debian 13pygments2.0.1+dfsg-2
debian 14pygments2.0.1+dfsg-2
debian 7pygments1.5+dfsg-1+deb7u1
debian 8pygments2.0.1+dfsg-1.1+deb8u1
echopygments2.0.1+dfsg-2
Red Hatpython-pygmentsno fix listed
Red Hatpython27-python-pygmentsno fix listed
Red Hatpython33-python-pygmentsno fix listed
Red Hatrh-python34-python-pygmentsno fix listed
ubuntu 12.04pygments1.4+dfsg-2ubuntu0.1
ubuntu 14.04pygments1.6+dfsg-1ubuntu1.1
ubuntu 14.04-ESMpygments1.6+dfsg-1ubuntu1.1
ubuntu 15.04pygments2.0.1+dfsg-1svn1.1
ubuntu 15.10pygments2.0.1+dfsg-1.1svn1.1

References

All 17 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.