Lucene search

K
osvGoogleOSV:GHSA-PQ64-V7F5-GQH8
HistoryMar 29, 2021 - 4:33 p.m.

Pygments vulnerable to Regular Expression Denial of Service (ReDoS)

2021-03-2916:33:03
Google
osv.dev
40

0.01 Low

EPSS

Percentile

83.4%

In 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.