CVE-2026-4132
HTTP Headers <= 1.19.2 - Authenticated (Administrator+) External Control of File Name or Path to RCE via 'hh_htpasswd_path' and 'hh_www_authenticate_user'…
Description
The HTTP Headers plugin for WordPress is vulnerable to External Control of File Name or Path leading to Remote Code Execution in all versions up to and including 1.19.2. This is due to insufficient validation of the file path stored in the 'hh_htpasswd_path' option and lack of sanitization on the 'hh_www_authenticate_user' option value. The plugin allows administrators to set an arbitrary file path for the htpasswd file location and does not validate that the path has a safe file extension (e.g., restricting to .htpasswd). Additionally, the username field used for HTTP Basic Authentication is written directly into the file without sanitization. The apache_auth_credentials() function constructs the file content using the unsanitized username via sprintf('%s:{SHA}%s', $user, ...), and update_auth_credentials() writes this content to the attacker-controlled path via file_put_contents(). This makes it possible for authenticated attackers, with Administrator-level access and above, to write arbitrary content (including PHP code) to arbitrary file paths on the server, effectively achieving Remote Code Execution.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.04%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 64.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Apr 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-73 External Control of File Name or Path
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| HTTP Headers |
affected up to and including 1.19.2
Other versions: unaffected
|
Is my server affected?
This CVE is in HTTP Headers of zinoui, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.
Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.
References
Other references
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ce010c6f-16bd-4178-a621-31ba6378946a?source=cve wordfence.com
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1403 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1403 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1298 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1298 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1296 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1296 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L97 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L97 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L671 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L671 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L722 plugins.trac.wordpress.org
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L722 plugins.trac.wordpress.org
Source: the record CVE-2026-4132 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse