U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2026-4132 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1296 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1298 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1403 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L671 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L722 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L97 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1296 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1298 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1403 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L671 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L722 Wordfence
https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L97 Wordfence
https://www.wordfence.com/threat-intel/vulnerabilities/id/ce010c6f-16bd-4178-a621-31ba6378946a?source=cve Wordfence

Weakness Enumeration

CWE-ID CWE Name Source
CWE-73 External Control of File Name or Path Wordfence  

Change History

1 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2026-4132
NVD Published Date:
04/22/2026
NVD Last Modified:
04/22/2026
Source:
Wordfence