GitHub Advisoryadvisory · PyPI
GHSA-mrwq-x4v8-fh7p Pygments vulnerable to ReDoS
MEDIUM
Official page ↗
- Aliases
- CVE-2022-40896
- Ecosystem
- PyPI
- Packages
- Pygments
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-434
- Reviewed
- 2023-07-20
Affected packages
• PyPI Pygments: < 2.15.0 → fixed in 2.15.0
Description
A ReDoS issue was discovered in `pygments/lexers/smithy.py` in Pygments until 2.15.0 via SmithyLexer.
Related
Alias · CVE (1)
- CVE-2022-40896 A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer. vulnerability
Weakness · CWE (1)
- CWE-434 Unrestricted Upload of File with Dangerous Type weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-40896 advisory
- https://github.com/pygments/pygments/commit/97eb3d5ec7c1b3ea4fcf9dee30a2309cf92bd194 web
- https://github.com/pygments/pygments/commit/dd52102c38ebe78cd57748e09f38929fd283ad04 web
- https://github.com/pygments/pygments/commit/fdf182a7af85b1deeeb637ca970d31935e7c9d52 web
- https://github.com/pygments/pygments package
- https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61 web
- https://github.com/pypa/advisory-database/tree/main/vulns/pygments/PYSEC-2023-117.yaml web
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3 web
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO web
- https://pypi.org/project/Pygments web
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2 web