Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCompromise admin credentials
-
DeliveryAccess WordPress dashboard
-
ExploitNavigate to HTTP Headers plugin settings
-
InstallSet htpasswd path to webroot PHP file
-
C2Inject PHP code via username field
-
ExecuteTrigger credentials update
-
ImpactExecute commands via web shell
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Requires authenticated Administrator-level access to the WordPress installation (PR:H from CVSS vector). The HTTP Headers plugin must be installed and activated (versions ≤1.19.2). Attacker needs ability to modify plugin settings through the WordPress admin interface, specifically the 'hh_htpasswd_path' and 'hh_www_authenticate_user' configuration options. The web server process must have write permissions to the target directory specified in the malicious file path - exploitation fails if filesystem permissions prevent writing to attacker-chosen locations. The target file path must be web-accessible for post-exploitation command execution, though file write itself succeeds even for non-web-accessible paths. No user interaction required (UI:N) once admin credentials are obtained. Limiting factors: high privilege requirement significantly constrains attack surface to scenarios where admin accounts are already compromised, insider threats, or chained with authentication bypass vulnerabilities. Multi-factor authentication on admin accounts and principle of least privilege (limiting admin role assignment) substantially reduce exploitation likelihood. |
| Impact | Real-world risk is moderate despite the 7.2 CVSS score due to the high privilege requirement (PR:H - Administrator access). The CVSS vector (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) indicates network-accessible exploitation with low complexity but requiring administrative credentials, which significantly limits the attack surface. No EPSS score, KEV listing, or public exploit code is present in available data, suggesting this is not being actively exploited in the wild. However, the technical impact is severe - successful exploitation grants complete server compromise through arbitrary file write leading to RCE. Primary risk scenarios include: (1) compromised administrator accounts being escalated to full server access, (2) malicious insiders with admin privileges, or (3) chained exploitation where an authentication bypass or privilege escalation vulnerability provides the required admin access. The vulnerability is particularly concerning for shared hosting environments where WordPress administrators should not have arbitrary filesystem write capabilities. Wordfence source code references confirm the vulnerability exists in production code, increasing confidence in exploitability for attackers with the prerequisite access level. |
| Exploit ScenarioDerived | An attacker who has compromised a WordPress administrator account (or malicious insider with admin privileges) logs into the WordPress dashboard and navigates to the HTTP Headers plugin configuration. They set the 'hh_htpasswd_path' option to '/var/www/html/wp-content/shell.php' (a web-accessible path) and configure the 'hh_www_authenticate_user' field with a malicious username containing PHP code, such as '<?php system($_GET["cmd"]); ?> //validuser'. When the plugin's update_auth_credentials() function executes, it writes this content to the attacker-controlled path via file_put_contents(), creating a working PHP web shell. The attacker then accesses https://victim-site.com/wp-content/shell.php?cmd=whoami to execute arbitrary operating system commands with web server privileges, achieving full remote code execution and potentially escalating to root access through kernel exploits or SUID binaries. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 22, 2026
Arbitrary file write in HTTP Headers plugin for WordPress versions ≤1.19.2 enables authenticated administrators to achieve remote code execution by manipulating htpasswd file path configuration and injecting PHP code via unsanitized username input. Administrators can set a malicious file path (e.g., webroot/shell.php) through 'hh_htpasswd_path' option and inject executable code via the 'hh_www_authenticate_user' field, which is written directly to disk without validation. Wordfence disclosure includes direct source code references showing the vulnerable apache_auth_credentials() and update_auth_credentials() functions. No public exploit code or active exploitation confirmed at time of analysis.
RemediationAI
Immediately upgrade the HTTP Headers plugin to a version newer than 1.19.2 if available, verifying the vendor has addressed path traversal and input sanitization issues in apache_auth_credentials() and update_auth_credentials() functions per Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/ce010c6f-16bd-4178-a621-31ba6378946a. Check the WordPress plugin repository for updated releases. If no patched version exists, implement compensating controls: (1) disable or uninstall the HTTP Headers plugin if HTTP Basic Authentication functionality is not required for business operations, (2) restrict WordPress administrator access to only highly trusted users and enforce multi-factor authentication on all admin accounts to reduce credential compromise risk, (3) implement filesystem-level permissions preventing the web server user from writing to web-accessible directories outside wp-content/uploads, noting this may break legitimate plugin functionality, (4) deploy web application firewall rules to monitor and alert on suspicious file creation in webroot directories, and (5) conduct forensic review of existing files in webroot for unexpected PHP files that may indicate prior exploitation, particularly files with htpasswd-style content or recently modified timestamps coinciding with administrator logins.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects the HTTP Headers WordPress plugin (cpe:2.3:a:zinoui:http_headers) and stems from CWE-73 (External Control of File Name or Path). The plugin implements HTTP Basic Authentication functionality that writes htpasswd-style credentials to disk. The apache_auth_credentials() function constructs file content using sprintf('%s:{SHA}%s', $user, ...) without sanitizing the $user variable, while update_auth_credentials() uses file_put_contents() to write to a path controlled by the 'hh_htpasswd_path' option. PHP's file_put_contents() will create files with any extension when given an absolute path, and the plugin fails to restrict paths to safe locations or validate file extensions. By combining path traversal control with content injection through the username parameter, attackers can write arbitrary PHP code to web-accessible locations, bypassing WordPress's normal file upload restrictions.
Know when Http Headers gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-4132 affects HTTP Headers plugin for WordPress up to version 1.19.2 and allows authenticated site administrators to write arbitrary files and execute remote code on the server by exploiting unsanitized input handling in authentication credential management. Organizations running this plugin must immediately restrict administrator access and upgrade to patch a critical privilege escalation path that could lead to complete server compromise.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable HTTP Headers plugin entirely if functionality permits; (2) Restrict WordPress administrator role to strictly necessary personnel and enforce multi-factor authentication; (3) Implement Web Application Firewall rules to monitor for suspicious 'hh_htpasswd_path' and 'hh_www_authenticate_user' parameter manipulation; (4) Enable file integrity monitoring on webroot directory to detect unauthorized PHP files; (5) Review server access logs for unauthorized authentication configuration changes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in HTTP Headers WordPress Plugin XSS and Injection
View all 3More in Http Headers
View allThis HTTP Headers WordPress plugin before 1.18.11 allows arbitrary data to be written to arbitrary files, leading to a R
This HTTP Headers WordPress plugin before 1.18.8 has an import functionality which executes arbitrary SQL on the server,
Auth. Rated medium severity (CVSS 4.8), this vulnerability is remotely exploitable, low attack complexity. No vendor pat
Server-Side Request Forgery (SSRF) vulnerability in Dimitar Ivanov HTTP Headers.18.11. Rated medium severity (CVSS 4.4),
EUVD-2026-24674
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB