USN-4897-1

Type: Security
Severity: Medium
Published: 2021-03-30
Ubuntu 20.04 LTS (Focal Fossa)

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. Update Instructions: Run `sudo pro fix USN-4897-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: python-pygments-doc - 2.3.1+dfsg-1ubuntu2.2 python3-pygments - 2.3.1+dfsg-1ubuntu2.2 python-pygments - 2.3.1+dfsg-1ubuntu2.2 No subscription required

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T00:47:41.838Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T00:47:41.838Z UTC. Last updated 2025-11-26T07:38:00.130Z UTC.

Upstream Advisory

Affected Packages

  • python-pygments-doc 2.3.1+dfsg-1ubuntu2.2-2.3.1+dfsg-1ubuntu2.2

  • python3-pygments 2.3.1+dfsg-1ubuntu2.2-2.3.1+dfsg-1ubuntu2.2

  • python-pygments 2.3.1+dfsg-1ubuntu2.2-2.3.1+dfsg-1ubuntu2.2

Interested in being alerted when there are new versions of python-pygments-doc and the other packages? Set up an alert.
USN-4897-1: Pygments vulnerability | Package Alert