Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-20270

published

python-pygments: Infinite loop in SML lexer may lead to DoS

Title from Red Hat VEX

Published
23 Mar 2021, 16:40:22 UTC
Updated
03 Aug 2024, 17:37:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — python-pygmentspython-pygments 2.7.4 Affected Not stated redhat
Red Hat Enterprise Linux RHEL-8 python-pygmentssrc Advisory build 2.2.0-22.module+el8.5.0+10788+a4cea9e0 RHSA-2021:4151
Ubuntu bionic python-pygments Advisory build 2.2.0+dfsg-1ubuntu0.1 USN-4885-1
AlmaLinux 8 babel Advisory build 2.5.1-10.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
Red Hat Enterprise Linux RHEL-8 python-pygmentssrc Advisory build 2.2.0-22.module+el8.5.0+10789+e4939b94 RHSA-2021:4150
Ubuntu esm python-pygments Advisory build 1.6+dfsg-1ubuntu1.1+esm1 USN-4897-2
Ubuntu focal python-pygments Advisory build 2.3.1+dfsg-1ubuntu2.1 USN-4885-1
Ubuntu xenial python-pygments Advisory build 2.1+dfsg-1ubuntu0.1 USN-4885-1
Show 93 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 python-nose-docs Advisory build 1.3.7-31.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python-nose-docs Advisory build 1.3.7-31.module_el8.5.0+2569+5c5719bc ALSA-2021:4151
AlmaLinux 8 python-nose-docs Advisory build 1.3.7-31.module_el8.6.0+2781+fed64c13 ALSA-2021:4150
AlmaLinux 8 python-nose-docs Advisory build 1.3.7-31.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python-psycopg2-doc Advisory build 2.7.5-7.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python-pymongo-doc Advisory build 3.7.0-1.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python-pymongo-doc Advisory build 3.7.0-1.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python-sqlalchemy-doc Advisory build 1.3.2-2.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python-sqlalchemy-doc Advisory build 1.3.2-2.module_el8.5.0+2569+5c5719bc ALSA-2021:4151
AlmaLinux 8 python-sqlalchemy-doc Advisory build 1.3.2-2.module_el8.6.0+2781+fed64c13 ALSA-2021:4150
AlmaLinux 8 python-sqlalchemy-doc Advisory build 1.3.2-2.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python-virtualenv-doc Advisory build 15.1.0-21.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python-virtualenv-doc Advisory build 15.1.0-21.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python2-Cython Advisory build 0.28.1-7.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-PyMySQL Advisory build 0.8.0-10.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-attrs Advisory build 17.4.0-10.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-babel Advisory build 2.5.1-10.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-backports Advisory build 1.0-16.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-backports-ssl_match_hostname Advisory build 3.5.0.1-12.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-bson Advisory build 3.7.0-1.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-chardet Advisory build 3.0.4-10.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-coverage Advisory build 4.5.1-4.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-dns Advisory build 1.15.0-10.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-docs Advisory build 2.7.16-2.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-docs-info Advisory build 2.7.16-2.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-docutils Advisory build 0.14-12.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-funcsigs Advisory build 1.0.2-13.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-idna Advisory build 2.5-7.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-ipaddress Advisory build 1.0.18-6.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-jinja2 Advisory build 2.10-9.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-markupsafe Advisory build 0.23-19.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-mock Advisory build 2.0.0-13.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-nose Advisory build 1.3.7-31.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-numpy Advisory build 1:1.14.2-16.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-numpy-doc Advisory build 1:1.14.2-16.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-numpy-f2py Advisory build 1:1.14.2-16.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pluggy Advisory build 0.6.0-8.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-psycopg2 Advisory build 2.7.5-7.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-psycopg2-debug Advisory build 2.7.5-7.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-psycopg2-tests Advisory build 2.7.5-7.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-py Advisory build 1.5.3-6.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pygments Advisory build 2.2.0-22.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pymongo Advisory build 3.7.0-1.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pymongo-gridfs Advisory build 3.7.0-1.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pysocks Advisory build 1.6.8-6.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pytest Advisory build 3.4.2-13.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pytest-mock Advisory build 1.9.0-4.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pytz Advisory build 2017.2-12.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-pyyaml Advisory build 3.12-16.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-requests Advisory build 2.20.0-3.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-rpm-macros Advisory build 3-38.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-scipy Advisory build 1.0.0-21.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-setuptools Advisory build 39.0.1-13.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-setuptools-wheel Advisory build 39.0.1-13.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-setuptools_scm Advisory build 1.15.7-6.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-six Advisory build 1.11.0-6.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-sqlalchemy Advisory build 1.3.2-2.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-urllib3 Advisory build 1.24.2-3.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-virtualenv Advisory build 15.1.0-21.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-wheel Advisory build 1:0.31.1-3.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python2-wheel-wheel Advisory build 1:0.31.1-3.module_el8.6.0+2781+fed64c13 ALSA-2021:4151
AlmaLinux 8 python3-PyMySQL Advisory build 0.10.1-2.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-PyMySQL Advisory build 0.10.1-2.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-bson Advisory build 3.7.0-1.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-bson Advisory build 3.7.0-1.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-distro Advisory build 1.4.0-2.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-distro Advisory build 1.4.0-2.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-docs Advisory build 3.6.7-2.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-docs Advisory build 3.6.7-2.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-docutils Advisory build 0.14-12.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-docutils Advisory build 0.14-12.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-nose Advisory build 1.3.7-31.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-nose Advisory build 1.3.7-31.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-pygments Advisory build 2.2.0-22.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-pygments Advisory build 2.2.0-22.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-pymongo Advisory build 3.7.0-1.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-pymongo Advisory build 3.7.0-1.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-pymongo-gridfs Advisory build 3.7.0-1.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-pymongo-gridfs Advisory build 3.7.0-1.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-scipy Advisory build 1.0.0-21.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-scipy Advisory build 1.0.0-21.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-sqlalchemy Advisory build 1.3.2-2.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-sqlalchemy Advisory build 1.3.2-2.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-virtualenv Advisory build 15.1.0-21.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-virtualenv Advisory build 15.1.0-21.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-wheel Advisory build 1:0.31.1-3.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-wheel Advisory build 1:0.31.1-3.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python3-wheel-wheel Advisory build 1:0.31.1-3.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python3-wheel-wheel Advisory build 1:0.31.1-3.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python36 Advisory build 3.6.8-38.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python36 Advisory build 3.6.8-38.module_el8.5.0+2569+5c5719bc ALSA-2021:4150
AlmaLinux 8 python36-debug Advisory build 3.6.8-38.module_el8.5.0+135+5ce32bc4 ALSA-2021:4150
AlmaLinux 8 python36-debug Advisory build 3.6.8-38.module_el8.5.0+2569+5c5719bc ALSA-2021:4150

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · redhat · cna

Vendor advisories explicitly linked to this CVE.

41

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a python-pygments python-pygments 2.7.4 (affected) redhat · cna

Weaknesses

1
  • CWE-835 (redhat · cna)

References

5

Provider assertions

2

redhat · cna

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
af121e2576f17a630904b6c61bc3c888d8cb4a67f0de034e627b662f94ee1612
Ingested
23 Sep 2026, 07:52:16 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected