Sure, minimal attack surface is always a good idea.
However, assuming security never is.
All you need in order to exploit the current nginx CVE is a website serving static html pages.
> The vulnerabilities allow unauthenticated remote code execution in NGINX itself, independent of the application running behind it.
> CVE-2026-123007 was confirmed on 64-bit servers over HTTPS, even when serving static files only.
This particular vulnerability resides in the HTTP2 support, which must be enabled by the server operator. Disabling such less hardened features is maybe even more important in reducing attack surface than only reasoning about the applications being run.
HTTP2 support can be quite spotty [0], and came with a much larger attack surface than 1.1. There's... Actually quite a number of server operators who have disabled it, because it has repeatedly been the cause of security problems.
> HTTP/2.0 is not a technical masterpiece. It has layering violations, inconsistencies, needless complexity, bad compromises, misses a lot of ripe opportunities, etc. I would flunk students in my (hypothetical) protocol design class if they submitted it. - Poul-Henning Kamp [1]
[0] Like CVE-2021-31618 that let you DoS Apache servers.
Yeah...but if you both actually care about minimizing attack surface, and are actually qualified in security - I'm thinking there's about a 0.001% chance that you've enabled HTTP2.
That's what the parent and adjacent comments are talking about, yes. However minimal surface area should not be confused with minimal volume, they're related but not the same.
However, assuming security never is.
All you need in order to exploit the current nginx CVE is a website serving static html pages.
> The vulnerabilities allow unauthenticated remote code execution in NGINX itself, independent of the application running behind it.
> CVE-2026-123007 was confirmed on 64-bit servers over HTTPS, even when serving static files only.
This particular vulnerability resides in the HTTP2 support, which must be enabled by the server operator. Disabling such less hardened features is maybe even more important in reducing attack surface than only reasoning about the applications being run.
https://research.jfrog.com/post/nginx2shell-all-you-need-to-...