Skip to content
OpenAdvisories
Medium · 5.5 CVE-2022-40896 EUVD-2023-0215GHSA-mrwq-x4v8-fh7pPYSEC-2023-117

Pygments vulnerable to ReDoS

Published Jul 19, 2023 · Updated Nov 27, 2024 · Assigned by mitre

Description

A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pygments 2.15.1+dfsg-1 —
Debian 13 pygments 2.15.1+dfsg-1 —
Debian 12 pygments No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS pygments 2.11.2+dfsg-2ubuntu0.1 USN-7128-1
Ubuntu 20.04 LTS pygments No fix yet —
Ubuntu 18.04 LTS pygments No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 foreman +1 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 puppetserver 7.14.0-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 python-aiohttp +1 3.9.2-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-django +1 4.2.9-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-galaxy-importer +1 0.4.19-2.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-jinja2 +1 3.1.3-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-pycryptodomex +1 3.20.0-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-pygments +1 2.17.0-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 rubygem-activesupport 6.1.7.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 foreman +14 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 puppetserver 7.14.0-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 python-aiohttp +1 3.9.2-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-django +1 4.2.9-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-galaxy-importer +1 0.4.19-2.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-jinja2 +1 3.1.3-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-pycryptodomex +1 3.20.0-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-pygments +1 2.17.0-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 rubygem-activesupport 6.1.7.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 rubygem-audited 5.4.2-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 rubygem-puma 6.4.2-1.el8sat RHSA-2024:2010
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform Inside 2 python-jinja2 +1 3.1.3-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Inside 2 python-pygments +1 2.17.2-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Inside 2 python39-jinja2 +1 3.1.3-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform Inside 2 python39-pygments +1 2.17.2-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python-jinja2 +1 3.1.3-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python-pygments +1 2.17.2-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python39-jinja2 +1 3.1.3-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform Developer 2 python39-pygments +1 2.17.2-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 ansible-automation-platform-installer 2.4-6.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 ansible-rulebook +3 1.0.5-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-aiohttp +1 3.9.1-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-django +1 4.2.10-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-jinja2 +1 3.1.3-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-pillow +1 10.0.1-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-pycryptodomex +1 3.20.0-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python-pygments +1 2.17.2-1.el9ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-aiohttp +1 3.9.1-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-django +1 4.2.10-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-jinja2 +1 3.1.3-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-pillow +1 10.0.1-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-pycryptodomex +1 3.20.0-1.el8ap RHSA-2024:1057
Red Hat Ansible Automation Platform 2 python39-pygments +1 2.17.2-1.el8ap RHSA-2024:1057

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-pygments 2.4.2-1 —
Azure Linux 2 (CBL-Mariner) python-pygments 2.4.2-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pygments < 2.15.0 2.15.0 GHSA-mrwq-x4v8-fh7p
PyPI pygments < 2.15.1 2.15.1 PYSEC-2023-117

Advisories 7

References