PT-2026-109485 · Hostspa · Fastcache By Host.It

·

CVE-2026-104021

·

Published

2026-10-10

·

Updated

2026-10-10

CVSS v3.1

7.2

High

VectorAV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
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.

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-104021

Affected Products

Fastcache By Host.It