Who is down right now

20 down now · 248 this week

Cloudflare · Cloud and hostingJul 2, 2019, 13:42 UTC 7 years ago

WAF regular expression exhausts CPU worldwide for 27 minutes

CriticalDeploymentUpdated 47d ago
Jul 2, 13:42 UTCJul 2, 14:09 UTC
Duration
27m
Impact
Critical
Root cause
Deployment
Cloudflare, 90 days
187 incidents
Affected
CDNWAFGlobal

Lesson: Rules and regexes are code; stage them, and use an engine with guaranteed linear time for untrusted input.

What happened

A new WAF rule for XSS detection contained a regular expression with catastrophic backtracking. Deployed globally through an automatic process, it pushed CPU to 100% on every HTTP server and the network dropped traffic for 27 minutes.

More from Cloudflare

Full history

Also caused by deployment or rollout

All