CVE-2024-6872: TemplateSpare - Broken Access Control
- Cve: CVE-2024-6872
- Name: TemplateSpare - Broken Access Control
- Description: The Build Your Dream Website Fast with 400+ Starter Templates and Landing Pages, No Coding Needed, One-Click Import for Elementor & Gutenberg Blocks! – TemplateSpare plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'templatespare_activate_required_theme' and 'templatespare_get_theme_status' functions in all versions up to, and including, 2.4.2. This makes it possible for authenticated attackers, with Subscriber-level access and above, to activate any installed theme and read any theme status. If the attacker attempts to activate a theme that is not installed, a non-existent theme with the slug chosen by the attacker will be considered the active theme, leaving the site with no theme functionality.
- Impact: Authenticated attackers can activate arbitrary themes and read theme status, potentially disrupting site appearance and functionality.
- Remediation: Update to the latest version of the plugin where the capability check is implemented.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation, information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs to be logged in with Subscriber privileges or higher
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Epss score: 0.00325
- Epss percentile: 0.26037
- Assignee: [email protected]
- Published at: 2024-08-03T12:15:17Z
- Age in days: 843
- Modified at: 2026-06-17T08:18:52Z
- Patch available: yes
- References total: 4
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-6872
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-862 | Missing Authorization |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| templatespare:templatespare | < 2.4.3 | no | nvd | /v1/products/templatespare/templatespare |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts