Skip to main content

HTTP Headers EUVDEUVD-2026-24674

| CVE-2026-4132 HIGH
External Control of File Name or Path (CWE-73)
2026-04-22 Wordfence
7.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Compromise admin credentials
  2. Delivery
    Access WordPress dashboard
  3. Exploit
    Navigate to HTTP Headers plugin settings
  4. Install
    Set htpasswd path to webroot PHP file
  5. C2
    Inject PHP code via username field
  6. Execute
    Trigger credentials update
  7. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

HTTP Headers 0 ≤1.19.2

Affected Packages

euvd http_headers no fix

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

NVD PRIMARY 7.2 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 45% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 3

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy