Skip to main content

CVE-2026-108981: CWE-61 UNIX Symbolic Link (Symlink) Following in denji ngx_cache_purge

0
Low
VulnerabilityCVE-2026-108981cvecve-2026-108981cwe-61
Published: 10/12/2026 (10/12/2026, 02:27:15 UTC)
Source: CVE Database V5
Vendor/Project: denji
Product: ngx_cache_purge

Description

ngx_cache_purge versions before 3.0.4 contain a vulnerability where symbolic link (symlink) following during cache purge operations can lead to file deletion. This occurs when nginx and the served application run under the same user account and an attacker can create a symlinks inside the cache path. Version 3.0.4 fixes the issue for symlinks created at arbitrary earlier times but does not address a time-of-check to time-of-use (TOCTOU) race condition.

CVSS v3.1

Score 3.6low

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L

Affected software

denji

ngx_cache_purge

Affected versions
>=2.4.0 <=2.5.6>=3.0.0 <3.0.4
GitHub Actionsmore threats →cve
ngx_cache_purge
pkg:github/ngx_cache_purge
Affected versions
>=2.4.0 <=2.5.6>=3.0.0 <3.0.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/12/2026, 03:03:19 UTC

Technical Analysis

The ngx_cache_purge module prior to version 3.0.4 follows symbolic links while walking the cache directory tree during purge operations. Because it relies on nginx's ngx_walk_tree() which uses stat(), symlinks are followed, allowing an attacker who can create symlinks in the cache path to cause deletion of unintended files if nginx and the application run under the same user account. Version 3.0.4 addresses this for symlinks created at arbitrary earlier times but does not fully mitigate a TOCTOU race condition that remains exploitable.

Potential Impact

An attacker with the ability to create symlinks in the cache directory can cause unintended file deletions, potentially impacting availability. The vulnerability requires local access or the ability to create symlinks under the same user context as nginx and the application. The CVSS score of 3.6 (low severity) reflects limited impact and attack complexity.

Mitigation Recommendations

Upgrade ngx_cache_purge to version 3.0.4 or later to address symlink following for symlinks created at arbitrary earlier times. Note that a TOCTOU race condition remains unpatched, so additional caution or mitigations may be necessary. No official patch links were provided; check the vendor's advisory for updates. Restrict permissions to prevent unauthorized symlink creation in the cache directory as a temporary mitigation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2026-10-12T02:27:14.593Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6acc4a9a2cdf04f656566585

Added to database: 10/12/2026, 02:48:58 UTC

Last enriched: 10/12/2026, 03:03:19 UTC

Last updated: 10/12/2026, 03:03:53 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses