CVE-2026-27654

HIGH

NGINX ngx_http_dav_module vulnerability

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 6 public exploits for CVE-2026-27654. PoCs published by hhhell, Debajyoti0-0, dead-lamer.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-27654, a heap buffer overflow in nginx's WebDAV module caused by an integer underflow in `ngx_http_map_uri_to_path()`. The exploit achieves unauthenticated arbitrary file write (directory traversal) via crafted PUT and COPY requests, leading to remote code execution when a PHP webshell is deployed.

Description

NGINX Open Source and NGINX Plus have a vulnerability in the ngx_http_dav_module module that might allow an attacker to trigger a buffer overflow to the NGINX worker process; this vulnerability may result in termination of the NGINX worker process or modification of source or destination file names outside the document root. This issue affects NGINX Open Source and NGINX Plus when the configuration file uses DAV module MOVE or COPY methods, prefix location (nonregular expression location configuration), and alias directives. The integrity impact is constrained because the NGINX worker process user has low privileges and does not have access to the entire system. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

Exploits (6)

github WORKING POC
by hhhell · cpoc
https://github.com/hhhell/CVE-Vulnerability-Reproduction/tree/master/CVE-2026-27654

This repository contains a functional exploit for CVE-2026-27654, a heap buffer overflow in nginx's WebDAV module caused by an integer underflow in `ngx_http_map_uri_to_path()`. The exploit achieves unauthenticated arbitrary file write (directory traversal) via crafted PUT and COPY requests, leading to remote code execution when a PHP webshell is deployed.

Classification
Working Poc 99%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: nginx 1.29.6 and earlier (with http_dav_module enabled)
No auth needed
Prerequisites: nginx compiled with `--with-http_dav_module` · WebDAV location configured with `alias` (not `root`) and `dav_methods PUT COPY` · Target path writable by nginx worker (e.g., `/var/www/html`) · PHP-FPM or similar interpreter available (for RCE)
mistral-large-3 · analyzed Jul 28, 2026 Full analysis →
nomisec WORKING POC
by Debajyoti0-0 · poc
https://github.com/Debajyoti0-0/CVE-2026-27654-PoC

This PoC exploits a size_t underflow vulnerability in nginx's ngx_http_dav_module (CVE-2026-27654) when handling MOVE/COPY requests with crafted Destination headers. The flaw leads to a heap buffer overflow, enabling remote DoS or potential RCE under specific conditions.

Classification
Working Poc 98%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: nginx 0.5.13–1.28.2 (stable) and 1.29.0–1.29.6 (mainline) with http_dav_module and alias directive configured
No auth needed
Prerequisites: nginx compiled with --with-http_dav_module · nginx configured with alias directive for WebDAV · Target must allow MOVE/COPY requests to the aliased location
mistral-large-3 · analyzed Jul 21, 2026 Full analysis →
github WORKING POC
by Debajyoti0-0 · pythonpoc
https://github.com/Debajyoti0-0/CVE-2026-27654

This PoC exploits a size_t underflow vulnerability in nginx's ngx_http_dav_module (CVE-2026-27654) when handling MOVE/COPY requests with crafted Destination headers. The flaw causes a heap buffer overflow via improper length calculation during alias path comparison, leading to potential RCE or DoS.

Classification
Working Poc 98%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: nginx 0.5.13–1.28.2 (stable) and 1.29.0–1.29.6 (mainline) with ngx_http_dav_module and alias directive enabled
No auth needed
Prerequisites: nginx compiled with --with-http_dav_module · nginx configured with alias directive for WebDAV · Target must allow MOVE/COPY requests (WebDAV enabled)
mistral-large-3 · analyzed Jul 21, 2026 Full analysis →
github WRITEUP
by dead-lamer · poc
https://github.com/dead-lamer/CVE-2026-27654

The repository contains a PDF document detailing CVE-2026-27654, referencing a CWE-122 (Heap-based Buffer Overflow) vulnerability. The PDF appears to be a technical writeup, but no executable exploit code is present.

Classification
Writeup 90%
Attack Type
Other
Complexity
N/a
Reliability
N/a
Target: Unknown (PDF references CWE-122)
No auth needed
mistral-large-3 · analyzed Jun 28, 2026 Full analysis →
github WORKING POC
by XZ1r0 · pythonpoc
https://github.com/XZ1r0/cve-2026-poc-collection/tree/main/web/CVE-2026-27654

This repository contains a functional Python PoC for CVE-2026-27654, a heap buffer overflow in nginx's ngx_http_dav_module caused by a size_t underflow. The exploit sends a crafted MOVE request to trigger the vulnerability, leading to a worker process crash (DoS).

Classification
Working Poc 100%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: nginx 0.5.13 through 1.28.2 (stable) and 1.29.0 through 1.29.6 (mainline)
No auth needed
Prerequisites: nginx compiled with --with-http_dav_module · location block using alias (not root) · dav_methods includes COPY or MOVE
mistral-large-3 · analyzed May 21, 2026 Full analysis →
nomisec WORKING POC
by JohannesLks · poc
https://github.com/JohannesLks/CVE-2026-27654

This repository contains a functional exploit PoC for CVE-2026-27654, a heap buffer overflow in NGINX's `ngx_http_dav_module` caused by a `size_t` underflow when processing crafted `MOVE` or `COPY` requests. The PoC demonstrates the vulnerability by triggering a crash in vulnerable NGINX versions (0.5.13 through 1.28.2 and 1.29.0 through 1.29.6) compiled with `--with-http_dav_module` and using `alias` in the DAV location.

Classification
Working Poc 100%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: NGINX 0.5.13 through 1.28.2 (stable) and 1.29.0 through 1.29.6 (mainline)
No auth needed
Prerequisites: NGINX compiled with `--with-http_dav_module` · DAV location configured with `alias` · DAV methods include `COPY` or `MOVE`
mistral-large-3 · analyzed Apr 09, 2026 Full analysis →

Scores

CVSS v3 8.2
EPSS 0.2175
EPSS Percentile 97.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-120 CWE-122
Status published
Products (13)
F5/NGINX Open Source 0.5.13 - 1.28.3
F5/NGINX Open Source 1.29.0 - 1.29.7
F5/NGINX Plus R32 - R32 P5
F5/NGINX Plus R33
F5/NGINX Plus R34
F5/NGINX Plus R35 - R35 P2
F5/NGINX Plus R36 - R36 P3
f5/nginx_open_source 0.5.13 - 0.9.7
f5/nginx_plus r32 p1 (4 CPE variants)
f5/nginx_plus r33 (4 CPE variants)
... and 3 more
Published Mar 24, 2026
Tracked Since Mar 24, 2026