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

Summary

CVECVE-2026-4132
StatePUBLISHED
AssignerWordfence
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-04-22 09:16:24 UTC
Updated2026-04-22 09:16:24 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v3.1 7.2 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-73 | CWE-73 CWE-73 External Control of File Name or Path


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.2HIGHCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED7.2HIGHCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

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

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Zinoui HTTP Headers affected 1.19.2 semver Not specified

References

ReferenceSourceLinkTags
plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php [email protected] plugins.trac.wordpress.org
www.wordfence.com/threat-intel/vulnerabilities/id/ce010c6f-16bd-4178-a621-31ba6... [email protected] www.wordfence.com
plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php [email protected] plugins.trac.wordpress.org
plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php [email protected] plugins.trac.wordpress.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Chiao-Lin Yu (en)

Additional Advisory Data

SourceTimeEvent
CNA2026-04-21T19:13:19.000ZDisclosed
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report