CVE-2026-108981: Race Condition

Published Oct 12, 2026
·
Updated

ngxcachepurge 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 ngxcachepurge module follows symlinks while walking the cache directory tree during purge operations. The module relies on nginx's ngxwalktree(), which relies on stat() and therefore follows symlinks.)

Affected Software

1 affected component
Nginx ngx_cache_purge<3.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ngx_cache_purge to a version that resolves this vulnerability.

    Fixed in 3.0.4

Event History

Oct 12, 2026
CVE Published
via MITRE·02:27 AM
Data Sourced
via MITRE·02:27 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·03:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed to this issue?

Exposure requires nginx and a served application, such as WordPress, to run under the same user account, with the application or another attacker-controlled path able to create a symlink inside the cache path. Deployments that do not permit an attacker to create symlinks in that location are not described as exploitable.

2

What access does an attacker need?

The attacker needs the ability to create a symlink within the cache directory path. Exploitation is local in the supplied vector and also has high attack complexity.

3

Does upgrading to version 3.0.4 fully eliminate the risk?

No. Version 3.0.4 fixes the case where a symlink was created at an arbitrary earlier time, but an applicable time-of-check to time-of-use race condition remains.

4

What can be done if upgrading is not immediately possible?

Prevent untrusted users or applications from creating symlinks inside the cache path, and avoid running nginx and served applications under the same user account where possible. These measures address the stated prerequisites for exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203