CVE Explorer
CVE-2026-5957
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"EmailKit – Email Customizer for WooCommerce & WP","vendor":"roxnor","versions":[{"lessThanOrEqual":"1.6.5","status":"affected","version":"0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":6.5,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/problemTypes/0/descriptions/0
Source references
10 source assertions{"url":"https://plugins.trac.wordpress.org/browser/emailkit/tags/1.6.5/includes/Admin/Api/CheckForm.php#L163"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/6
{"url":"https://plugins.trac.wordpress.org/browser/emailkit/tags/1.6.5/includes/Admin/Api/CheckForm.php#L166"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/1
{"url":"https://plugins.trac.wordpress.org/browser/emailkit/tags/1.6.5/includes/Admin/Api/CheckForm.php#L170"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/2
{"url":"https://plugins.trac.wordpress.org/browser/emailkit/tags/1.6.5/includes/Admin/EmailSettings/MetformEmailSettings.php#L252"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/3
{"url":"https://plugins.trac.wordpress.org/browser/emailkit/trunk/includes/Admin/Api/CheckForm.php#L163"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/5
{"url":"https://plugins.trac.wordpress.org/browser/emailkit/trunk/includes/Admin/Api/CheckForm.php#L166"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/7
{"url":"https://plugins.trac.wordpress.org/browser/emailkit/trunk/includes/Admin/Api/CheckForm.php#L170"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/4
{"url":"https://plugins.trac.wordpress.org/browser/emailkit/trunk/includes/Admin/EmailSettings/MetformEmailSettings.php#L252"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/8
{"url":"https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3511701%40emailkit%2Ftrunk&old=3496714%40emailkit%2Ftrunk&sfp_email=&sfph_mail="}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/9
{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/ae58e5b0-b587-4503-8519-c5a50245891a?source=cve"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fe8c93b37a866f608d13857d560bfda5e2f65f118b0e6698e5712b8f047d82a2 · sha256:fa6c4714146e4297… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.