Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain Author-level WordPress credentials
-
DeliveryAuthenticate to WordPress admin or REST API
-
ExploitCraft POST request with absolute file path
-
InstallSubmit to emailkit-editor-template REST endpoint
-
C2Validation bypass triggered by PHP 8.x type coercion
-
ExecuteReturn arbitrary file contents
-
ImpactExfiltrate sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to possess authenticated access at Author level or above within WordPress. The vulnerability is specific to PHP 8.x environments; sites running PHP 7.x or earlier are NOT vulnerable because the type coercion behavior (false converted to empty string in strpos()) does not occur in those versions. The base directory wp-content/uploads/emailkit/templates/ must not exist on the server (a reasonable assumption for many installations where this directory has not been created), triggering the realpath() false return that initiates the validation bypass. No special plugin configuration is required; the vulnerability is present in default installations. The attacker must be able to make HTTP requests to the WordPress REST API endpoint /wp-json/emailkit/v1/create-template, which is publicly accessible but requires valid authentication credentials. No user interaction is required beyond the initial API request. |
| Impact | The vulnerability presents a moderate-to-high real-world risk despite the authentication requirement. CVSS 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) correctly reflects that the attack requires network access, low complexity exploitation, and low privileges (Author level), with high confidentiality impact but no integrity or availability impact. EPSS data is not provided in the input, preventing probabilistic exploitation assessment. The authentication requirement (PR:L) substantially limits the attack surface compared to unauthenticated vulnerabilities, as exploitation requires a compromised or legitimate Author account. However, the Author role is commonly held by contributors in multi-user WordPress installations, and account compromise (via password reuse, phishing, or other means) is a frequent attack vector. The path traversal mechanism is straightforward to exploit once authenticated, requiring only modification of a REST API parameter to an absolute path like /etc/passwd or /var/www/html/wp-config.php. The vulnerability affects all versions up to 1.6.5 with no evidence of older patched releases, indicating a long exposure window. The PHP 8.x-specific type coercion behavior means the vulnerability only manifests on PHP 8.0 and later, partially limiting impact to sites using older PHP versions, though WordPress hosting increasingly defaults to PHP 8.x. Risk is elevated because wp-config.php disclosure exposes database credentials and security keys, enabling full site compromise even without code execution. Remediation requires a plugin update, and no workarounds are documented. |
| Exploit ScenarioDerived | An attacker with a compromised Author-level WordPress account (e.g., obtained via credential theft or social engineering) authenticates to the WordPress backend and submits a crafted POST request to the /wp-json/emailkit/v1/create-template REST endpoint with the emailkit-editor-template parameter set to an absolute path such as /var/www/html/wp-config.php. The create_template() method's flawed path validation (realpath() on a non-existent directory) permits the traversal, and the endpoint returns the contents of wp-config.php, which includes the database password and security keys. The attacker uses these credentials to access the WordPress database directly or authenticate as an administrator, escalating to full site compromise without requiring code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
EmailKit plugin for WordPress versions up to 1.6.5 allows authenticated attackers with Author-level access to read arbitrary files from the server due to a path traversal vulnerability in the create_template() method. The vulnerability exploits a PHP 8.x type coercion flaw where realpath() returns false for non-existent directories, causing strpos() validation to incorrectly evaluate and bypass directory restrictions. Attackers can retrieve sensitive files such as wp-config.php by submitting absolute paths via the emailkit-editor-template REST API parameter. No public exploit code identified at time of analysis, though the vulnerability mechanism is trivial to weaponize once authentication is obtained.
RemediationAI
Update the EmailKit plugin to a version released after 1.6.5 immediately; the exact fixed version number is not confirmed in the available data, but vendor updates addressing this path traversal flaw should be available via the WordPress Plugin Directory or the plugin's update mechanism. The core fix requires modification of the create_template() method in the CheckForm class to properly validate that the base templates directory exists before calling realpath(), and to ensure that any user-supplied path is normalized and verified to reside within the intended directory using robust comparison logic (e.g., comparing canonical paths with array checks rather than strpos()). Until a patched version is deployed, restrict Author-level and Editor-level access to only trusted users, and consider temporarily deactivating the EmailKit plugin if not actively in use. Web application firewalls or reverse proxies can be configured to block requests to the emailkit-editor-template REST endpoint that contain absolute paths or traversal sequences (../, encoded variations), though this is a temporary control and does not address the underlying vulnerability. Database backups should be taken before deploying the update to mitigate potential data loss during patching. Verify that wp-config.php and other sensitive files have not been accessed by reviewing web server access logs and database query logs for unusual activity following the update.
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
The vulnerability resides in the CheckForm class's create_template() method, which validates file paths before allowing template operations. The flawed logic calls realpath() on the base directory wp-content/uploads/emailkit/templates/ without checking if this directory exists. In PHP 8.x, when realpath() returns false (indicating the path does not exist), the subsequent strpos($real_path, false) operation triggers an implicit type coercion converting false to an empty string. The function strpos() with an empty string as the needle parameter always returns 0 (the position of the empty substring at the start). The validation logic strpos($real_path, 0) !== 0 then evaluates to false, bypassing the intended directory containment check. This is a classic path traversal vulnerability (CWE-22) combined with a PHP version-specific type juggling flaw. The REST API endpoint emailkit-editor-template processes user-supplied paths without proper normalization after the failed validation, allowing traversal sequences (e.g., absolute paths or ../ sequences) to access files outside the intended templates directory.
Know when PHP 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:L/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The EmailKit plugin for WordPress is vulnerable to Arbitrary File Read in all versions up to and including 1.6.5. This is due to a flawed path traversal validation in the create_template() method of the CheckForm class, where realpath() is called on the allowed base directory (wp-content/uploads/emailkit/templates/) which may not exist, causing it to return false. In PHP 8.x, strpos($real_path, false) implicitly converts false to an empty string, and strpos() with an empty needle always returns 0, causing the check strpos(...) !== 0 to evaluate to false and bypassing the path validation entirely. This makes it possible for authenticated attackers, with Author-level access and above, to read arbitrary files from the server, including sensitive files such as wp-config.php, by supplying an absolute path to the emailkit-editor-template REST API parameter.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-27197
GHSA-28j2-6q62-7r48
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB