CVE-2026-5957
Last modified
CVE-2026-5957 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.57% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-5957?
How severe is CVE-2026-5957?
How do I fix CVE-2026-5957?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59564An authentication bypass issue exists in communications betw…9.1
- CVE-2026-59565A remotely exploitable buffer overflow bug can cause a local…8.8
- CVE-2026-59566A locally exploitable buffer overflow bug can cause a local …8.4
- CVE-2026-59567Multiple vulnerabilities on affected versions of Zscaler Cli…8.8
- CVE-2026-59568Multiple vulnerabilities on affected versions of Zscaler Cli…9.1
- CVE-2026-59569An improper input validation vulnerability in Zscaler Client…8.1
- CVE-2026-59570On affected versions of Zscaler client connector, a pre-inst…7.5
- CVE-2026-59573In max_num_ref_frames of avc_decoder, there is a possible No…
- CVE-2026-59574In notifyPollingLoopFrames of hal_fwlog.cc, there is a possi…
- CVE-2026-59575In stpropnci_cb_observe_mode_suspend of stpropnci_prop_andro…
- CVE-2026-59578In s_check_valid_tile_param_custom_tile of av1_encoder, ther…
- CVE-2026-59579In getUserDataPayload of GC2UserData.cpp, there is a possibl…
Are you affected by CVE-2026-5957?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
