USN-4897-1: Pygments vulnerability

Published 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 Software

14 affected componentsFixes available
All of the following
ubuntu/python3-pygments<2.3.1+dfsg-4ubuntu0.2
2.3.1+dfsg-4ubuntu0.2
Ubuntu Ubuntu=20.10
All of the following
ubuntu/python-pygments<2.3.1+dfsg-1ubuntu2.2
2.3.1+dfsg-1ubuntu2.2
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python3-pygments<2.3.1+dfsg-1ubuntu2.2
2.3.1+dfsg-1ubuntu2.2
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python-pygments<2.2.0+dfsg-1ubuntu0.2
2.2.0+dfsg-1ubuntu0.2
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3-pygments<2.2.0+dfsg-1ubuntu0.2
2.2.0+dfsg-1ubuntu0.2
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python-pygments<2.1+dfsg-1ubuntu0.2
2.1+dfsg-1ubuntu0.2
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3-pygments<2.1+dfsg-1ubuntu0.2
2.1+dfsg-1ubuntu0.2
Ubuntu Ubuntu=16.04

Event History

Mar 30, 2021
Advisory Published
12:00 AM

Child vulnerabilities

Contains the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this Pygments vulnerability?

The vulnerability ID for this Pygments vulnerability is CVE-2021-27291.

2

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.

3

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.

4

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.

5

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