Skip to content
AdminKit

Is port 11211 (Memcached) exposed to the internet?

Memcached is a fast in-memory cache that ships with no authentication and no network restriction by default — its own project documentation says plainly it must not be exposed to the internet. CISA has measured its DDoS amplification factor at up to 51,000x. AdminKit's port-check tool automates nine common exposure checks today; here's how to check 11211 yourself.

By AdminKit team, Netbase JSC · Updated

A cache designed for trusted networks, not the open internet

Memcached is a widely used in-memory key-value cache, and IANA’s Service Name and Port Number Registry formally registers both TCP and UDP port 11211 to it under the name memcache. Its own official configuration documentation is unusually direct about the threat model it was built for: “Memcached does not spend much, if any, effort in ensuring its defensibility from random internet connections. So you must not expose memcached directly to the internet, or otherwise any untrusted users.” That’s not a hedge buried in a security appendix — it’s the project’s own framing of what the software is and isn’t designed to resist.

Two separate risks, not one

An internet-reachable, unauthenticated Memcached instance exposes whatever an application cached in it — session identifiers, database query results, anything stored there for speed rather than for public access — to any caller that can reach the port. That alone is a real exposure. But Memcached’s UDP interface adds a second, unrelated risk: it can be abused as a reflection amplification vector, where an attacker sends a small forged-source-address request and the server replies with a response many times larger, aimed at whatever third-party address the attacker spoofed. CISA’s advisory on UDP-based amplification attacks lists memcached’s bandwidth amplification factor at 10,000 to 51,000 — far higher than any other protocol on that same list — meaning a server with nothing sensitive cached at all can still be conscripted into flooding someone else’s infrastructure, with your IP address as the apparent source.

Authentication exists, but isn’t the primary control

Memcached does support SASL authentication, but the project’s own documentation is careful not to oversell it: “Using SASL authentication here helps, but should not be totally trusted.” The guidance that follows treats network-level restriction — binding to a private or loopback interface, not all interfaces — as the actual primary control, with authentication as a secondary layer on top of that, not a substitute for it.

Check your own exposure

AdminKit’s port-check tool automates reachability checks for a fixed set of nine commonly-misconfigured ports today, and 11211 isn’t on that list yet. Confirm your current public IP with what is my IP, then test the port manually from a machine outside your network:

nc -vz -w 3 203.0.113.5 11211

A successful connection means the port is reachable from the internet; “connection refused” or a timeout means it’s closed or filtered. Run this only against a host you own or are authorized to test.

The same no-auth-by-default pattern as other fast data stores

Memcached’s risk profile closely mirrors Redis’s and Elasticsearch’s own default-open design — software built for speed inside a trusted network, not for defending itself at the edge. The fix pattern is the same across all three: restrict network access first, treat any built-in authentication as a second layer rather than the whole plan, and never assume a service is private just because nobody deliberately opened its port.

This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.

Frequently asked questions

Why is an exposed Memcached instance considered high risk?

Two separate risks stack on the same misconfiguration. First, Memcached's own maintainers state plainly that it 'does not spend much, if any, effort in ensuring its defensibility from random internet connections,' so an unauthenticated instance lets anyone read or write whatever's cached. Second, its UDP interface can be abused as a reflection amplification vector for DDoS attacks against a completely unrelated third party, turning your server into unwilling infrastructure for someone else's attack.

Does Memcached require a password by default?

No. Memcached's official configuration documentation does note that SASL authentication is available, but adds the caveat that it 'helps, but should not be totally trusted' as a complete substitute for keeping the service off the public internet in the first place. The project's own guidance is to bind it to a private or loopback interface, not to rely on authentication alone.

Does AdminKit's port-check tool scan port 11211?

Not yet. The tool's fixed list today covers nine specific TCP ports (23, 554, 1883, 8883, 502, 7547, 80, 443, 8080) chosen for how often they turn up misconfigured on home and small-office devices — see the port-check tool page for the current list. 11211 isn't on it yet, so confirm your own exposure with the manual check below.

Is this a data-theft risk, a DDoS risk, or both?

Both, and they're independent of each other. An attacker who can read your cache gets whatever your application stored there — session data, query results, anything cached for speed. Separately, CISA's own advisory on UDP-based amplification attacks lists Memcached with a bandwidth amplification factor of 10,000 to 51,000, by far the highest of any protocol on that list, meaning even a server with nothing sensitive cached can still be misused to flood a third party.

What's the fastest fix if port 11211 answers from outside my network?

Bind Memcached to localhost or a private interface rather than all interfaces — the project's own documentation treats this as the primary control, not a secondary one — then firewall UDP and TCP 11211 to only the application servers that actually need it. Enable SASL authentication as a second layer, not a replacement for restricting network access in the first place.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

Talk to an expert

Huy Nguyen (David), Founder & CEO, Netbase JSC

Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.