Advisory Published

USN-4885-1: Pygments vulnerability

First published: Mon Mar 22 2021(Updated: )

It was discovered that Pygments incorrectly handled parsing SML files. If a user or automated system were tricked into parsing a specially crafted SML file, a remote attacker could cause Pygments to hang, resulting in a denial of service.

Affected SoftwareAffected VersionHow to fix
All of
ubuntu/python3-pygments<2.3.1+dfsg-4ubuntu0.1
2.3.1+dfsg-4ubuntu0.1
Ubuntu Ubuntu=20.10
All of
ubuntu/python-pygments<2.3.1+dfsg-1ubuntu2.1
2.3.1+dfsg-1ubuntu2.1
Ubuntu Ubuntu=20.04
All of
ubuntu/python3-pygments<2.3.1+dfsg-1ubuntu2.1
2.3.1+dfsg-1ubuntu2.1
Ubuntu Ubuntu=20.04
All of
ubuntu/python-pygments<2.2.0+dfsg-1ubuntu0.1
2.2.0+dfsg-1ubuntu0.1
Ubuntu Ubuntu=18.04
All of
ubuntu/python3-pygments<2.2.0+dfsg-1ubuntu0.1
2.2.0+dfsg-1ubuntu0.1
Ubuntu Ubuntu=18.04
All of
ubuntu/python-pygments<2.1+dfsg-1ubuntu0.1
2.1+dfsg-1ubuntu0.1
Ubuntu Ubuntu=16.04
All of
ubuntu/python3-pygments<2.1+dfsg-1ubuntu0.1
2.1+dfsg-1ubuntu0.1
Ubuntu Ubuntu=16.04

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Child vulnerabilities

(Contains the following vulnerabilities)

Frequently Asked Questions

  • What is the vulnerability ID for this Pygments vulnerability?

    The vulnerability ID for this Pygments vulnerability is USN-4885-1.

  • How does Pygments handle parsing SML files?

    Pygments incorrectly handles parsing SML files.

  • What is the impact of this vulnerability?

    If a user or automated system parses a specially crafted SML file, a remote attacker could cause Pygments to hang, resulting in a denial of service.

  • Which versions of Python-Pygments and Python3-Pygments are affected by this vulnerability?

    The following versions of Python-Pygments and Python3-Pygments are affected: 2.3.1+dfsg-4ubuntu0.1, 2.3.1+dfsg-1ubuntu2.1, 2.2.0+dfsg-1ubuntu0.1, 2.1+dfsg-1ubuntu0.1.

  • How can I fix this Pygments vulnerability?

    To fix this Pygments vulnerability, update Python-Pygments and Python3-Pygments to the specified remedy versions provided by Ubuntu.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203