{"schema_version":"1.7.2","id":"OESA-2021-1154","modified":"2021-05-06T11:02:50Z","published":"2021-05-06T11:02:50Z","upstream":["CVE-2021-27291","CVE-2021-20270"],"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 \u0026quot;exception\u0026quot; keyword.(CVE-2021-20270)","affected":[{"package":{"ecosystem":"openEuler:20.03-LTS-SP1","name":"python-pygments","purl":"pkg:rpm/openEuler/python-pygments\u0026distro=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"]}}],"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"}],"database_specific":{"severity":"High"}}