CVE-2026-3352: CWE-94 Improper Control of Generation of Code ('Code Injection') in shahadul878 Easy PHP Settings
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.
AI Analysis
Technical Summary
CVE-2026-3352 is a high-severity vulnerability in the Easy PHP Settings WordPress plugin (up to version 1.0.4) that allows authenticated administrators to perform PHP code injection. The flaw exists in the update_wp_memory_constants() method where the wp_memory_limit and wp_max_memory_limit settings are insufficiently sanitized before being written to wp-config.php. The sanitization function sanitize_text_field() fails to filter single quotes, enabling attackers to break out of the string context in PHP define() statements and inject arbitrary PHP code. This code executes on every page load, potentially compromising the server.
Potential Impact
Successful exploitation allows an attacker with Administrator-level access to execute arbitrary PHP code on the server by modifying wp-config.php. This can lead to full server compromise, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, restrict Administrator-level access to trusted users only and consider disabling or removing the Easy PHP Settings plugin if possible to prevent exploitation.
CVE-2026-3352: CWE-94 Improper Control of Generation of Code ('Code Injection') in shahadul878 Easy PHP Settings
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-3352 is a high-severity vulnerability in the Easy PHP Settings WordPress plugin (up to version 1.0.4) that allows authenticated administrators to perform PHP code injection. The flaw exists in the update_wp_memory_constants() method where the wp_memory_limit and wp_max_memory_limit settings are insufficiently sanitized before being written to wp-config.php. The sanitization function sanitize_text_field() fails to filter single quotes, enabling attackers to break out of the string context in PHP define() statements and inject arbitrary PHP code. This code executes on every page load, potentially compromising the server.
Potential Impact
Successful exploitation allows an attacker with Administrator-level access to execute arbitrary PHP code on the server by modifying wp-config.php. This can lead to full server compromise, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, restrict Administrator-level access to trusted users only and consider disabling or removing the Easy PHP Settings plugin if possible to prevent exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-02-27T16:44:39.061Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69ac8b62c48b3f10ffc6f6be
Added to database: 3/7/2026, 8:32:34 PM
Last enriched: 4/9/2026, 11:34:12 AM
Last updated: 4/21/2026, 10:14:40 PM
Views: 95
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.