libnginx-mod-http-cache-purge — security advisory
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.)
- Products
- libnginx-mod-http-cache-purge
- Affected versions
- 1:2.3-4, 1:2.3-5, 1:2.3-5~exp1, 1:2.3-6, 1:2.5.3-1, 1:2.5.3-2, 1:2.5.3-3, 1:2.5.3-4, 1:2.5.4-1, 1:2.5.5-1, 1:2.5.6-1, 1:3.0.2-1, 1:3.0.3-1, 1:3.0.4-1
- Fixed versions
- 1:3.0.4-1
- CVEs
- CVE-2026-108981
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 03:43 UTC · Revision 1
Source evidence
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.)
osv:DEBIAN-CVE-2026-108981
libnginx-mod-http-cache-purge
Fixed versions: Not specified
libnginx-mod-http-cache-purge
Fixed versions: Not specified
libnginx-mod-http-cache-purge
Fixed versions: 1:3.0.4-1
Complete source record
{
"id": "bc700449f79880323cac0003728338f150528c05a65ab39b9e35e40946991e1f",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-108981",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-108981",
"summary": "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.)",
"evidence": "osv:DEBIAN-CVE-2026-108981",
"products": [
{
"name": {
"value": "libnginx-mod-http-cache-purge",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:2.3-4",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.3-5",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.3-5~exp1",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.3-6",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.5.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.5.3-2",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.5.3-3",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.5.3-4",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.5.4-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.5.5-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:2.5.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:3.0.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:3.0.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:3.0.4-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libnginx-mod-http-cache-purge",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:2.5.3-3",
"evidence": "/affected/1/versions"
},
{
"value": "1:2.5.3-4",
"evidence": "/affected/1/versions"
},
{
"value": "1:2.5.4-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:2.5.5-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:2.5.6-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:3.0.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:3.0.3-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:3.0.4-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libnginx-mod-http-cache-purge",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:3.0.4-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "1:2.5.3-3",
"evidence": "/affected/2/versions"
},
{
"value": "1:2.5.3-4",
"evidence": "/affected/2/versions"
},
{
"value": "1:2.5.4-1",
"evidence": "/affected/2/versions"
},
{
"value": "1:2.5.5-1",
"evidence": "/affected/2/versions"
},
{
"value": "1:2.5.6-1",
"evidence": "/affected/2/versions"
},
{
"value": "1:3.0.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "1:3.0.3-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "low",
"structured": {
"id": "DEBIAN-CVE-2026-108981",
"aliases": [
"DEBIAN-CVE-2026-108981"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnginx-mod-http-cache-purge",
"purl": "pkg:deb/debian/libnginx-mod-http-cache-purge?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1:2.3-4",
"1:2.3-5",
"1:2.3-5~exp1",
"1:2.3-6",
"1:2.5.3-1",
"1:2.5.3-2",
"1:2.5.3-3",
"1:2.5.3-4",
"1:2.5.4-1",
"1:2.5.5-1",
"1:2.5.6-1",
"1:3.0.2-1",
"1:3.0.3-1",
"1:3.0.4-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-108981.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnginx-mod-http-cache-purge",
"purl": "pkg:deb/debian/libnginx-mod-http-cache-purge?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1:2.5.3-3",
"1:2.5.3-4",
"1:2.5.4-1",
"1:2.5.5-1",
"1:2.5.6-1",
"1:3.0.2-1",
"1:3.0.3-1",
"1:3.0.4-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-108981.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:3.0.4-1"
}
]
}
],
"package": {
"name": "libnginx-mod-http-cache-purge",
"purl": "pkg:deb/debian/libnginx-mod-http-cache-purge?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1:2.5.3-3",
"1:2.5.3-4",
"1:2.5.4-1",
"1:2.5.5-1",
"1:2.5.6-1",
"1:3.0.2-1",
"1:3.0.3-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-108981.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-24T05:00:38.325812686Z",
"provider": "osv",
"upstream": [
"CVE-2026-108981"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-108981"
]
},
"related_cves": [
{
"value": "CVE-2026-108981",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 428197,
"published_at": "2026-10-12T03:17:18.503+00:00"
}