Regular expression denial of service (ReDoS) attacks exploit the fact that regex engines can enter exponential backtracking situations on certain inputs. This can cause programs using regex to hang indefinitely. The Cloudflare outage in July 2019 was caused by a ReDoS vulnerability in one of their WAF rules containing the pattern ".*.*=.*", which led to catastrophic backtracking when the "=" was missing. Mitigations include using lazy/possessive quantifiers to reduce backtracking, or rewriting patterns to avoid backtracking engines and instead use deterministic finite automata.