Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 18 November 2026.
In one sentence: Port 11211 belongs to memcached, a fast temporary store that websites use to remember things, and it was built for trusted internal networks, so exposing it to the internet is a mistake that has been used to knock large services offline.
What runs on this port
Memcached is a memory cache. A website asks it for a ready-made answer instead of rebuilding the answer from the database every time. It listens on port 11211, on TCP and, in some configurations, UDP.
The project’s own documentation is blunt about its security model. It says memcached does not spend much effort making itself defensible against random connections from the internet, and that you must not expose it directly to the internet or to any untrusted users. It also says SASL authentication helps but should not be totally trusted.
Why attackers look for it
Two reasons. First, a cache often holds copies of session data, user details and query results, so reading it can reveal real information. Second, the UDP service can be used to attack someone else.
Memcached listens for UDP requests. UDP does not check who sent a request, so an attacker can forge the sender address to be their victim. The server then sends its answer to the victim. When a small request produces a large answer, the attacker multiplies their bandwidth. This is called a reflection and amplification attack.
How it gets attacked
- Reflection and amplification (denial of service). Cloudflare described this in February 2018 as “Memcrashed” and saw a peak of 260 Gbps of inbound memcached UDP traffic at the time of writing. GitHub reported that a few days later it was hit by an attack peaking at 1.35 Tbps. Its incident report says the amplification factor could be up to 51,000, meaning one byte sent could produce up to 51 KB toward the target. GitHub.com was unavailable from 17:21 to 17:26 UTC and intermittently unavailable until 17:30 UTC on 28 February 2018, and GitHub said the confidentiality and integrity of data were not at risk.
- Reading or changing cached data. If port 11211 answers without authentication, anyone who can reach it can ask for what is stored. This is a data exposure issue, not only a nuisance.
- Your server used as a weapon. An open memcached server on your address can be used in attacks on others, which means your bandwidth is consumed and your provider may take action.
The documentation notes that UDP has been off by default since version 1.5.6, so older installs and deliberately enabled UDP are the ones to look at.
Who it affects and how badly
- Sole trader to 10 staff: a small online shop on a self-managed server. Worst case: the site slows or drops while the server is used in an attack, and the hosting provider suspends the account.
- 10 to 50 staff: a SaaS start-up or retailer with a caching layer. Worst case: cached customer data exposed, plus an outage during trading.
- 50 to 250 and regulated: fintech, telecoms and insurance. Worst case: a data exposure that must be assessed for reporting, and contractual penalties for downtime.
Applies in the UK, EU, US and Armenia wherever the port is reachable from outside.
Diagram
What we check on a test
On an external test we check whether 11211 answers on TCP or UDP from outside, because a UDP check needs care and is agreed in scope. On an internal test we check which networks can reach memcached and whether authentication is configured. We review what an application stores in the cache, because session data or personal data in a cache raises the impact of exposure. We do not send amplification traffic at anyone, and we do not run denial-of-service tests against production without written agreement.
Rules and regulators
- UK: the ICO’s security guide expects measures appropriate to the risk. An open cache holding personal data would be hard to defend as appropriate. The NCSC describes penetration testing as a way to gain assurance in your own vulnerability management, which is where an exposed cache should be caught first.
- EU: GDPR Article 32 applies the same logic.
- US and Armenia: state breach laws, sector rules and the Armenian Personal Data Protection Law can apply depending on what the database or cache holds. Check which apply to you; we have not summarised them here.
How to check whether yours is exposed
- List every server that runs memcached, including containers and managed cache services.
- Check firewall and security group rules for 11211 open to “any”.
- On the server, inspect how memcached was started. The documentation shows that
-psets the TCP port and-Usets the UDP port, where0disables it. - Use the free web vulnerability scan and see how to check which ports are open on your network.
How to secure it
- Block 11211 at the firewall from everywhere except the application servers that need it.
- Bind memcached to a private interface or a Unix socket, not to all addresses.
- Disable UDP by setting it to 0 unless you have a documented need.
- Do not treat SASL as a substitute for network controls, as the project itself advises.
- Keep memcached updated.
- Do not store more in the cache than you need, and keep personal data out of it where possible.
FAQ
Is memcached safe to expose to the internet? No. Its own documentation says you must not expose it to the internet or to untrusted users.
What was the 2018 attack on GitHub? A memcached amplification attack peaking at 1.35 Tbps, which made GitHub.com unavailable for a few minutes.
Is UDP on by default? Not since version 1.5.6, according to the documentation.
Related terms
Back to the Ports and Protocols hub. Related entries: denial of service, port 6379 redis, port 27017 mongodb, port 9200 elasticsearch, how to check which ports are open on your network, nmap., Port 1883 (MQTT): Risks, Attacks and How to Secure It
Sources opened for this entry
memcached wiki ConfiguringServer, GitHub DDoS incident report (1 March 2018), Cloudflare Memcrashed post, NCSC penetration testing guidance, ICO guide to data security.
- https://github.com/memcached/memcached/wiki/ConfiguringServer
- https://github.blog/news-insights/company-news/ddos-incident-report/
- https://blog.cloudflare.com/memcrashed-major-amplification-attacks-from-port-11211/
- https://www.ncsc.gov.uk/guidance/penetration-testing
- https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/security/a-guide-to-data-security/
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. See penetration testing and start with the free web vulnerability scan. Prices are published on the pricing page. Many intrusions start with a stolen or guessed login, so it also pays to test your staff with a phishing simulation or try Phishy with the free trial.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call