Quick answer
Memcached amplification abuses caching servers that expose UDP port 11211 to the internet. An attacker stores a large value, then sends a tiny request with the victim's address spoofed, and the server sends the victim the cached data. US-CERT lists amplification factors of 10,000 to 51,000, and the vector drove the 1.35 Tbps attack on GitHub in February 2018. Memcached 1.5.6, released the day before, disabled UDP by default, so current installs are not reflectors unless UDP is re-enabled.
01What is a memcached amplification attack?
Memcached is an in-memory cache used to speed up websites and APIs by holding frequently used data in RAM. It was designed for a trusted internal network and historically listened on UDP as well as TCP. When such a server is reachable from the internet on UDP port 11211, it can be turned into a reflection amplifier.
The attack has three steps in principle. The attacker stores a large value in the exposed cache. They then send a small request for that value, but forge the source address so it reads as the victim's. The server sends the large cached response to the victim. Because the stored value can be far larger than the request, the amplification is enormous, and because UDP has no handshake, the server cannot tell the forged request from a real one.
This is the same reflection pattern as NTP and DNS amplification, described in general in the amplification attacks overview. Memcached is the extreme case: its amplification factor dwarfs every other vector in US-CERT's table.
02How large is the amplification?
Larger than any other vector in US-CERT's table. Its alert TA14-017A, updated on 27 February 2018 to add memcached, lists a bandwidth amplification factor of 10,000 to 51,000 for memcached. Cloudflare documented a 15-byte request triggering a 134 KB response, an amplification of roughly 10,000 times, and in the extreme a 15-byte request producing a 750 KB response, about 51,200 times.
For comparison, the previous headline vector, NTP monlist, had a factor of 556.9. Memcached is around two orders of magnitude more powerful, because the attacker controls how large the stored value is. That is why exposed servers could produce floods at terabit scale.
| Vector | Amplification factor | Request / response example |
|---|---|---|
| Memcached | 10,000 to 51,000 | 15 bytes in, up to 750 KB out |
| NTP (monlist) | 556.9 | small mode 7 query, up to 600-address reply |
| DNS | 28 to 54 | small query, large ANY/zone answer |
03The 1.35 Tbps GitHub attack
On 28 February 2018 GitHub was hit by a memcached reflection attack. GitHub's own incident report puts the peak at 1.35 Tbps delivered by 126.9 million packets per second, sourced from over a thousand autonomous systems across tens of thousands of endpoints, all memcached reflection over UDP 11211.
GitHub was unavailable from 17:21 to 17:26 UTC and intermittently unavailable until 17:30. The mitigation was to move traffic to an upstream scrubbing provider: at 17:26 GitHub withdrew its direct route announcements and routed through Akamai, whose edge filtered the memcached traffic at its border. The attack was absorbed within minutes once it reached capacity that exceeded it, the key point being that no on-site filtering could have handled 1.35 Tbps.
On 5 March 2018 NETSCOUT Arbor reported a 1.7 Tbps memcached attack on a customer of a US service provider. The vector burned brightly and briefly, because the fix and the clean-up of exposed servers followed quickly.
04What does the traffic look like?
To the victim, it is a flood of UDP packets with a source port of 11211 that was never requested, often very large. To the operator of an exposed server, it is a stream of small get or stats requests from spoofed addresses, each answered with a large response. The read-only capture below identifies memcached reflection; run it only on your own hosts.
# inbound replies from memcached servers you never queried (source port 11211)
tcpdump -ni eth0 'udp src port 11211'
# if your own server is being abused as a reflector: requests arriving on 11211
tcpdump -ni eth0 'udp dst port 11211'05How do I check my own memcached in one command?
Ask two questions: is UDP enabled, and is the server reachable from outside. The quickest local check is to look at what memcached is listening on and what its own settings report. On the host itself, a UDP listener on port 11211 is the danger sign; current memcached builds show udpport 0, meaning UDP is off.
Check against your own server only. Probing other people's memcached instances over UDP is how the attack is staged. The commands below read state on the local machine.
# is there a UDP listener on 11211 at all? (none means UDP is off)
ss -lun | grep 11211 || echo 'no UDP listener on 11211 (good)'
# ask memcached directly over its TCP port, on localhost
printf 'stats settings\r\nquit\r\n' | socat - TCP:127.0.0.1:11211 | grep -E 'udpport|tcpport'
# udpport 0 -> UDP disabled (safe); any other value -> UDP is on
# which interface is it bound to? 127.0.0.1 is safe, 0.0.0.0 is exposed
ss -lntp | grep 1121106How do I fix it?
Modern memcached is safe by default, which is why this vector faded. Since version 1.5.6, released on 27 February 2018, UDP is disabled by default; the server listens on TCP only unless UDP is explicitly turned on. Upgrading to any current version is the first fix, because a default install is no longer a reflector.
If you run an older build, or someone has enabled UDP, close it explicitly. Set the UDP port to 0 to disable UDP, and bind memcached to localhost (or a private interface) so it is never reachable from the internet. Debian's shipped configuration already binds to 127.0.0.1. Finally, a firewall should block UDP and TCP 11211 from the internet regardless, as defence in depth.
- Upgrade to memcached 1.5.6 or later, where UDP is off by default
- If UDP is not needed, set -U 0 to disable it outright
- Bind to 127.0.0.1 or a private interface with -l, never 0.0.0.0 on a public host
- Firewall UDP and TCP 11211 to your application servers only, following a default-deny baseline
# command line: UDP off, listen on loopback only
memcached -U 0 -l 127.0.0.1
# /etc/memcached.conf on Debian: -l 127.0.0.1 is already there;
# add -U 0 to make UDP-off explicit
-U 0
-l 127.0.0.1
# defence in depth: block 11211 from the internet at the firewall
# (allow only your application servers' addresses)07What can a provider or firewall do about it?
For the victim, memcached reflection is a pure bandwidth problem, and at record scale a devastating one. No firewall on the target can help, because the flood overwhelms the link before any local rule runs; the GitHub case showed that even a very large organisation had to shift traffic to an upstream scrubbing network. Absorbing a volumetric flood is the role of DDoS mitigation, not an on-box filter.
For the operator of a memcached server, the fix is entirely in your hands: do not expose UDP, do not expose the port, and keep the software current. Every reflector that is closed removes amplification capacity from the internet. The decisive change here was a default: once 1.5.6 shipped with UDP off, the pool of usable amplifiers shrank and the vector lost its edge. Keeping caches off the public internet is the lasting defence.
| Measure | Helps the victim? | Stops reflection? |
|---|---|---|
| Upstream scrubbing with spare capacity | Yes | n/a |
| Local firewall at the target | No (link already full) | n/a |
| Upgrade to memcached 1.5.6+ (UDP off) | n/a | Yes |
| Bind to localhost / set -U 0 | n/a | Yes |
| Firewall 11211 to app servers only | n/a | Yes |
08Timeline
| Date | Event |
|---|---|
| 27 Feb 2018 | memcached 1.5.6 released, disabling UDP by default |
| 27 Feb 2018 | Cloudflare reports Memcrashed amplification from UDP 11211 |
| 27 Feb 2018 | US-CERT adds memcached (factor 10,000 to 51,000) to alert TA14-017A |
| 28 Feb 2018 | 1.35 Tbps memcached attack on GitHub, mitigated by 17:30 UTC |
| 5 Mar 2018 | NVD publishes CVE-2018-1000115; NETSCOUT Arbor reports a 1.7 Tbps memcached attack |
Questions
Frequently asked questions
- 01What port does memcached DDoS use?
- UDP port 11211. Memcached historically listened on both TCP and UDP on 11211, and the UDP listener is what makes reflection possible. An attacker sends small UDP requests to port 11211 on exposed servers with the victim's address spoofed, and the servers send large responses to the victim. Current memcached disables UDP by default, so a default install does not listen on UDP 11211 at all.
- 02How big is memcached amplification?
- US-CERT lists a bandwidth amplification factor of 10,000 to 51,000 for memcached, far above any other vector. Cloudflare measured a 15-byte request producing a 134 KB response (about 10,000 times) and in the extreme a 750 KB response (about 51,200 times). The attacker controls the size of the stored value, which is why the factor is so high. NTP, the previous record vector, was only 556.9.
- 03Was the 1.35 Tbps GitHub attack memcached?
- Yes. On 28 February 2018 GitHub was hit by a 1.35 Tbps flood at 126.9 million packets per second, entirely memcached reflection over UDP 11211, from more than a thousand autonomous systems. GitHub routed traffic through Akamai's scrubbing network, which filtered it at its border, and GitHub reports full recovery at 17:30 UTC, nine minutes after detection.
- 04How do I stop my memcached being used in an attack?
- Upgrade to memcached 1.5.6 or later, where UDP is off by default, so a standard install is not a reflector. If UDP is enabled, disable it with -U 0. Bind the server to 127.0.0.1 or a private interface with -l rather than 0.0.0.0, and firewall port 11211 to your application servers only. Its optional authentication is off by default, so not being reachable is the protection.
- 05Does memcached still listen on UDP by default?
- No. Since version 1.5.6, released in February 2018, memcached disables UDP by default and listens on TCP only. UDP is enabled only if you pass a non-zero UDP port such as -U 11211. You can confirm the current state with the stats settings command, which reports udpport 0 when UDP is off. Debian also binds the server to 127.0.0.1 in its shipped configuration.
Sources
Sources and verification
Checked on 13 November 2026 on Debian 12: the capture filters in “What does the traffic look like?” compile with tcpdump -d (tcpdump 4.99.3). Other configuration, commands, log lines and output on this page are examples: adapt them to your system and check them before use.
- 01February 28th DDoS Incident Report (1.35 Tbps) · GitHub
- 02Memcrashed: Major amplification attacks from UDP port 11211 · Cloudflare
- 03NVD - CVE-2018-1000115 (memcached UDP amplification) · NVD
- 04memcached 1.5.6 release notes (UDP disabled by default) · memcached
- 05Alert TA14-017A: UDP-Based Amplification Attacks (memcached factor) · CISA / US-CERT
- 06NETSCOUT Arbor Confirms 1.7 Tbps DDoS Attack · NETSCOUT
Last updated