Your submission was sent successfully! Close

You have successfully unsubscribed! Close

CVE-2021-20270

Published: 9 March 2021

An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.

Priority

Medium

Cvss 3 Severity Score

7.5

Score breakdown

Status

Package Release Status
pygments
Launchpad, Ubuntu, Debian
impish
Released (2.7.1+dfsg-2)
trusty
Released (1.6+dfsg-1ubuntu1.1+esm1)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only)
bionic
Released (2.2.0+dfsg-1ubuntu0.1)
focal
Released (2.3.1+dfsg-1ubuntu2.1)
groovy
Released (2.3.1+dfsg-4ubuntu0.1)
hirsute
Released (2.7.1+dfsg-2)
xenial
Released (2.1+dfsg-1ubuntu0.1)
upstream
Released (2.7.4)
jammy
Released (2.7.1+dfsg-2)
kinetic
Released (2.7.1+dfsg-2)
lunar
Released (2.7.1+dfsg-2)
Patches:
upstream: https://github.com/pygments/pygments/commit/f91804ff4772e3ab41f46e28d370f57898700333

Severity score breakdown

Parameter Value
Base score 7.5
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity impact None
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H