Cyber Resilience

CVE-2026-3352

HighRCE

Published: 07 March 2026

Published
07 March 2026
Modified
22 April 2026
KEV Added
Patch
CVSS Score v3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0007 20.9th percentile
Risk Priority 14 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2026-3352 is a high-severity Code Injection (CWE-94) vulnerability in Wordpress (inferred from references). Its CVSS base score is 7.2 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 20.9th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and AC-6 (Least Privilege).

Deeper analysis

CVE-2026-3352 is a PHP code injection vulnerability in the Easy PHP Settings plugin for WordPress, affecting all versions up to and including 1.0.4. The flaw exists in the `update_wp_memory_constants()` method, which performs insufficient input validation on the `wp_memory_limit` and `wp_max_memory_limit` settings before writing them to `wp-config.php`. Specifically, the `sanitize_text_field()` function fails to filter single quotes, enabling attackers to escape the string context within a PHP `define()` statement.

Authenticated attackers with Administrator-level access or higher can exploit this vulnerability over the network with low complexity. By submitting malicious values for the affected settings, they can inject arbitrary PHP code into `wp-config.php`, which is loaded on every page request, resulting in remote code execution. This grants high-impact confidentiality, integrity, and availability effects, as reflected in the CVSS v3.1 base score of 7.2 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) and mapping to CWE-94.

References include source code from vulnerable version 1.0.4, patched version 1.0.5, and the current trunk, along with a Wordfence threat intelligence advisory. Mitigation involves updating the Easy PHP Settings plugin to version 1.0.5 or later, where the input handling appears to have been addressed.

EU & UK References

Vulnerability details

The Easy PHP Settings plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 1.0.4 via the `update_wp_memory_constants()` method. This is due to insufficient input validation on the `wp_memory_limit` and `wp_max_memory_limit` settings before writing…

more

them to `wp-config.php`. The `sanitize_text_field()` function used for sanitization does not filter single quotes, allowing an attacker to break out of the string context in a PHP `define()` statement. This makes it possible for authenticated attackers, with Administrator-level access and above, to inject and execute arbitrary PHP code on the server by modifying `wp-config.php`, which is loaded on every page request.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1505.003 Web Shell Persistence
Adversaries may backdoor web servers with web shells to establish persistent access to systems.
Why these techniques?

Vulnerability in public-facing WordPress plugin enables direct exploitation for RCE; code injection into wp-config.php (loaded on every request) deploys persistent web shell functionality.

Confidence: HIGH · MITRE ATT&CK Enterprise v18.1

CVEs Like This One

CVE-2024-57487Shared CWE-94
CVE-2025-70995Shared CWE-94
CVE-2026-32367Shared CWE-94
CVE-2026-30117Shared CWE-94
CVE-2026-45708Shared CWE-94
CVE-2023-53888Shared CWE-94
CVE-2024-50660Shared CWE-94
CVE-2026-26699Shared CWE-94
CVE-2025-70073Shared CWE-94
CVE-2024-13890Shared CWE-94

Affected Assets

Wordpress
inferred from references and description; NVD did not file a CPE for this CVE

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly requires validation of inputs to wp_memory_limit/wp_max_memory_limit before they are written into define() statements in wp-config.php, blocking the single-quote escape that enables PHP injection.

prevent

Enforces access restrictions on changes to configuration files such as wp-config.php, limiting the ability of even Administrator accounts to inject code via the plugin.

prevent

Restricts the privileges granted to administrative users so they cannot reach or abuse the update_wp_memory_constants() function that writes unsanitized values.

References