{"id":"OESA-2021-1154","summary":"python-pygments security update","details":"\r\n\r\nSecurity Fix(es):\r\n\r\nIn pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an attacker can cause a denial of service.(CVE-2021-27291)\r\n\r\nAn infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the &quot;exception&quot; keyword.(CVE-2021-20270)","modified":"2025-09-03T06:17:14.219423Z","published":"2021-05-06T11:02:50Z","upstream":["CVE-2021-20270","CVE-2021-27291"],"database_specific":{"severity":"High"},"references":[{"type":"ADVISORY","url":"https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1154"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27291"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20270"}],"affected":[{"package":{"name":"python-pygments","ecosystem":"openEuler:20.03-LTS-SP1","purl":"pkg:rpm/openEuler/python-pygments&distro=openEuler-20.03-LTS-SP1"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.2-3.oe1"}]}],"ecosystem_specific":{"noarch":["python3-pygments-2.5.2-3.oe1.noarch.rpm","python2-pygments-2.5.2-3.oe1.noarch.rpm","python-pygments-help-2.5.2-3.oe1.noarch.rpm"],"src":["python-pygments-2.5.2-3.oe1.src.rpm"]},"database_specific":{"source":"https://repo.openeuler.org/security/data/osv/OESA-2021-1154.json"}}],"schema_version":"1.7.3"}