CVE-2024-12008: W3 Total Cache < 2.8.2 - Log File Exposure
- Template: CVE-2024-12008
- Name: W3 Total Cache < 2.8.2 - Log File Exposure
- Description: The plugin is vulnerable to Information Exposure through the publicly exposed debug log file. This makes it possible for unauthenticated attackers to view potentially sensitive information in the exposed log file. For example, the log file may contain nonce values that can be used in further CSRF attacks.
- Impact: Unauthenticated attackers can extract sensitive credentials, leading to potential account compromise and further attacks.
- Remediation: Update the W3 Total Cache plugin to version 2.8.2 or later, which restricts access to debug log files. Additionally, disable debug logging in production environments and ensure .htaccess rules block direct access to the cache/log directory.
- Severity: medium
- Authors: ritikchaddha
- Tags: cve, cve2024, wordpress, wp, wp-plugin, w3-total-cache, exposure, logs
- References: https://wpscan.com/vulnerability/1685ca58-1622-433b-b561-304cb9d1bc56/, https://www.wordfence.com/threat-intel/vulnerabilities/id/8292f23c-fb17-4082-9788-f643d1bb097e, https://nvd.nist.gov/vuln/detail/CVE-2024-12008
- Cves: CVE-2024-12008
- Verified: yes
- Max requests: 3
- Directory: http/cves
- Path: http/cves/2024/CVE-2024-12008.yaml
- Digest: 4a0a0047304502210084efeca9cd9a960994344acbd91747d7c8e70c649a8a303c975b8ee297ed50ed02203468fd618e920833e68cf263629e3a97e3fe3d9248c6ed2b36c2bcba82791a1e
- Created at: 2026-06-13T10:36:50Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 164
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-12008.yaml
Classification
- Cwe: CWE-532
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.02351
- Epss percentile: 0.84133
- Not known: cpe
Metadata
- Fofa-query: app="WordPress-W3-Total-Cache"
- Framework: wordpress
- Max-request: 3
- Product: w3-total-cache
- Shodan-query: http.component:"WordPress" http.component:"W3 Total Cache"
- Vendor: boldgrid
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| boldgrid:w3-total-cache | no | — |
Labels
- Name: W3 Total Cache - Information Exposure
- Impact: Unauthenticated attackers can view sensitive information in logs, potentially aiding in further attacks like CSRF.
- Remediation: Disable debug feature or update to the latest version where this issue is fixed.
- Vulnerability type: misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2024-12008
- Not known: requirements
```yaml
id: CVE-2024-12008
info:
name: W3 Total Cache < 2.8.2 - Log File Exposure
author: ritikchaddha
severity: medium
description: |
The plugin is vulnerable to Information Exposure through the publicly exposed debug log file. This makes it possible for unauthenticated attackers to view potentially sensitive information in the exposed log file. For example, the log file may contain nonce values that can be used in further CSRF attacks.
impact: |
Unauthenticated attackers can extract sensitive credentials, leading to potential account compromise and further attacks.
remediation: |
Update the W3 Total Cache plugin to version 2.8.2 or later, which restricts access to debug log files. Additionally, disable debug logging in production environments and ensure .htaccess rules block direct access to the cache/log directory.
reference:
- https://wpscan.com/vulnerability/1685ca58-1622-433b-b561-304cb9d1bc56/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/8292f23c-fb17-4082-9788-f643d1bb097e
- https://nvd.nist.gov/vuln/detail/CVE-2024-12008
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 5.3
cve-id: CVE-2024-12008
epss-score: 0.02351
epss-percentile: 0.84133
cwe-id: CWE-532
metadata:
verified: true
max-request: 3
vendor: boldgrid
product: w3-total-cache
framework: wordpress
shodan-query: http.component:"WordPress" http.component:"W3 Total Cache"
fofa-query: app="WordPress-W3-Total-Cache"
tags: cve,cve2024,wordpress,wp,wp-plugin,w3-total-cache,exposure,logs
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/cache/log/000000/pagecache.log"
- "{{BaseURL}}/wp-content/cache/log/000000/minify.log"
stop-at-first-match: true
matchers:
- type: dsl
dsl:
- 'regex("\\[[A-Za-z]{3}, \\d{2} [A-Za-z]{3} \\d{4} \\d{2}:\\d{2}:\\d{2} [+-]\\d{4}\\]", body)'
- 'contains(body, "[/] [-]")'
- 'status_code == 200'
condition: and
digest: 4a0a0047304502210084efeca9cd9a960994344acbd91747d7c8e70c649a8a303c975b8ee297ed50ed02203468fd618e920833e68cf263629e3a97e3fe3d9248c6ed2b36c2bcba82791a1e:922c64590222798bb761d5b6d8e72950
```