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' Parameters
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.
INFO
Published Date :
April 22, 2026, 9:16 a.m.
Last Modified :
April 22, 2026, 9:16 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-4132
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the HTTP Headers plugin to version 1.19.3 or later.
- Validate file paths and sanitize user inputs.
- Review file write operations for security.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-4132.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-4132 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-4132
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-4132 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-4132 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by [email protected]
Apr. 22, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-73 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1296 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1298 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1403 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L671 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L722 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L97 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1296 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1298 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1403 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L671 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L722 Added Reference https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L97 Added Reference https://www.wordfence.com/threat-intel/vulnerabilities/id/ce010c6f-16bd-4178-a621-31ba6378946a?source=cve