Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3352: CWE-94 Improper Control of Generation of Code ('Code Injection') in shahadul878 Easy PHP Settings

0
High
VulnerabilityCVE-2026-3352cvecve-2026-3352cwe-94
Published: Sat Mar 07 2026 (03/07/2026, 01:21:24 UTC)
Source: CVE Database V5
Vendor/Project: shahadul878
Product: 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

AILast updated: 04/09/2026, 11:34:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/22/2026, 6:42:47 AM

Views: 96

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses