# CVE-2026-27654: NGINX WebDAV module buffer overflow with MOVE or COPY

A buffer overflow in ngx_http_dav_module can crash NGINX worker processes or change file names outside the document root, but only with a specific WebDAV and alias configuration. No exploitation or public proof of concept was found in the sources checked.

- Vendor: F5, NGINX Open Source and NGINX Plus WebDAV module
- Severity: HIGH (CVSS 4.0 8.8)
- Exploited (CISA KEV): not listed
- EPSS: 27.6% on 2026-12-02
- Public exploit: none reported
- Patch available: yes
- Vendor advisory: K000160382, https://my.f5.com/manage/s/article/K000160382
- Published: 2026-03-24; updated: 2026-10-15
- Page: https://patchtonight.com/cve/CVE-2026-27654/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| NGINX Open Source 1.29.0 to 1.29.6 | 1.29.7 or later |
| NGINX Open Source 0.5.13 to 1.28.2 | 1.28.3 or later |
| NGINX Plus R36 | R36 P3 or later |
| NGINX Plus R35 | R35 P2 or later |
| NGINX Plus R32 | R32 P5 or later |
| NGINX Plus R33, R34 | No fixed version listed in the CVE record. Move to a fixed release |

## What it is

A heap buffer overflow in `ngx_http_dav_module`, the NGINX WebDAV module. It triggers when a server handles the WebDAV **MOVE** or **COPY** methods in a **prefix location** that also uses the **`alias`** directive.

An unauthenticated attacker can send crafted requests that crash the NGINX worker process, a denial of service. They may also be able to change source or destination file names outside the document root. The worker runs with low privileges, so the integrity impact is limited (CVE record).

The two vendor ratings differ: nginx.org says medium, while the CVE record scores it 8.2 (CVSS 3.1) and 8.8 (CVSS 4.0), both high. The high scores come from the F5 CNA entry, so treat it as high if you run the affected configuration.

This is not a remote code execution bug as published, and no source we checked reports exploitation or a public proof of concept.

## Am I affected?

You're exposed only if **both** are true:

1. Your NGINX version is in the affected range (see the table above). The CVE record notes that versions past End of Technical Support were not evaluated.
2. Your configuration uses `ngx_http_dav_module` with the MOVE or COPY methods, in a prefix location that uses `alias`.

Look through your configuration for locations that enable WebDAV and use `alias`. The exact check commands are not in the sources we opened, so use your own tooling.

Distribution packages carry their own versions. Red Hat lists fixed builds such as nginx 2:1.26.3-2.el10_1.1 (RHEL 10.1) and 2:1.20.1-24.el9_7.2 (RHEL 9); check your distribution's tracker for backported fixes.

## What to do

1. **Upgrade.** Move to NGINX Open Source 1.29.7 or 1.28.3 or later, or NGINX Plus R36 P3, R35 P2 or R32 P5 or later. If you run Plus R33 or R34, plan a move to a fixed release, since the CVE record lists no fixed version for them.
2. **If you use a distribution package,** install your vendor's update rather than building from source.
3. **If you can't upgrade tonight,** reduce exposure by removing MOVE and COPY from the WebDAV methods you allow, or by not combining WebDAV with `alias` in a prefix location. Neither is a vendor-published workaround, so test it first. Disabling these methods will break WebDAV clients that rely on them.
4. **Restrict who can reach WebDAV locations** to trusted networks where you can.

## Detection

No indicators have been published. Things worth reviewing:

- Worker processes exiting unexpectedly or restarting repeatedly in the NGINX error log, especially after requests to a WebDAV location.
- Access log entries with the **MOVE** or **COPY** methods against locations that use `alias`, from sources that don't normally use WebDAV.
- Files renamed or copied outside the expected document root.

## Sources

- [nginx.org security advisories](https://nginx.org/en/security_advisories.html)
- [CVE record (CVE-2026-27654)](https://cveawg.mitre.org/api/cve/CVE-2026-27654)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
