CVEfocus › CVE database › CVE-2022-40896

CVE-2022-40896

CVSS 5.5 MediumEPSS 0.5% (higher than 45% of CVEs)Published 2023-07-19Updated 2024-11-27Assigner: mitre

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

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
5Fix pending
19Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04pygmentsNot affected
vulnerable_code_not_present
Ubuntu 22.04pygmentsFixed2.11.2+dfsg-2ubuntu0.1UBUNTU-CVE-2022-40896
Ubuntu 20.04pygmentsWill not fix
This CVE is comprised of Smithy, SQL/SQL+Jinja, and Java properties files ReDoS vulnerabilities. Smithy appears to only be included in jammy and above, while…
UBUNTU-CVE-2022-40896
Ubuntu 18.04pygmentsWill not fix
This CVE is comprised of Smithy, SQL/SQL+Jinja, and Java properties files ReDoS vulnerabilities. Smithy appears to only be included in jammy and above, while…
UBUNTU-CVE-2022-40896
Ubuntu 16.04pygmentsWill not fix
This CVE is comprised of Smithy, SQL/SQL+Jinja, and Java properties files ReDoS vulnerabilities. Smithy appears to only be included in jammy and above, while…
Debian 14pygmentsFixed2.15.1+dfsg-1DEBIAN-CVE-2022-40896
Debian 13pygmentsFixed2.15.1+dfsg-1DEBIAN-CVE-2022-40896
Debian 12pygmentsFix pendingDEBIAN-CVE-2022-40896
Red Hat Enterprise Linux 9python3.11-pipWill not fix
Will not fix
Red Hat Enterprise Linux 9python3.11-pip-wheelWill not fix
Will not fix
Red Hat Enterprise Linux 8python-pygmentsWill not fix
Will not fix
Red Hat Enterprise Linux 8python2-pygmentsWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pygmentsWill not fix
Will not fix
Red Hat Enterprise Linux 8python3.11-pipWill not fix
Will not fix
Red Hat Enterprise Linux 8python3.11-pip-wheelWill not fix
Will not fix
Red Hat Enterprise Linux 8resource-agentsFix pending
Affected
Red Hat Enterprise Linux 8resource-agents-aliyunFix pending
Affected
Red Hat Enterprise Linux 8resource-agents-gcpFix pending
Affected
Red Hat Enterprise Linux 8resource-agents-pafFix pending
Affected
Red Hat Enterprise Linux 7python-pygmentsWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agentsWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-aliyunWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-gcpWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-sapWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-sap-hanaWill not fix
Out of support scope
Red Hat Enterprise Linux 7resource-agents-sap-hana-scaleoutWill not fix
Out of support scope
Red Hat Enterprise Linux 7sap-cluster-connectorWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-pygmentsWill not fix
Out of support scope
PyPI librarypygmentsFixed2.15.0PYSEC-2023-117

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.