CVE-2026-104021: Fastcache by Host.it <= 1.7.4 - Authenticated (Administrator+) Code Injection via .htaccess Directive Injection via 'cache_cookie_exclude' Setting

Published Oct 10, 2026
·
Updated

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 fastcachesettings[cachecookieexclude][] parameter. This is due to the plugin registering the cachecookieexclude setting via registersetting() without a sanitizecallback, 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 fileputcontents(), enabling server-level configuration changes such as setting phpvalue autoprependfile to execute attacker-controlled PHP code on every request.

Affected Software

1 affected component
Host.it Fastcache<=1.7.4

Event History

Oct 10, 2026
CVE Published
via MITRE·04:26 AM
Data Sourced
via MITRE·04:26 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker must be authenticated to WordPress with administrator-level access or higher. The attack does not require user interaction.

2

What level of access could exploitation provide?

An attacker can inject arbitrary Apache directives into the site's .htaccess file. For example, they could configure php_value auto_prepend_file to run attacker-controlled PHP code on every request, enabling server-level configuration changes.

3

What input is used to inject directives?

The vulnerable input is the fastcache_settings[cache_cookie_exclude][] setting. Embedded newlines are not removed before the value is placed into an Apache RewriteCond line, allowing additional directives to be appended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203