The file that doubled: inside Cloudflare's November 2025 outage
A database permissions change doubled the size of a bot management file, the proxy hit a hard limit and panicked. Cloudflare says it was not an attack.

The change that started it was good practice. At 11:05 UTC on 18 November 2025, Cloudflare adjusted permissions on a ClickHouse database cluster so that users could see metadata for tables in an underlying database rather than only the abstracted view above it. More visibility, better debugging, no obvious risk.
One of the queries running against that cluster read column metadata without filtering by database name. With the new permissions in place, it started seeing the same columns twice: once in the view it had always seen, once in the underlying tables it could now see as well. The query did not fail. It returned duplicates.
That query builds the feature file for Cloudflare's Bot Management system. The file roughly doubled in size, and fifteen minutes later a substantial share of the internet started returning HTTP 500 errors.
The hard limit
Cloudflare's bot detection scores every request with a machine learning model, and the model is fed a set of features. Because detection has to keep up with changing bot behavior, the feature file is regenerated every five minutes and pushed to the whole network.
The module that consumes it preallocates memory for a fixed maximum of 200 features, against a normal working set of around 60. That headroom had never been close to exhausted. The doubled file blew past it.
What happened next depended on which proxy a customer was on. Cloudflare runs two generations: the older FL and the newer Rust-based FL2. In FL2, the code handling the over-limit condition hit an unhandled error and panicked, with the thread reporting that it had called unwrap() on an error value. A panicking request-handling thread produces a 5xx response, so FL2 customers saw their traffic fail outright.
FL customers did not get errors. They got bot scores of zero for every request. Any customer who had written a firewall rule to block requests below a bot score threshold was now blocking all of their legitimate traffic, which looked like a completely different problem and was arguably harder to diagnose.
Why it flickered
The most confusing property of this incident was that it kept recovering. Cloudflare's explanation is straightforward once you know it: the feature file was being regenerated every five minutes, and whether a given regeneration produced a bad file depended on whether the query ran against a database node that had already received the permissions change. The rollout was gradual, so good and bad files alternated across the network.
From the outside, a system that fails, recovers, fails again and recovers on a five-minute cadence looks very much like an attack being mitigated and resuming. Cloudflare's engineers initially suspected a large DDoS. The suspicion was reinforced by an unrelated coincidence: Cloudflare's own third-party-hosted status page went down at the same time, for reasons with no connection to the outage.
Eventually every node had the new permissions, every regeneration produced a bad file, and the failure became steady. Paradoxically, that made it easier to diagnose.
The timeline
- 11:05 UTC the database permissions change is deployed.
- 11:20 significant failures to deliver core traffic begin.
- 11:28 impact reaches customer environments.
- 11:31 to 11:35 the first automated test detects the problem and an incident call is opened.
- 13:05 bypasses for Workers KV and Access reduce impact on those services.
- 13:37 attention shifts to rolling back the Bot Management file.
- 14:24 creation and propagation of new Bot Management files is stopped.
- 14:30 a known-good file is deployed globally and the main impact ends.
- 17:06 all services restored.
Roughly three hours of core impact, and another two and a half to clear the tail. Cloudflare's chief executive described it as the company's worst outage since 2019, a reference to the July 2019 event in which a single regular expression in a firewall rule consumed CPU across the network.
What else failed, and the dependency pattern
Turnstile, Cloudflare's challenge and CAPTCHA alternative, failed to load. That is a notable second-order effect because Turnstile sits on Cloudflare's own dashboard login page, so most users could not sign in to the dashboard to investigate or change anything. Cloudflare's own operators were locked out of part of their own tooling by the outage they were fixing.
Workers KV returned elevated 5xx errors because its gateway runs through the core proxy. Access had widespread authentication failures until the 13:05 bypass, although existing sessions kept working, which is the same token-lifetime effect seen in identity provider outages. Email Security kept processing mail but temporarily lost an IP reputation source, which reduced spam detection accuracy.
That last one is quietly the most interesting for security teams. For a period, a security control was still running and still reporting success while operating with degraded inputs. Nothing alerted, because nothing had failed. Detection quality had simply dropped.
Error, not attack, and why the distinction was hard
Cloudflare's report is categorical: the issue was not caused, directly or indirectly, by a cyber attack or malicious activity of any kind.
It is worth sitting with how long that took to establish internally. The symptoms matched an attack. The intermittency matched mitigation cycles. The status page outage matched an attacker targeting communications. Cloudflare is a company whose core business is distinguishing attack traffic from legitimate traffic, operating at a scale where it sees most of the world's DDoS activity, and it still spent part of the incident working a hypothesis that turned out to be wrong.
The lesson is not that the engineers were careless. It is that the two categories are genuinely hard to separate in the first hour, and the only reliable discriminator is evidence from inside your own system. Which specific component is failing, and why. Everything else, including the pattern of the symptoms, can be misleading. Our guide to DDoS attacks covers what genuine volumetric attack signatures look like, which is the comparison you need in order to rule one out.
What is confirmed and what is not
Confirmed from Cloudflare's own post-incident report: the permissions change and its time, the duplicate column behavior in the query, the doubling of the feature file, the 200-feature preallocation against a working set of about 60, the FL2 panic and the FL zero-score behavior, the five-minute regeneration cycle and the resulting intermittency, the full timeline, the affected services, and the explicit statement that no attack was involved. Also confirmed: the status page outage was coincidental.
Not published: a count of affected customers or requests, or any financial figure. The widely circulated lists of affected sites were compiled by observers and outage trackers, not by Cloudflare.
What to take from it
Validate your own data as if it came from outside. The query was trusted because it was internal. The file was trusted because Cloudflare generated it. Neither assumption survives a change in an unrelated system. Any pipeline that generates configuration consumed by production should check that its output is plausible before it ships: expected row counts, expected size, expected ranges. A simple sanity check on file size would have caught this one.
Know what your code does at its limits. The 200-feature cap was not a bug. The absence of a graceful response to exceeding it was. Every preallocation, buffer and fixed array in a system has a behavior at the boundary, and it is either designed or it is whatever the language does by default.
Look for controls that degrade without failing. The zero bot scores on the older proxy and the reduced spam accuracy in Email Security are both cases of a security control reporting healthy while doing less. These are harder to catch than outages and more dangerous. Alert on the distribution of your detection outputs as well as on error rates: a scoring system returning the same value for every request is broken even when it returns promptly.
Keep your status communications genuinely independent. Cloudflare hosts its status page outside its own infrastructure specifically to avoid this failure, and it still went down at the same moment. Having a second channel, and telling people about it in advance, costs almost nothing.
Understand what you have concentrated. A reverse proxy in front of your site is doing TLS termination, DDoS absorption, bot filtering, access control and caching. That consolidation is a real security benefit, and it also means one vendor's bad configuration file is your outage. The answer is not usually to unwind it, but to know what it covers and what your site does without it. Third-party risk and the cloud security guide both deal with mapping that honestly.
Seeing an error page you were not expecting? Fake "site maintenance" and "verify your account" pages often appear during widespread outages. Paste the link into CyberWatch AI Scan for a free check before entering anything.
The shape of this failure is becoming familiar. Not a breach, not a data center fire, not a cut cable. A permissions improvement in a database, a query that was slightly less specific than it should have been, and a consumer with a fixed limit and no plan for exceeding it. Three small things, none of them a mistake in isolation, arriving together in a system that sits in front of a large fraction of the web.
Frequently asked questions
What caused the Cloudflare outage on 18 November 2025?
A permissions change on a ClickHouse database cluster at 11:05 UTC altered the output of a query used to build the Bot Management feature file. The query began returning duplicate column entries, which roughly doubled the file's size past a hard limit in the proxy, and the proxy crashed when it tried to load it.
Was it a cyber attack or a DDoS?
No. Cloudflare's post-incident report states that the issue was not caused, directly or indirectly, by a cyber attack or malicious activity of any kind. Engineers initially suspected a large DDoS, partly because Cloudflare's status page happened to go down at the same time, which Cloudflare later described as a coincidence.
What is the Bot Management feature file?
Cloudflare's bot detection scores each request using a machine learning model, and that model needs a list of features to evaluate. The file carrying those features is regenerated every five minutes so that detection stays current, then distributed to the whole network.
Why did a bigger file crash the proxy?
The bot module preallocates memory for a fixed maximum of 200 features, against a normal working set of about 60. The doubled file exceeded 200, and the code handling that condition in the Rust-based FL2 proxy hit an unhandled error and panicked, which produced HTTP 5xx responses.
Why did the failure come and go before settling?
The file was regenerated every five minutes, and whether a given run produced a bad file depended on which database node served the query. Good and bad versions alternated across the network for a while, so the outage looked intermittent, until all nodes were updated and the bad version became the steady state.
Which Cloudflare services were affected?
Core CDN and security traffic returned 5xx errors. Turnstile failed to load, which locked most users out of the Cloudflare dashboard. Workers KV saw elevated errors through its dependency on the core proxy. Access had widespread authentication failures until the rollback, though existing sessions continued. Email Security lost an IP reputation source temporarily.
Did customers on the older proxy escape?
Not entirely. Customers still on the older FL proxy did not get 5xx errors, but their bot scores all came back as zero. Any rule written to block requests with a low bot score therefore blocked legitimate traffic, which is a false positive rather than an outage but still broke sites.
How long did it take to resolve?
Cloudflare's timeline shows failures beginning around 11:20 UTC, the first automated detection at about 11:31, bypasses for Workers KV and Access at 13:05, creation of new bot files stopped at 14:24, main impact resolved at 14:30 with a known-good file deployed globally, and all services restored at 17:06.
What is the main lesson for other organizations?
Internally generated configuration data deserves the same validation as data from outside. The query that built the file was trusted because it was Cloudflare's own, and the change that broke it was a routine, sensible permissions improvement on a database.
Sources
- Cloudflare outage on November 18, 2025, Cloudflare Blog
- Cloudflare System Status, Cloudflare
- Cloudflare outage was not caused by a cyber attack, Engadget
- Internet slowly recovers after far-reaching Cloudflare outage, Help Net Security
- Cloudflare contrite after worst outage since 2019, Computer Weekly
- Everything You Need to Know About the Cloudflare Outage, Radware
- Details of the Cloudflare outage on July 2, 2019, Cloudflare Blog
- Bot score, Cloudflare Developer Documentation
- Cloud security guidance, UK National Cyber Security Centre


