{"id":"UBUNTU-CVE-2022-40896","details":"A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.","modified":"2026-01-30T01:04:49.091199Z","published":"2023-07-19T15:15:00Z","related":["USN-7128-1"],"upstream":["CVE-2022-40896"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-40896"},{"type":"REPORT","url":"https://pypi.org/project/Pygments/"},{"type":"REPORT","url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/"},{"type":"REPORT","url":"https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-40896"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7128-1"}],"affected":[{"package":{"name":"pygments","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pygments@2.2.0+dfsg-1ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0+dfsg-1","2.2.0+dfsg-1ubuntu0.1","2.2.0+dfsg-1ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.0+dfsg-1ubuntu0.2","binary_name":"python-pygments"},{"binary_version":"2.2.0+dfsg-1ubuntu0.2","binary_name":"python3-pygments"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40896.json"}},{"package":{"name":"pygments","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pygments@2.3.1+dfsg-1ubuntu2.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.1+dfsg-1ubuntu1","2.3.1+dfsg-1ubuntu2","2.3.1+dfsg-1ubuntu2.1","2.3.1+dfsg-1ubuntu2.2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.3.1+dfsg-1ubuntu2.2","binary_name":"python-pygments"},{"binary_version":"2.3.1+dfsg-1ubuntu2.2","binary_name":"python3-pygments"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40896.json"}},{"package":{"name":"pygments","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pygments@2.11.2+dfsg-2ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.11.2+dfsg-2ubuntu0.1"}]}],"versions":["2.7.1+dfsg-2.1","2.10.0+dfsg-1","2.11.2+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.11.2+dfsg-2ubuntu0.1","binary_name":"python3-pygments"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40896.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}