Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as WordPress administrator
-
DeliverySubmit crafted cache_cookie_exclude value with embedded newline
-
ExploitBreak out of RewriteCond and inject Apache directives
-
ExecutionPlugin writes directives to .htaccess
-
PersistSet auto_prepend_file to attacker PHP
-
ImpactExecute arbitrary PHP server-wide
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated administrator-level account (PR:H) because the injection point is the plugin's |
| Impact | This is a genuine but access-gated code-execution flaw, best treated as a privilege-to-RCE escalation rather than a mass-exploitable perimeter bug. The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N, base 7.2 HIGH) correctly captures the central limiting factor: PR:H means the attacker must already hold administrator-level access to the WordPress site, since the injection is reached through the plugin's settings (register_setting without a sanitize_callback). The high confidentiality/integrity/availability impacts are justified because the end result is attacker-controlled PHP executed on every request via an .htaccess auto_prepend_file directive - effectively full server-side code execution. No EPSS score, KEV listing, or POC was provided in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation; this argues against emergency prioritization. The practical caveat for defenders is that a WordPress administrator already has substantial power (plugin/theme file editing, PHP execution) in many default configurations, so the real added risk is mainly in hardened or multi-admin/managed-hosting environments where admins are intentionally denied direct file/.htaccess write access - there this flaw meaningfully breaks that boundary. No signals conflict; the main gap is the absence of exploitation-probability data (EPSS/KEV/POC all unstated). |
| Exploit ScenarioDerived | An attacker who has obtained WordPress administrator access (via compromised credentials, a second vulnerability, or a malicious/co-admin account) opens the Fastcache settings and submits a cache_cookie_exclude value containing an embedded newline followed by an Apache directive such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 10, 2026
Code injection in the Fastcache by Host.it WordPress plugin (all versions up to and including 1.7.4) allows an authenticated administrator-level user to write arbitrary Apache directives into the site's .htaccess file, which can be escalated to full remote code execution by setting php_value auto_prepend_file to load attacker-controlled PHP on every request. Exploitation requires the PR:H vector from the assessed CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H score (7.2), i.e. a logged-in account with administrator privileges, and is further conditioned on the site running Apache with an .htaccess file the plugin can write and an AllowOverride configuration that honors php_value directives - on nginx or Apache with AllowOverride None the injected directives have no effect. No public exploit code was identified at time of analysis and the flaw is not listed in CISA KEV; this is a genuine but access-gated privilege-to-RCE escalation rather than a mass-exploitable perimeter bug.
RemediationAI
No vendor-released patched version could be independently confirmed from the supplied data: the only fix indicator is the upstream Trac changeset at https://plugins.trac.wordpress.org/changeset?reponame=&old=3735944%40fastcache-by-host-it&new=3735944%40fastcache-by-host-it, so treat this as an upstream fix available (changeset/commit) with the released patched version not independently confirmed - verify the plugin's current version on WordPress.org and update only if the changelog shows the cache_cookie_exclude sanitization fix. Until a patched release is installed, the most effective mitigation is to remove the attack precondition rather than rely on the privilege gate: restrict the WordPress administrator role to fully trusted operators, since exploitation requires PR:H and a compromised or malicious admin is the entry point. Second, neutralize the sink by making the site's .htaccess non-writable to the web server user (for example read-only permissions or chattr +i) or by setting AllowOverride None - or at minimum denying the php_value/FileInfo and Options overrides - so that injected directives such as php_value auto_prepend_file cannot take effect; the trade-off is that the plugin (and any other plugin) loses the ability to rewrite caching rules, which may disable Fastcache's static-cache behavior until the plugin is patched or uninstalled. Third, as a targeted virtual patch, deploy a WAF or request-filtering rule that rejects newline characters (CR/LF) in any fastcache_settings[cache_cookie_exclude][] value, accepting that this is bypassable by a determined authenticated admin who can edit files by other means. If the plugin is not essential, deactivate and delete it - note that this removes the caching feature entirely but also eliminates the vulnerable settings endpoint. Review existing .htaccess files for unexpected php_value auto_prepend_file or other injected directives, and consult the Wordfence advisory for the vendor's latest guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-94 (Code Injection) arising from a missing input-sanitization boundary in the plugin's WordPress settings registration. The plugin registers the cache_cookie_exclude setting through register_setting() without a sanitize_callback, so the multi-value fastcache_settings[cache_cookie_exclude][] parameter is stored essentially verbatim (see src/Admin.php#L73 and src/Dispatcher.php#L480 in the 1.7.4 source tree). When the plugin generates Apache rewrite rules in buildSiteHtaccessRules() (src/Core/Platform/Utility.php, notably around lines 420/521/545), each cookie value passes through trim() only - normalization that removes surrounding whitespace but preserves embedded CR/LF characters - and is then interpolated directly into a RewriteCond line inside the .htaccess content, which is committed to disk with file_put_contents(). An embedded newline therefore breaks out of the intended capture group and terminates the RewriteCond, allowing arbitrary Apache directive lines to be appended to the same file. Because .htaccess is server-level configuration on Apache, directives such as php_value auto_prepend_file cause attacker-supplied PHP to be prepended to every request handled by that document root, converting a settings-storage weakness into persistent code execution. The environment dependency is decisive: the technique only works where the document root is served by Apache, the file is writable by the web user, and AllowOverride grants the FileInfo/Options overrides needed to honor php_value - the CPE cpe:2.3:a:hostspa:fastcache_by_host.it:*:*:*:*:*:*:*:* confirms the affected package is the plugin itself, not Apache or WordPress core.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Reached over the network via the admin settings UI (AV:N/AC:L) but only by an administrator (PR:H); yields full PHP execution on the same host, so C:H/I:H/A:H and S:U.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Fastcache by Host.it plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 1.7.4 via the fastcache_settings[cache_cookie_exclude][] parameter. This is due to the plugin registering the cache_cookie_exclude setting via register_setting() without a sanitize_callback, while buildSiteHtaccessRules() applies only trim() to each cookie value before interpolating it directly into an Apache RewriteCond line - a normalization that strips surrounding whitespace but leaves embedded newlines intact, allowing an attacker to break out of the capture group and append arbitrary directives. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary Apache directives into the site's .htaccess file via file_put_contents(), enabling server-level configuration changes such as setting php_value auto_prepend_file to execute attacker-controlled PHP code on every request.
Executive ViewAI
Fastcache by Host.it WordPress plugin, versions up to and including 1.7.4, contains a high-severity code injection flaw that allows an authenticated administrator to write Apache directives and potentially achieve full remote code execution on affected sites. The organizational impact includes potential compromise of the WordPress site and its hosting environment, so leadership should care because a compromised or malicious admin account could lead to data theft, defacement, or server takeover, though exploitation is gated by administrator access and specific Apache configurations. No public exploit identified at time of analysis, and no vendor-released patch identified at time of analysis.
No vendor-released patch identified at time of analysis; interim mitigations include removing or disabling Fastcache by Host.it through 1.7.4, restricting administrator-level access, auditing .htaccess for unexpected php_value auto_prepend_file directives, setting Apache AllowOverride None or disallowing php_value overrides, and enabling file integrity monitoring for .htaccess and PHP files.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-96068
GHSA-hm53-mjmf-w6v4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB