{"id":"CVE-2026-3352","aliases":["CVE-2026-3352"],"related":[],"kind":"vulnerability","state":"published","title":"Easy PHP Settings <= 1.0.4 - Authenticated (Administrator+) PHP Code Injection via 'wp_memory_limit' Setting","summary":"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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 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.","source":"cvelist"},{"lang":"es","text":"El plugin Easy PHP Settings para WordPress es vulnerable a la inyección de código PHP en todas las versiones hasta la 1.0.4, inclusive, a través del método 'update_wp_memory_constants()'. Esto se debe a una validación de entrada insuficiente en las configuraciones 'wp_memory_limit' y 'wp_max_memory_limit' antes de escribirlas en 'wp-config.php'. La función 'sanitize_text_field()' utilizada para la sanitización no filtra las comillas simples, lo que permite a un atacante salir del contexto de la cadena en una declaración PHP 'define()'. Esto hace posible que atacantes autenticados, con acceso de nivel de Administrador y superior, inyecten y ejecuten código PHP arbitrario en el servidor modificando 'wp-config.php', que se carga en cada solicitud de página.","source":"nvd"}],"published":"2026-03-07T01:21:24.875Z","modified":"2026-06-17T10:43:27.507Z","severity":{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.0.4","status":"affected"}],"vendor":"shahadul878","product":"Easy PHP Settings","source":"cvelist"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f9927487-99fb-46d9-a208-f19e0a371267?source=cve","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/easy-php-settings/tags/1.0.4/class-easy-php-settings.php#L1800","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/easy-php-settings/trunk/class-easy-php-settings.php#L1800","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/easy-php-settings/tags/1.0.5/class-easy-php-settings.php#L1998","tags":[],"sources":["cvelist","nvd"]}],"credits":["ZAST.AI"],"assigner":"Wordfence","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-03-09T19:07:36.352Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-3352","url":"https://www.cve.org/CVERecord?id=CVE-2026-3352","licence":"CVE Terms of Use","modified":"2026-04-08T17:34:12.443Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-3352","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3352","licence":"Public domain","modified":"2026-06-17T10:43:27.507Z"}],"updatedAt":"2026-11-25T22:59:15.451Z","epss":{"score":0.00436,"percentile":0.39603,"date":"2026-12-02T12:00:21.000Z"}}