CVE-2026-27654
NGINX vulnerability analysis and mitigation

Overview

CVE-2026-27654 is a heap-based buffer overflow vulnerability in the ngx_http_dav_module of NGINX Open Source and NGINX Plus. It allows unauthenticated remote attackers to trigger a buffer overflow in the NGINX worker process, potentially causing worker process termination (denial of service) or modification of file names outside the document root. The vulnerability was published on March 24, 2026, and affects NGINX Open Source versions 0.5.13 through 1.28.2 and 1.29.0 through 1.29.6, as well as NGINX Plus R32 through R36 (various patch levels). It carries a CVSS v3.1 base score of 8.2 (High) and a CVSS v4.0 base score of 8.8 (High) (F5 Advisory, Red Hat CVE).

Technical details

The vulnerability is classified as CWE-122 (Heap-based Buffer Overflow) and CWE-120 (Buffer Copy without Checking Size of Input). It is triggered specifically when the NGINX configuration simultaneously uses the DAV module with MOVE or COPY methods, a prefix location (non-regular expression location block), and an alias directive — the combination of these three conditions allows an attacker to craft a malicious HTTP request that overflows a heap buffer in the NGINX worker process. The attack requires no authentication, no user interaction, and is exploitable over the network with low complexity (F5 Advisory, Feedly). Notably, this CVE was credited to Anthropic (AI-assisted vulnerability discovery), making it a notable case of AI-aided security research (VulnCheck Blog).

Impact

Successful exploitation can cause the NGINX worker process to crash, resulting in denial of service for all requests handled by that worker. Additionally, an attacker may be able to manipulate source or destination file names for MOVE or COPY operations, potentially writing files outside the configured document root. The integrity impact is constrained because the NGINX worker process runs with low privileges and does not have access to the broader system, limiting the scope of file manipulation. There is no confidentiality impact reported (F5 Advisory, Feedly).

Exploitation steps

  1. Reconnaissance: Identify internet-facing NGINX instances running vulnerable versions (Open Source 0.5.13–1.28.2 or 1.29.0–1.29.6; Plus R32–R36 before respective patches) using tools like Shodan or Censys, filtering for NGINX server headers.
  2. Configuration verification: Confirm the target NGINX instance has the ngx_http_dav_module enabled with MOVE or COPY methods, a prefix (non-regex) location block, and an alias directive — this specific combination is required for exploitation.
  3. Craft malicious request: Send a specially crafted HTTP MOVE or COPY request to the DAV-enabled endpoint with a manipulated Destination header or URI designed to overflow the heap buffer in the worker process during path resolution with the alias directive.
  4. Trigger buffer overflow: The malformed request causes the worker process to write beyond the allocated heap buffer, either crashing the worker (DoS) or corrupting adjacent memory to influence file path resolution outside the document root.
  5. Achieve objective: Depending on exploitation outcome, the attacker achieves denial of service (worker crash) or limited file name manipulation outside the document root (F5 Advisory).

Indicators of compromise

  • Network: Unusual or malformed HTTP MOVE or COPY requests to DAV-enabled NGINX endpoints; requests with oversized or specially crafted Destination headers targeting prefix location paths.
  • Logs: NGINX error logs (error.log) showing worker process crashes or segmentation faults; repeated [alert] or [crit] entries indicating worker process termination and restart cycles.
  • Process: Unexpected NGINX worker process restarts in rapid succession; the master process spawning replacement workers more frequently than normal baseline.
  • File System: Files appearing outside the configured document root directory that correspond to MOVE or COPY operations; unexpected file creation or renaming in directories adjacent to the web root.

Mitigation and workarounds

F5 has released patched versions: NGINX Open Source 1.28.3 (stable branch) and 1.29.7 (mainline branch); NGINX Plus R32 P5, R33 P4, R34 P3, R35 P2, and R36 P3 (F5 Advisory). As an immediate workaround if patching cannot be applied, disable the DAV module MOVE and COPY methods in the NGINX configuration, or remove the combination of prefix location blocks with alias directives where DAV is enabled. Organizations should audit all NGINX configurations to identify instances using ngx_http_dav_module with the vulnerable directive combination. Red Hat, Ubuntu, SUSE, Debian, Amazon Linux, and other Linux distributions have also released updated packages (Red Hat Errata, Ubuntu USN).

Community reactions

The vulnerability attracted notable attention due to its attribution to Anthropic's AI systems as the discoverer, sparking community discussion about AI-assisted vulnerability research. A blog post titled "Claude Humans vs NGINX CVE-2026-27654" was widely shared on Reddit's r/netsec and r/blueteamsec communities, and security researcher grugq referenced it in his newsletter (Reddit r/netsec, VulnCheck Blog). Security media including The Hacker News, Risky Biz, and TLDR InfoSec covered the vulnerability in their weekly recaps. Sangfor's Farsight Labs and SecurityOnline.info published threat intelligence write-ups highlighting the DoS and potential RCE risk (Sangfor). The oss-security mailing list also received a disclosure post (oss-sec).

Additional resources


SourceThis report was generated using AI

Related NGINX vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-42533CRITICAL9.2
  • NGINX logoNGINX
  • nginx-mod-http-geoip-debuginfo
NoYesJul 15, 2026
CVE-2026-42530CRITICAL9.2
  • NGINX logoNGINX
  • nginx-mod-stream-debuginfo
NoYesJun 17, 2026
CVE-2026-60005HIGH8.8
  • NGINX logoNGINX
  • nginx-mod-modsecurity-debugsource
NoYesJul 15, 2026
CVE-2026-56434HIGH8.3
  • NGINX logoNGINX
  • nginx-mod-brotli
NoYesJul 15, 2026
CVE-2026-48142MEDIUM6.3
  • NGINX logoNGINX
  • nginx-filesystem
NoYesJun 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management