[USN-4897-2] Pygments vulnerabilities

Leonidas S. Barbosa leo.barbosa at canonical.com
Mon Aug 14 12:37:48 UTC 2023

Ubuntu Security Notice USN-4897-2
August 14, 2023

pygments vulnerabilities

A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 14.04 LTS (Available with Ubuntu Pro)


Pygments could be made to hang if it opened a specially crafted file.

Software Description:
- pygments: Generic syntax highlighter


USN-4897-1 fixed several vulnerabilities in Pygments. This update provides
the corresponding update for Ubuntu 14.04 LTS.

Original advisory details:

 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. (CVE-2021-27291)

 It was discovered that Pygments incorrectly handled parsing certain
 files. An attacker could possibly use this issue to cause a denial of
 service. (CVE-2021-20270)

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 14.04 LTS (Available with Ubuntu Pro):
  python-pygments                 1.6+dfsg-1ubuntu1.1+esm1
  python3-pygments                1.6+dfsg-1ubuntu1.1+esm1

In general, a standard system update will make all the necessary changes.

  CVE-2021-20270, CVE-2021-27291

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-security-announce/attachments/20230814/3c4af4bb/attachment.sig>

More information about the ubuntu-security-announce mailing list