Name | CVE-2022-40896 |
Description | A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
pygments (PTS) | jessie, jessie (lts) | 2.0.1+dfsg-1.1+deb8u3 | vulnerable |
| stretch (security), stretch (lts), stretch | 2.2.0+dfsg-1+deb9u2 | vulnerable |
| buster (security), buster, buster (lts) | 2.3.1+dfsg-1+deb10u2 | vulnerable |
| bullseye | 2.7.1+dfsg-2.1 | vulnerable |
| bookworm | 2.14.0+dfsg-1 | vulnerable |
| sid, trixie | 2.18.0+dfsg-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
pygments | source | (unstable) | 2.15.1+dfsg-1 | | | |
Notes
[bookworm] - pygments <no-dsa> (Minor issue)
[bullseye] - pygments <no-dsa> (Minor issue)
[buster] - pygments <no-dsa> (Minor issue)
https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/
https://github.com/pygments/pygments/issues/2356
https://github.com/pygments/pygments/issues/2355
https://github.com/pygments/pygments/commit/dd52102c38ebe78cd57748e09f38929fd283ad04 (2.14.0)
https://github.com/pygments/pygments/commit/97eb3d5ec7c1b3ea4fcf9dee30a2309cf92bd194 (2.15.0)
https://github.com/pygments/pygments/commit/fdf182a7af85b1deeeb637ca970d31935e7c9d52 (2.15.1)
[stretch] - pygments <no-dsa> (Minor issue and only partially affected)
[jessie] - pygments <no-dsa> (Minor issue and only partially affected)