Advisory Published

USN-4897-1: Pygments vulnerability

First published: Tue Mar 30 2021(Updated: )

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

Affected SoftwareAffected VersionHow to fix
All of
ubuntu/python3-pygments<2.3.1+dfsg-4ubuntu0.2
2.3.1+dfsg-4ubuntu0.2
Ubuntu Ubuntu=20.10
All of
ubuntu/python-pygments<2.3.1+dfsg-1ubuntu2.2
2.3.1+dfsg-1ubuntu2.2
Ubuntu Ubuntu=20.04
All of
ubuntu/python3-pygments<2.3.1+dfsg-1ubuntu2.2
2.3.1+dfsg-1ubuntu2.2
Ubuntu Ubuntu=20.04
All of
ubuntu/python-pygments<2.2.0+dfsg-1ubuntu0.2
2.2.0+dfsg-1ubuntu0.2
Ubuntu Ubuntu=18.04
All of
ubuntu/python3-pygments<2.2.0+dfsg-1ubuntu0.2
2.2.0+dfsg-1ubuntu0.2
Ubuntu Ubuntu=18.04
All of
ubuntu/python-pygments<2.1+dfsg-1ubuntu0.2
2.1+dfsg-1ubuntu0.2
Ubuntu Ubuntu=16.04
All of
ubuntu/python3-pygments<2.1+dfsg-1ubuntu0.2
2.1+dfsg-1ubuntu0.2
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 CVE-2021-27291.

  • What is the impact of the Pygments vulnerability?

    The Pygments vulnerability can result in a denial of service by causing Pygments to hang or consume excessive resources.

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

    The versions affected by this vulnerability are python-pygments version 2.3.1+dfsg-1ubuntu2.2, python-pygments version 2.2.0+dfsg-1ubuntu0.2, and python-pygments version 2.1+dfsg-1ubuntu0.2.

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

    The versions affected by this vulnerability are python3-pygments version 2.3.1+dfsg-4ubuntu0.2, python3-pygments version 2.3.1+dfsg-1ubuntu2.2, python3-pygments version 2.2.0+dfsg-1ubuntu0.2, and python3-pygments version 2.1+dfsg-1ubuntu0.2.

  • How do I fix the Pygments vulnerability?

    To fix the Pygments vulnerability, update to the appropriate fixed versions: python-pygments version 2.3.1+dfsg-1ubuntu2.2, python-pygments version 2.2.0+dfsg-1ubuntu0.2, python-pygments version 2.1+dfsg-1ubuntu0.2, python3-pygments version 2.3.1+dfsg-4ubuntu0.2, python3-pygments version 2.3.1+dfsg-1ubuntu2.2, python3-pygments version 2.2.0+dfsg-1ubuntu0.2, or python3-pygments version 2.1+dfsg-1ubuntu0.2.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203