Cloudflare Global Outage: Oversized Bot Management Feature File (November 18, 2025)
Summary
On 18 November 2025 an 11:05 UTC ClickHouse database permissions change exposed r0-database table metadata alongside the default database. A Bot Management feature-file generator ran a metadata query over system.columns with no database filter, which then returned duplicated column rows and more than doubled the feature file's size past a hardcoded 200-feature preallocation limit (normal usage ~60 features). When the oversized file propagated network-wide, Cloudflare's FL2 proxy module panicked on a Rust unwrap of an Err value, causing core traffic to return 5xx errors. Customer impact began at 11:28 UTC; responders first suspected a DDoS/Workers KV problem before identifying the config file, deployed a correct file globally at 14:30 UTC, and fully restored all operations by 17:06 UTC.
- Users affected
- Global; a large share of internet users behind Cloudflare. Cloudflare published a 5xx-volume graph but no numeric affected-user or affected-account count. Secondary aggregators (not Cloudflare-confirmed) reported 2.1M+ Downdetector issue reports (435,000+ from the US) and estimated ~20% of webpages and ~1/3 of the top-10,000 sites affected at peak.
- Duration
- 3h 2m — Customer impact 11:28 UTC 18 Nov → correct config deployed, core traffic largely normal 14:30 UTC (dossier ~3h window)
- Financial
- Not disclosed by Cloudflare (no revenue-loss or SLA-credit figure published). Third-party revenue-loss estimates ($180-360M) remain unverified secondary screening figures.
- Scope
- Tier 1 - global, multi-service critical outage
- Site
- Cloudflare global edge network (FL2 core proxy) · Global
- Services down
- Cloudflare core CDN/proxy HTTP traffic (5xx errors), Workers KV, Cloudflare Access, Cloudflare Dashboard / control-plane login (via Turnstile dependency), Downstream customer platforms: X, ChatGPT, Spotify, Canva, League of Legends (seed); secondary coverage adds Zoom, Coinbase, retailers, Downdetector, Claude AI
How the defences failed
Blast radius and user impact scored high: a global edge-network failure took down core HTTP traffic plus Workers KV, Access and the dashboard, cascading into many top-tier consumer platforms. Duration moderate (~3h main impact, ~5h46m end-to-end). Financial score is inferential - Cloudflare disclosed no dollar figure; secondary estimates only. Scores reflect Cloudflare-confirmed scope where available and are dampened where only secondary aggregator data exists.
All 12 impact metrics
| Normal feature count in Bot Management file | ~60 features |
| Hardcoded preallocation limit exceeded | 200 features |
| File size change from unfiltered query | More than doubled (duplicate column rows) |
| Triggering permissions change deployed | 11:05 UTC |
| Customer impact start | 11:28 UTC (chart onset ~11:20) |
| Main impact resolved (correct config deployed) | 14:30 UTC |
| All operations fully restored | 17:06 UTC |
| End-to-end duration | ~5h46m (11:20-17:06 UTC) |
| Main customer-impact window | ~3h (11:28-14:30 UTC) |
| Time from impact to detection | ~3 min (11:28 -> 11:31) |
| Downdetector issue reports (SECONDARY, unconfirmed) | 2.1M+ total; 435,000+ from US |
| Estimated web scope at peak (SECONDARY, unconfirmed) | ~20% of webpages; ~1/3 of top-10,000 sites |
Sequence of events
- TRIGGER 'Ignition': a ClickHouse database access-control/permissions change is deployed (making implicit table access explicit), causing the Bot Management metadata query to also read the r0 database and return duplicate columns.
- CASCADE The unfiltered query 'SELECT name, type FROM system.columns WHERE table = http_requests_features' now returns duplicate r0 columns, 'more than doubling the rows in the response'; the generated Bot Management feature file 'in turn, doubled in size.'
- IMPACT Outage begins: Cloudflare's network starts experiencing significant failures delivering core network traffic.
- CASCADE The oversized (>200-feature) file reaches customer-serving environments; the FL2 Rust proxy hits an unhandled unwrap() and panics ('thread fl2_worker_thread panicked'), killing worker threads and returning HTTP 5xx; legacy FL proxy instead emits a bot score of zero for all traffic.
- DETECTION First automated test detects the issue — roughly 11 minutes after impact began.
- DETECTION Manual investigation started by on-call engineers.First responder
- MITIGATION Internal incident call created (emergency-response analog) — about 15 minutes after impact.
- MITIGATION Misdiagnosis: team 'initially wrongly suspected the symptoms we were seeing were caused by a hyper-scale DDoS attack'; a coincidental failure of the off-infrastructure status page reinforces the false attacker hypothesis, delaying correct diagnosis.Operations lead
- CASCADE System flaps: as the node-by-node permissions rollout produces mixed good/bad files, 'every five minutes there was a chance of either a good or a bad set of configuration files being generated' and the entire system would recover and then fail again.
- IMPACT Collateral blast radius: Turnstile fails to load (blocking dashboard logins), Workers KV returns significantly elevated 5xx, Access sees widespread authentication failures, and Email Security temporarily loses an IP reputation source.
- MITIGATION Selective 'evacuation'/suppression: internal bypasses for Workers KV and Cloudflare Access route them to a prior version of the core proxy, reducing impact.
- RECOVERY Workers KV and Access largely restored via the bypass; Turnstile recovers in this window before a second dip.
- MITIGATION Work focuses on rollback of the Bot Management configuration file to a last-known-good version.
- IMPACT Turnstile experiences a second outage window (~14:40 to ~15:30) before final stabilisation.
- MITIGATION Decisive suppression/isolation: engineers stop the creation and propagation of the bad feature file and insert a known-good file into the feature file distribution queue, neutralising the poisoned config source.Operations lead
- RECOVERY After a successful recovery test and global deployment of the correct config, core traffic is largely flowing as normal.
- RESTORED All systems at Cloudflare functioning as normal; full cleanup complete. CEO Matthew Prince publishes the public post-mortem the same day. No data lost; not a breach.Crisis lead
Response by role
What each role did
Roles the sequence of events shows acting; every entry quotes its source line. Select a time to jump to it.
Role by role
Recorded actions / playbook actions per role. A role with 0 recorded actions does not appear in the sources.
Cloudflare on-call engineers — not individually named — Meets the first alarm: on-shift technician or security in a facility, on-call engineer in a service.
On the record
- Start a manual investigation at 11:32 UTC, one minute after the first automated test fired
Manual investigation started by on-call engineers.
Playbook analyst guidance by failure mode, not a record of what happened
- FM-01On a permissions change, diff the row count of the generated feature file against the previous one and alert on any jumpSRE incident mgmt
- FM-03Alarm on a feature file that exceeds its expected size, before it reaches customer-serving machinesSRE incident mgmtLesson #1
- FM-06Test the kill-switch path on a schedule, and alarm if it cannot reach all proxiesSRE incident mgmt
- FM-02Alert when the generator output has duplicate feature names or more rows than the previous runSRE incident mgmt
- FM-07Ask whether the failure flaps on a five-minute cycle, which points to a generated file and not an attackerSRE incident mgmtLesson #3
- FM-04Alert on worker-thread panic counts and 5xx rates per proxy version, not just the global error rateSRE incident mgmt
- FM-08Alert on dashboard login and Turnstile load failures, since customers cannot log in to see statusSRE incident mgmt
- FM-05Alarm when the bot-score distribution collapses to zero across all trafficSRE incident mgmt
No incident commander is named in the record; an internal incident call was created — Owns every decision until formally relieved: site duty manager on scene, or the declared IC of a service incident.
On the record
No action by this role appears in the sources.
Playbook analyst guidance by failure mode, not a record of what happened
- FM-07Add a playbook step: before declaring an attack, compare recent configuration pushes with the start of the symptomsSRE incident mgmtImprovement #6
- FM-01Link the incident timeline to the 11:05 change and name the change owner on the incident callSRE incident mgmt
- FM-03Assign one person to hold the queue and refuse further pushes until the file is validatedSRE incident mgmt
- FM-06Order the rollback to the last-known-good file as soon as the bad file is identified, rather than keep diagnosingSRE incident mgmt
- FM-02Hold generation off until the query is fixed and the output checked by a second engineerSRE incident mgmt
- FM-07Assign one engineer to test the attack hypothesis and another to check config pushes in parallelSRE incident mgmt
- FM-04Declare the incident and put the proxy owners on the call at the first FL2 panicSRE incident mgmt
Cloudflare engineers who bypassed products and stopped the bad file — not named — Technical lead who diagnoses and drives the fix; the subject-matter expert at the keyboard or the switchboard.
On the record
- The team first suspects a hyper-scale DDoS attack, reinforced by a coincidental status-page failure
initially wrongly suspected the symptoms we were seeing were caused by a hyper-scale DDoS attack
- Stop creation and propagation of the bad file at 14:24 UTC and insert a known-good file into the queue
engineers stop the creation and propagation of the bad feature file
Playbook analyst guidance by failure mode, not a record of what happened
- FM-03Stop the every-five-minutes distribution queue and pin the proxies to the last-known-good fileSRE incident mgmt
- FM-06Stop file generation and insert a known-good file, the durable stop used at 14:24 UTCSRE incident mgmtLesson #5
- FM-02Halt the feature-file generator job so no further oversized file is writtenSRE incident mgmt
- FM-04Route traffic away from the FL2 proxy where a legacy path exists, as was done for Workers KV and AccessSRE incident mgmt
- FM-08Route Workers KV and Access to the prior core proxy version, as done at 13:04 UTCSRE incident mgmt
- FM-05Disable bot-score based rules for customers on the legacy path so false blocks stopSRE incident mgmt
- FM-07Pin the rollout so every node serves the same file, ending the good/bad flappingSRE incident mgmt
The team that deployed the ClickHouse permissions change — not named — Authored or approved the change, deployment or configuration push that started the event.
On the record
No action by this role appears in the sources.
Playbook analyst guidance by failure mode, not a record of what happened
- FM-01Run change-impact analysis and staged validation on ClickHouse permission changes, including every query that reads system tablesChange managementCorrection of errors #5
- FM-01Deploy the permissions change to one cluster first and run the Bot Management file generator against it before wideningChange managementImprovement #4
- FM-03Apply bounds checks on size and row count to Cloudflare-generated files, as for user input, before they enter distributionChange managementCorrection of errors #1
- FM-06Build global, feature-level kill switches so Bot Management scoring can be disabled network-wide at onceChange managementCorrection of errors #2
- FM-02Add an explicit database-name filter to the system.columns query and de-duplicate columns before the file is builtChange managementImprovement #7
- FM-04Replace the unguarded unwrap() with explicit handling that keeps the previous config when the file is rejectedChange managementImprovement #3
- FM-04Review every core proxy module for error paths that panic on malformed inputChange managementCorrection of errors #4
- FM-08Give Turnstile, Workers KV and Access a bypass route to a prior proxy version that can be switched on quicklyChange management
- FM-05Make the legacy proxy reject an oversized file and raise an error rather than emit a zero bot scoreChange managementLesson #4
- FM-01Revert the permissions change on the cluster as soon as the generated file is found to have doubledChange management
Cloudflare engineers who deployed the known-good file — not named — Restores customer service: failover, workload moves, capacity, backlog drain.
On the record
No action by this role appears in the sources.
Playbook analyst guidance by failure mode, not a record of what happened
- FM-01Regenerate the feature file from the reverted cluster and check its row count before publishingITIL 4
- FM-03Insert the validated file into the queue, then watch several cycles to confirm no bad file reappearsITIL 4
- FM-06Deploy the correct configuration globally after a recovery testITIL 4
- FM-02Rerun the fixed query and diff its output with the last known-good file before queueing it for distributionITIL 4
- FM-04Restart the FL2 workers after the good file is loaded and confirm 5xx rates return to baselineITIL 4
- FM-08Confirm Turnstile, KV and Access are normal once the proxy is fixed, and watch for a second dipITIL 4
- FM-05Restore scoring once the known-good file is loaded and re-enable the customers' rulesITIL 4
Cloudflare public status communications — not in this sequence of events — Status page, customer notices, regulators and press; one voice, timed updates.
On the record
No action by this role appears in the sources.
Playbook analyst guidance by failure mode, not a record of what happened
- FM-07Host the external status page off Cloudflare's own path so its failure is not a false signal for respondersSRE incident mgmtImprovement #6
Matthew Prince, Cloudflare chief executive — Executive owner of business continuity: invokes plans, commits money, speaks to authorities.
On the record
- Publishes the post-mortem the same day: no data lost, not a breach
CEO Matthew Prince publishes the public post-mortem the same day
Playbook analyst guidance by failure mode, not a record of what happened
Cloudflare customers and products behind the core proxy — The tenant or service user: their own redundancy, backups and continuity plan.
On the record
No action by this role appears in the sources.
Playbook analyst guidance by failure mode, not a record of what happened
- FM-08Retry blocked logins and queued requests after service returnsITIL 4
Failure mode & effects analysis (FMEA)
The Bot Management configuration path in Cloudflare's global edge: the ClickHouse permissions change process, the feature-file generator and its metadata query, the ingestion of the generated file by the FL2 and legacy FL core proxies, the means to stop or roll back a bad file, incident diagnosis, and the products that ride on the core proxy (Turnstile, Workers KV, Access). Analysed retrospectively from Cloudflare's same-day official post-mortem held in this dossier. Affected-user counts and dollar figures are secondary or undisclosed and are not used to score severity. Four corrective actions are recorded as committed by Cloudflare with completion not confirmed; the permissions change-review action is only 'implied', and the query fix and status-page hardening carry no stated status.
- Caught only after impactD ≥ 8
- 7 of 8
- Actions that cut occurrenceO lowered
- 1
- Actions that cut detectionD lowered
- 1
- Actions that cut severityS lowered
- 2
FM-01 A permissions change that made implicit table access explicit is deployed without analysis of its effect on the Bot Management metadata queryClickHouse permissions change process 9·6·8 432 —
- Function
- Apply database access-control changes without altering what downstream jobs read
- Effect
- The querying user can now see the r0 database alongside default; the feature-file query returns duplicate column rows and the generated file more than doubles in size
- Cause
- No change-impact analysis linking database permission changes to the queries that depend on them
- Prevention in place
- None recorded
- Detection in place
- None before deployment; the first automated test caught the effect after customer impact had begun
- S 9
- This is the trigger of a provider-wide outage of Cloudflare's core HTTP proxy, a foundational service for its customers, with no workaround for them: the rubric's 9. Not 10: no hazard to people and no loss of a facility.
- O 6
- The dossier calls it a routine access-control change, and nothing recorded checked its downstream effect: 'occasional, weakly guarded'.
- D 8
- No pre-deployment control is recorded; the fault was found by an automated test after impact began, so 'detected after impact by internal monitoring'.
Corrective action
- Add change-impact analysis and staged validation for ClickHouse permission changes Correction of errors #5
Who acts — playbook
- Change owner Run change-impact analysis and staged validation on ClickHouse permission changes, including every query that reads system tablesChange managementCorrection of errors #5
- Change owner Deploy the permissions change to one cluster first and run the Bot Management file generator against it before wideningChange managementImprovement #4
- First responder On a permissions change, diff the row count of the generated feature file against the previous one and alert on any jumpSRE incident mgmt
- Change owner Revert the permissions change on the cluster as soon as the generated file is found to have doubledChange management
- Incident commander Link the incident timeline to the 11:05 change and name the change owner on the incident callSRE incident mgmt
- Service recovery lead Regenerate the feature file from the reverted cluster and check its row count before publishingITIL 4
Evidence
- Sequence of events #12025-11-18 11:05 UTC — 'Ignition': a ClickHouse database access-control/permissions change is deployed (making implicit table access explicit), causing the Bot Management metadata query to also read the r0 database and return duplicate columns.
- Contributing factor #1“deployed without analysing that it would expose the r0 database”
- Metric #4Triggering permissions change deployed: 11:05 UTC
- Sequence of events #52025-11-18 11:31 UTC — First automated test detects the issue — roughly 11 minutes after impact began.
FM-03 The generated file is trusted and pushed network-wide every few minutes with no size or row sanity checkFeature-file distribution and ingestion 9·5·8 360 36
- Function
- Stop a malformed internally generated configuration file before it reaches every proxy
- Effect
- The oversized file reaches customer-serving machines across the global network within minutes of being generated
- Cause
- First-party configuration treated as trusted input; no bounds check before load
- Prevention in place
- None recorded
- Detection in place
- Automated test at 11:31 UTC, after impact
- S 9
- Global propagation is what made the fault provider-wide rather than local.
- O 5
- Any bad file the generator emits takes this path, and the file is regenerated every few minutes, so the exposure is frequent; held at 5 because a bad file itself needs an upstream fault (FM-01, FM-02).
- D 8
- No gate inspected the file before load; detection came from an automated test after customers were already seeing errors.
Corrective action
- Harden ingestion of Cloudflare-generated configuration files as for user-generated input, with explicit size and row bounds checks before load Correction of errors #1
After action: S9 · O2 · D2 → RPN 36. A bounds check before load would refuse the oversized file, so a bad file can still be generated but should no longer reach the proxies (O 5→2), and the refusal is an automated interlock (D 8→2). Severity is unchanged if a file passed the check another way. Cloudflare records this action as committed, not completed, so the reduction is a claim about the action, not a confirmed outcome.
Who acts — playbook
- Change owner Apply bounds checks on size and row count to Cloudflare-generated files, as for user input, before they enter distributionChange managementCorrection of errors #1
- First responder Alarm on a feature file that exceeds its expected size, before it reaches customer-serving machinesSRE incident mgmtLesson #1
- Operations lead Stop the every-five-minutes distribution queue and pin the proxies to the last-known-good fileSRE incident mgmt
- Incident commander Assign one person to hold the queue and refuse further pushes until the file is validatedSRE incident mgmt
- Service recovery lead Insert the validated file into the queue, then watch several cycles to confirm no bad file reappearsITIL 4
Evidence
- Contributing factor #2“the feature file was consumed without a size/row sanity check”
- Sequence of events #42025-11-18 11:28 UTC — The oversized (>200-feature) file reaches customer-serving environments; the FL2 Rust proxy hits an unhandled unwrap() and panics ('thread fl2_worker_thread panicked'), killing worker threads and returning HTTP 5xx; legacy FL proxy instead emits a bot score of zero for all traffic.
- Technical deep-dive“the feature file is refreshed every few minutes and published network-wide”
- Metric #10Time from impact to detection: ~3 min (11:28 -> 11:31)
FM-06 No effective global kill switch for Bot Management; recovery needs manually stopping file generation and injecting a known-good fileFeature kill switch and rollback path 8·5·9 360 270
- Function
- Disable a faulty feature or restore a last-known-good file network-wide within minutes
- Effect
- Main impact lasts about 3 hours (11:28 to 14:30 UTC); full restoration at 17:06 UTC, about 5 h 46 min end to end
- Cause
- Insufficient feature-level kill switches for globally distributed configuration
- Prevention in place
- None recorded
- Detection in place
- Not applicable before the incident; the gap was found during recovery
- S 8
- This mode sets the duration rather than the existence of the outage: hours of full outage of a major service is the rubric's 8.
- O 5
- The gap is present whenever any bad feature configuration propagates, more than an unusual combination; held at 5 because it only matters after another failure.
- D 9
- No control is recorded that would have revealed the missing kill switch before an incident needed it.
Corrective action
- Enable more global, feature-level kill switches so Bot Management scoring can be disabled instantly network-wide Correction of errors #2
After action: S6 · O5 · D9 → RPN 270. An instant global disable would cut the outage from hours to the time needed to decide to use it, leaving a degraded bot-scoring feature instead of failing traffic (S 8→6). The gap is still exercised by any bad file, so O and D are unchanged. Recorded as committed, not completed: the reduction is a claim about the action, not a confirmed outcome.
Who acts — playbook
- Change owner Build global, feature-level kill switches so Bot Management scoring can be disabled network-wide at onceChange managementCorrection of errors #2
- First responder Test the kill-switch path on a schedule, and alarm if it cannot reach all proxiesSRE incident mgmt
- Operations lead Stop file generation and insert a known-good file, the durable stop used at 14:24 UTCSRE incident mgmtLesson #5
- Incident commander Order the rollback to the last-known-good file as soon as the bad file is identified, rather than keep diagnosingSRE incident mgmt
- Service recovery lead Deploy the correct configuration globally after a recovery testITIL 4
On the record at this failure
- Operations lead Stop creation and propagation of the bad file at 14:24 UTC and insert a known-good file into the queue
Evidence
- Contributing factor #5“there was no effective way to instantly disable Bot Management scoring network-wide”
- Sequence of events #132025-11-18 13:37 UTC — Work focuses on rollback of the Bot Management configuration file to a last-known-good version.
- Sequence of events #152025-11-18 14:24 UTC — Decisive suppression/isolation: engineers stop the creation and propagation of the bad feature file and insert a known-good file into the feature file distribution queue, neutralising the poisoned config source.
- Metric #9Main customer-impact window: ~3h (11:28-14:30 UTC)
- Metric #8End-to-end duration: ~5h46m (11:20-17:06 UTC)
FM-02 The query on system.columns has no database-name filter, so it returns one row per visible database and duplicates every featureBot Management feature-file generator (metadata query) 9·4·8 288 —
- Function
- Build a feature file listing each machine-learning feature once, whatever the querying user can see
- Effect
- Feature rows more than double, pushing the file past the 200-feature runtime limit against about 60 features in normal use
- Cause
- Generator output depends on the querying user's database visibility rather than on an explicit database predicate
- Prevention in place
- None recorded
- Detection in place
- None recorded; the duplication was not checked by the generator
- S 9
- This is the mechanism by which the permissions change became the provider-wide outage, so it carries the same severity as FM-01.
- O 4
- The latent defect stays harmless until a permissions change exposes a second database, an unusual combination, so 'infrequent'. Scored below FM-01 so the one event is not counted twice at full weight.
- D 8
- Nothing in the generator compared row counts with the expected feature set; the bad file was found from its effect on the proxies.
Corrective action
- Query the metadata table with an explicit database-name filter and de-duplicate columns Improvement #7
Who acts — playbook
- Change owner Add an explicit database-name filter to the system.columns query and de-duplicate columns before the file is builtChange managementImprovement #7
- First responder Alert when the generator output has duplicate feature names or more rows than the previous runSRE incident mgmt
- Operations lead Halt the feature-file generator job so no further oversized file is writtenSRE incident mgmt
- Incident commander Hold generation off until the query is fixed and the output checked by a second engineerSRE incident mgmt
- Service recovery lead Rerun the fixed query and diff its output with the last known-good file before queueing it for distributionITIL 4
Evidence
- Root cause“The query lacked a database-name predicate.”
- Sequence of events #22025-11-18 11:05 UTC — The unfiltered query 'SELECT name, type FROM system.columns WHERE table = http_requests_features' now returns duplicate r0 columns, 'more than doubling the rows in the response'; the generated Bot Management feature file 'in turn, doubled in size.'
- Metric #1Normal feature count in Bot Management file: ~60 features
- Metric #3File size change from unfiltered query: More than doubled (duplicate column rows)
- Reference #1 · official-postmortem“This query lacked a database filter, so it now returned duplicate column entries from both databases”
FM-07 Recover-then-fail flapping and a coincidental status-page failure lead responders to a hyper-scale DDoS hypothesisIncident diagnosis under a mixed-fleet rollout 6·5·8 240 —
- Function
- Identify the faulty configuration quickly once the 5xx surge is detected
- Effect
- Correct diagnosis is delayed; work on rolling back the Bot Management file starts at 13:37 UTC, more than two hours after the incident call opened at 11:35
- Cause
- Node-by-node permissions rollout producing a good or bad file every five minutes, plus an unrelated status-page outage that reinforced the attacker theory
- Prevention in place
- None recorded
- Detection in place
- None recorded; the misdirection was recognised during the incident
- S 6
- This mode lengthens the outage rather than causing it; scored at 6 so its share of the same duration is not counted again at FM-06's weight.
- O 5
- Gradual rollouts are normal practice and naturally produce mixed fleets, but the coincident status-page failure made this case unusual, so between 'infrequent' and 'occasional'.
- D 8
- Nothing flagged the anchoring on the wrong hypothesis; it was corrected only as investigation progressed.
Corrective action
- Harden the external status page against correlated failure and improve diagnosis playbooks so flapping symptoms are not reflexively attributed to a DDoS attack Improvement #6
Who acts — playbook
- Incident commander Add a playbook step: before declaring an attack, compare recent configuration pushes with the start of the symptomsSRE incident mgmtImprovement #6
- Communications lead Host the external status page off Cloudflare's own path so its failure is not a false signal for respondersSRE incident mgmtImprovement #6
- First responder Ask whether the failure flaps on a five-minute cycle, which points to a generated file and not an attackerSRE incident mgmtLesson #3
- Incident commander Assign one engineer to test the attack hypothesis and another to check config pushes in parallelSRE incident mgmt
- Operations lead Pin the rollout so every node serves the same file, ending the good/bad flappingSRE incident mgmt
On the record at this failure
- Operations lead The team first suspects a hyper-scale DDoS attack, reinforced by a coincidental status-page failure
Evidence
- Sequence of events #8“initially wrongly suspected the symptoms we were seeing were caused by a hyper-scale DDoS attack”
- Sequence of events #9“every five minutes there was a chance of either a good or a bad set of configuration files being generated”
- Contributing factor #8Diagnostic misdirection: a coincidental status-page failure plus flapping symptoms led the team to a wrong hyper-scale-DDoS hypothesis, delaying correct diagnosis.
- Sequence of events #72025-11-18 11:35 UTC — Internal incident call created (emergency-response analog) — about 15 minutes after impact.
- Sequence of events #132025-11-18 13:37 UTC — Work focuses on rollback of the Bot Management configuration file to a last-known-good version.
FM-04 Exceeding the hardcoded 200-feature limit returns an error that an unguarded unwrap() turns into a worker-thread panicFL2 core proxy (Rust) feature loading 9·4·6 216 120
- Function
- Load the feature file into preallocated memory and keep serving traffic when the file is out of bounds
- Effect
- FL2 worker threads die and core traffic returns HTTP 5xx network-wide; core dumps and error reports from the panicking process consume system resources and compound the impact
- Cause
- Hardcoded 200-feature cap with preallocated memory and no graceful-degradation path for an oversized input
- Prevention in place
- A limit set well above the ~60 features in use
- Detection in place
- Automated test at 11:31 UTC, about 3 minutes after the 11:28 impact by the dossier's metric
- S 9
- The panic is the point at which the outage of the core proxy happens: provider-wide, no customer workaround, the rubric's 9.
- O 4
- The limit had over three times headroom, so tripping it needs an unusual input such as a doubled file: 'infrequent'.
- D 6
- The 5xx surge was caught by an automated test within minutes, but nothing prevented the panic: 'detected at onset, not prevented'.
Corrective action
- Review failure modes for error conditions across all core proxy modules so oversized or malformed inputs degrade gracefully instead of panicking Correction of errors #4
- Eliminate the ability for core dumps or other error reports to overwhelm system resources Correction of errors #3
After action: S5 · O4 · D6 → RPN 120. If the proxy degrades instead of panicking, an oversized file costs bot-scoring quality rather than serving traffic, which is customer-visible degradation (S 9→5). O and D are unchanged because the out-of-bounds input can still arrive and is still seen at onset. Both actions are recorded as committed, not completed, so the reduction is a claim about the actions, not a confirmed outcome.
Who acts — playbook
- Change owner Replace the unguarded unwrap() with explicit handling that keeps the previous config when the file is rejectedChange managementImprovement #3
- Change owner Review every core proxy module for error paths that panic on malformed inputChange managementCorrection of errors #4
- First responder Alert on worker-thread panic counts and 5xx rates per proxy version, not just the global error rateSRE incident mgmt
- Operations lead Route traffic away from the FL2 proxy where a legacy path exists, as was done for Workers KV and AccessSRE incident mgmt
- Incident commander Declare the incident and put the proxy owners on the call at the first FL2 panicSRE incident mgmt
- Service recovery lead Restart the FL2 workers after the good file is loaded and confirm 5xx rates return to baselineITIL 4
Evidence
- Reference #2 · official-postmortem“thread fl2_worker_thread panicked: called Result::unwrap() on an Err value”
- Root cause“Currently that limit is set to 200, well above our current use of ~60 features”
- Contributing factor #6Brittle capacity assumption: a hardcoded 200-feature limit with preallocated memory ('for performance reasons we preallocate memory for the features') left no headroom and converted a doubled feature count directly into a fatal condition.
- Contributing factor #7Error-reporting resource exhaustion: core dumps / error reports from the panicking process consumed system resources, compounding impact — remediation: 'Eliminating the ability for core dumps or other error reports to overwhelm system resources.'
- Metric #10Time from impact to detection: ~3 min (11:28 -> 11:31)
FM-08 Hard dependency on the failing core proxy, so the products fail with itProducts dependent on the core proxy (Turnstile, Workers KV, Access) 8·3·9 216 —
- Function
- Keep dashboard login, key-value storage and access authentication available while the core proxy is failing
- Effect
- Turnstile fails to load and blocks dashboard logins, Workers KV returns elevated 5xx, Access sees widespread authentication failures; Turnstile has a second outage window about 14:40 to 15:30 UTC
- Cause
- Products route through the same core proxy with no recorded degraded mode
- Prevention in place
- None recorded
- Detection in place
- Customer-visible impact
- S 8
- Full outage of several major products, including dashboard login, for hours; not scored 9 because the core-proxy outage itself is already scored in FM-04.
- O 3
- Needs the core proxy to fail first, which is infrequent.
- D 9
- Seen through customer impact. Internal bypasses to a prior proxy version at 13:04-13:05 UTC restored Workers KV and Access by about 13:10, but that was mitigation, not detection.
Corrective action
- None published — residual risk.
Who acts — playbook
- Change owner Give Turnstile, Workers KV and Access a bypass route to a prior proxy version that can be switched on quicklyChange management
- First responder Alert on dashboard login and Turnstile load failures, since customers cannot log in to see statusSRE incident mgmt
- Operations lead Route Workers KV and Access to the prior core proxy version, as done at 13:04 UTCSRE incident mgmt
- Communications lead Tell customers that dashboard logins are blocked because Turnstile cannot load, and give a workaround if one existsITIL 4
- Service recovery lead Confirm Turnstile, KV and Access are normal once the proxy is fixed, and watch for a second dipITIL 4
- Customer Retry blocked logins and queued requests after service returnsITIL 4
Evidence
- Sequence of events #102025-11-18 ~11:30 UTC — Collateral blast radius: Turnstile fails to load (blocking dashboard logins), Workers KV returns significantly elevated 5xx, Access sees widespread authentication failures, and Email Security temporarily loses an IP reputation source.
- Sequence of events #112025-11-18 13:04-13:05 UTC — Selective 'evacuation'/suppression: internal bypasses for Workers KV and Cloudflare Access route them to a prior version of the core proxy, reducing impact.
- Sequence of events #122025-11-18 13:10 UTC — Workers KV and Access largely restored via the bypass; Turnstile recovers in this window before a second dip.
- Sequence of events #142025-11-18 ~14:40-15:30 UTC — Turnstile experiences a second outage window (~14:40 to ~15:30) before final stabilisation.
FM-05 Fails silently: the oversized file does not crash the proxy but every request receives a bot score of zeroLegacy FL core proxy feature loading 5·4·9 180 —
- Function
- Produce correct bot scores, or fail visibly, when the feature file is bad
- Effect
- Customer traffic on legacy FL is quietly mis-scored, with no error raised
- Cause
- The legacy path has no error signal for an out-of-bounds feature file
- Prevention in place
- None recorded
- Detection in place
- None recorded for the silent mis-scoring
- S 5
- Traffic kept flowing, but security scoring was wrong for every request: customer-visible degradation rather than an outage.
- O 4
- Needs the same unusual oversized input as FM-04, so 'infrequent'.
- D 9
- The dossier records no control that saw the zero scores; a silent failure is detected only through its effect on customers.
Corrective action
- None published — residual risk.
Who acts — playbook
- Change owner Make the legacy proxy reject an oversized file and raise an error rather than emit a zero bot scoreChange managementLesson #4
- First responder Alarm when the bot-score distribution collapses to zero across all trafficSRE incident mgmt
- Operations lead Disable bot-score based rules for customers on the legacy path so false blocks stopSRE incident mgmt
- Communications lead Tell customers who block on bot score that scores are wrong, and which rules to relaxITIL 4
- Service recovery lead Restore scoring once the known-good file is loaded and re-enable the customers' rulesITIL 4
Evidence
- Root cause“all traffic receiving a bot score of zero”
- Technical deep-dive“legacy FL degraded silently, emitting a uniform bot score of zero”
- Sequence of events #42025-11-18 11:28 UTC — The oversized (>200-feature) file reaches customer-serving environments; the FL2 Rust proxy hits an unhandled unwrap() and panics ('thread fl2_worker_thread panicked'), killing worker threads and returning HTTP 5xx; legacy FL proxy instead emits a bot score of zero for all traffic.
Scoring rubric and method
Scales adapted from IEC 60812:2018 and AIAG-VDA. RPN = S × O × D. High: S ≥ 9 with O ≥ 4 or D ≥ 7, or RPN ≥ 300. Medium: RPN ≥ 120 or S ≥ 7. Severity overrides the product: 9 × 2 × 9 = 162 would otherwise hide a region-wide outage nothing could catch. Quotes are checked verbatim against this dossier; a revised score needs a published action. RZ analyst assessment, not an operator document.
Severity
| 10 | Hazard to people, or loss of the facility / several regions |
| 9 | Region-wide or provider-wide outage of a foundational service, no workaround |
| 8 | Full outage of a major service for hours |
| 7 | Major degradation of a major service |
| 6 | Partial outage confined to one zone or one service |
| 5 | Customer-visible degradation |
| 4 | Limited customer impact |
| 3 | Internal impact only |
| 2 | Negligible |
| 1 | No effect |
Occurrence
| 10 | Near certain: the cause is present in normal operation |
| 8 | Frequent: routine work exercises the cause |
| 6 | Occasional: a foreseeable slip or condition, weakly guarded |
| 4 | Infrequent: needs an unusual combination |
| 2 | Remote: guarded by design |
| 1 | Eliminated by design |
Detection
| 10 | No control could detect it |
| 9 | Detected only through customer impact |
| 8 | Detected after impact by internal monitoring |
| 6 | Detected at onset, not prevented |
| 4 | Detected before impact with time to act |
| 2 | Automated interlock almost certainly stops it |
| 1 | Certain to be stopped |
Root cause and contributing factors
Full root-cause narrative
Contributing factors by category
- Change-impact-analysis gap: the 11:05 UTC ClickHouse permissions change (making implicit table access explicit) was deployed without analysing that it would expose the r0 database to the Bot Management metadata query, doubling the returned rows. Source: official post-mortem, https://blog.cloudflare.com/18-november-2025-outage/
- Missing input validation on internally-generated config: the feature file was consumed without a size/row sanity check. Cloudflare's remediation admits it must begin 'Hardening ingestion of Cloudflare-generated configuration files in the same way we would for user-generated input.'
- Unhandled error path in the FL2 core proxy: an unguarded Result::unwrap() panicked instead of degrading gracefully when the 200-feature cap was exceeded ('thread fl2_worker_thread panicked: called Result::unwrap() on an Err value'), turning a bad config into network-wide 5xx.
- Gradual mixed-fleet rollout: the permissions change propagated node-by-node, so 'every five minutes there was a chance of either a good or a bad set of configuration files being generated,' producing recover-then-fail flapping that masked root cause and prolonged the incident.
- Insufficient feature-level kill switches: there was no effective way to instantly disable Bot Management scoring network-wide; a listed remediation is 'Enabling more global kill switches for features.'
- Brittle capacity assumption: a hardcoded 200-feature limit with preallocated memory ('for performance reasons we preallocate memory for the features') left no headroom and converted a doubled feature count directly into a fatal condition.
- Error-reporting resource exhaustion: core dumps / error reports from the panicking process consumed system resources, compounding impact — remediation: 'Eliminating the ability for core dumps or other error reports to overwhelm system resources.'
- Diagnostic misdirection: a coincidental status-page failure plus flapping symptoms led the team to a wrong hyper-scale-DDoS hypothesis, delaying correct diagnosis.
Analysis
Incident Overview
On 18 November 2025 Cloudflare suffered its worst outage since 2019. Beginning at 11:20 UTC, the network returned widespread HTTP 5xx errors for core traffic and did not fully recover until 17:06 UTC. The trigger was not an attack but a routine ClickHouse database permissions change at 11:05 UTC. CEO Matthew Prince published a same-day public post-mortem stating 'The issue was not caused, directly or indirectly, by a cyber attack or malicious activity of any kind.' No data was lost and there was no breach.
Root Cause and Failure Mechanism
The 11:05 permissions change made implicit table access explicit, exposing the underlying r0 database to an unfiltered feature-generation query ('SELECT name, type FROM system.columns WHERE table = http_requests_features'). The query returned duplicate columns, 'more than doubling the rows,' and the Bot Management feature file 'in turn, doubled in size.' It exceeded a hardcoded 200-feature runtime cap (against ~60 in use) backed by preallocated memory. FL2 (Rust) then panicked on an unhandled unwrap() -- 'thread fl2_worker_thread panicked: called Result::unwrap() on an Err value' -- returning 5xx, while legacy FL silently scored all traffic as bot-zero.
Why It Was Hard to Diagnose
The permissions change rolled out node-by-node, and the feature file republishes every few minutes, so 'every five minutes there was a chance of either a good or a bad set of configuration files being generated.' The system recovered then failed repeatedly. This flapping, compounded by a coincidental failure of the off-infrastructure status page, led the team to 'wrongly suspect the symptoms we were seeing were caused by a hyper-scale DDoS attack,' delaying correct diagnosis and prolonging the outage.
Blast Radius Across Services
Beyond core CDN/proxy 5xx, dependent products failed: Turnstile could not load (blocking dashboard logins, with a second dip ~14:40-15:30), Workers KV returned significantly elevated 5xx, Access saw widespread authentication failures (existing sessions unaffected), and Email Security temporarily lost an IP reputation source and some Auto Move actions. Bypasses for Workers KV and Access at 13:04-13:05 UTC routed them to a prior core-proxy version, restoring them around 13:10.
Remediation and Systemic Lessons
The decisive fix at 14:24 UTC was to stop generation/propagation of the bad file and inject a known-good file. Cloudflare's committed remediations treat the deeper systemic gaps: hardening ingestion of internal config as if untrusted, enabling more global kill switches, eliminating core-dump resource exhaustion, and reviewing failure modes across all core proxy modules. The core lesson: first-party configuration is an untrusted input, and unhandled error paths convert bad data into total outages.
Technical deep-dive
Corrective actions and lessons
Correction of errors
| Action | Owner | Status |
|---|---|---|
| Harden ingestion of Cloudflare-generated configuration files in the same way user-generated input is validated (explicit size/row bounds checks before load). | Cloudflare Engineering | Committed (post-mortem remediation) |
| Enable more global, feature-level kill switches so features such as Bot Management scoring can be disabled instantly network-wide. | Cloudflare Engineering | Committed (post-mortem remediation) |
| Eliminate the ability for core dumps or other error reports to overwhelm system resources during a panic storm. | Cloudflare Engineering | Committed (post-mortem remediation) |
| Review failure modes for error conditions across all core proxy modules so oversized/malformed inputs degrade gracefully instead of panicking. | Cloudflare Engineering | Committed (post-mortem remediation) |
| Add change-impact analysis and staged validation for ClickHouse permission changes so downstream metadata-query effects are caught pre-deployment. | Cloudflare Database/Platform | Implied corrective action |
Lessons learnt
- Internally-generated configuration is an untrusted input: a Cloudflare-authored feature file, refreshed every few minutes and pushed globally, propagated a fatal fault as fast as any external attack could -- validation must apply to first-party artifacts too.
- A benign, well-intentioned permissions change can have catastrophic emergent effects downstream; the blast radius of a database access-control change was not bounded by change review.
- Intermittency is worse than a clean failure for diagnosis: node-by-node rollout produced 5-minute good/bad flapping that masked root cause and drove a wrong hyper-scale-DDoS hypothesis.
- Unhandled error paths turn recoverable conditions into outages: an unguarded Rust unwrap() in FL2 converted 'file too big' into network-wide 5xx, while legacy FL's silent zero-score failure shows the opposite (dangerous) extreme of failing without erroring.
- Missing kill switches cost hours: without an effective feature-level global disable, suppression required manually stopping the generation pipeline and injecting a known-good file -- the only durable stop was neutralising the source.
- Correlated failures mislead responders: a status page that coincidentally went down at the same time pushed the team toward an attacker theory, showing how unrelated symptoms can anchor an incorrect diagnosis.
Improvements
- SafetyEnable global, feature-level kill switches so Bot Management scoring can be disabled instantly network-wide -- Cloudflare remediation: 'Enabling more global kill switches for features.'
- DesignTreat internally-generated config as untrusted -- 'Hardening ingestion of Cloudflare-generated configuration files in the same way we would for user-generated input,' with explicit size/row bounds checks before load.
- DesignReplace fatal error paths in core proxy modules with graceful degradation -- 'Reviewing failure modes for error conditions across all core proxy modules' so an oversized file cannot panic FL2 via an unguarded unwrap().
- MaintenanceAdd change-impact analysis and staged validation for database permission changes so downstream query effects (e.g., r0 exposure doubling metadata rows) are caught before fleet-wide deployment.
- ProcessContain error-reporting resource exhaustion -- 'Eliminating the ability for core dumps or other error reports to overwhelm system resources' during a panic storm.
- ProcessHarden the external status page against correlated failure and improve diagnosis playbooks so flapping symptoms are not reflexively attributed to a DDoS attack.
- DesignQuery the metadata table with an explicit database-name filter (and de-duplicate columns) so feature-file generation is deterministic regardless of the querying user's granted database visibility.
References and provenance
- official-postmortem Cloudflare blog: Cloudflare outage on November 18, 2025“a permissions update made table metadata in the r0 database visible alongside default database tables ... This query lacked a database filter, so it now returned duplicate column entries from both databases, more than doubling the rows in the response.”https://blog.cloudflare.com/18-november-2025-outage/
- official-postmortem Cloudflare postmortem - FL2 proxy panic detail“thread fl2_worker_thread panicked: called Result::unwrap() on an Err value”https://blog.cloudflare.com/18-november-2025-outage/
- news ThousandEyes: Cloudflare Outage Analysis November 18, 2025“(Paraphrase, not a verbatim quotation) ThousandEyes' independent network telemetry attributes the global surge in HTTP 5xx responses to Cloudflare's edge during the outage window.”https://www.thousandeyes.com/blog/cloudflare-outage-analysis-november-18-2025
- secondary-aggregator ControlD: The Biggest Cloudflare Outages (secondary/screening)“Downdetector recorded more than 2.1 million issue reports during the outage. More than 435,000 reports were from the United States, while the United Kingdom, Japan, and Germany were also among the most heavily affected regions.”https://controld.com/blog/biggest-cloudflare-outages/
Quotes are short, attributed, and for provenance only; the analysis is original. Last verified 2026-07-31.