CVE-2026-104021: CWE-94 Improper Control of Generation of Code ('Code Injection') in hostspa Fastcache by Host.it
Description
Fastcache by Host.it WordPress plugin versions up to 1.7.4 contain a code injection vulnerability via the cache_cookie_exclude parameter. This flaw allows authenticated administrators to inject arbitrary Apache directives into the .htaccess file, potentially enabling execution of attacker-controlled PHP code on every request.
CVSS v3.1
Score 7.2high
Affected software
hostspa
Fastcache by Host.it
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Fastcache by Host.it plugin for WordPress improperly controls code generation in all versions up to and including 1.7.4. The vulnerability arises because the plugin registers the cache_cookie_exclude setting without a sanitize_callback, and the buildSiteHtaccessRules() function only trims whitespace but does not remove embedded newlines. This allows an attacker with administrator privileges to inject arbitrary Apache directives into the site's .htaccess file by breaking out of the intended capture group. The injection is performed 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.
Potential Impact
An authenticated attacker with administrator-level access can inject arbitrary Apache directives into the .htaccess file, leading to server-level configuration changes. This can result in remote code execution by forcing the server to execute attacker-controlled PHP code on every request, impacting confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrator access to trusted users only and monitor for suspicious changes to the .htaccess file. Avoid using vulnerable versions of the Fastcache plugin if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-10-01T17:00:05.312Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac9c02e2cdf04f656045423
Added to database: 10/10/2026, 04:33:50 UTC
Last enriched: 10/10/2026, 04:48:21 UTC
Last updated: 10/10/2026, 04:49:04 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.