CVE catalog

CVE-2026-108981

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 mus

[CVE catalog]

Severity
Low · CVSS 3.6CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.16% · Oct 25, 2026

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.)

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibnginx-mod-http-cache-purgesid1:3.0.4-1fixed
Debianlibnginx-mod-http-cache-purgeforky1:3.0.4-1fixed
Debianlibnginx-mod-http-cache-purgetrixie1:2.5.3-3vulnerable
Debianlibnginx-mod-http-cache-purgebookworm1:2.3-4vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibnginx-mod-http-cache-purgesourcesid1:3.0.4-1not yet assignedNot reported[1151200]
Debianlibnginx-mod-http-cache-purgesourceforky1:3.0.4-1not yet assignedNot reported[1151200]
Debianlibnginx-mod-http-cache-purgesourcetrixie(unfixed)not yet assignedNot reported[1151200]
Debianlibnginx-mod-http-cache-purgesourcebookworm(unfixed)not yet assignedNot reported[1151200]

[Debian bug #1151200]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1:2.3-4 · amd64 · bookworm

      Affected

      nvd · libnginx-mod-http-cache-purge · debian · bookworm; nvd · libnginx-mod-http-cache-purge · debian · 12

    • 1:2.3-4 · arm64 · bookworm

      Affected

      nvd · libnginx-mod-http-cache-purge · debian · bookworm; nvd · libnginx-mod-http-cache-purge · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 1:2.5.3-3 · amd64 · trixie

      Affected

      nvd · libnginx-mod-http-cache-purge · debian · 13

    • 1:2.5.3-3 · arm64 · trixie

      Affected

      nvd · libnginx-mod-http-cache-purge · debian · 13

Observed:

References