# CVE-2026-108981: ngxcachepurge before 3.0.4 can allow file deletion via a symlink attack in certain situations where nginx and a served application (e.g., W…

- Severity: Low 3.6 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-10-12T02:27:15.378Z
- Modified: 2026-10-16T19:56:15.773Z
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

ngx_cache_purge before 3.0.4 can allow file deletion via a symlink attack in certain situations where nginx and a served application (e.g., WordPress) run under the same user account. The attacker must be able to create a symlink inside the cache path. Version 3.0.4 fixes this for the case of a symlink created at an arbitrary earlier time, but does not resolve an applicable TOCTOU race condition. (The ngx_cache_purge module follows symlinks while walking the cache directory tree during purge operations. The module relies on nginx's ngx_walk_tree(), which relies on stat() and therefore follows symlinks.)

(As written by CVE List.)

## Affected

- denji ngx_cache_purge: from 2.4.0 up to 2.5.6; from 3.0.0 before 3.0.4

## References

- <https://github.com/nginx-modules/ngx_cache_purge/pull/72> (patch)
- <https://github.com/nginx-modules/ngx_cache_purge/commit/a6da1352f52a8a02dd6828e88c39ed42fddcee96> (patch)
- <https://github.com/nginx-modules/ngx_cache_purge/releases/tag/3.0.4>

## Sources

- CVE List: [CVE-2026-108981](https://www.cve.org/CVERecord?id=CVE-2026-108981), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2026-108981](https://nvd.nist.gov/vuln/detail/CVE-2026-108981), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-108981 · Whole record: https://cve.day/CVE-2026-108981.json · Rebuilt by cve.day 2026-11-25T22:59:43.542Z
