LiveActive security incident?Get immediate response
CVE Record

CVE-2026-3352: Easy PHP Settings <= 1.0.4 - Authenticated (Administrator+) PHP Code Injection via 'wp_memory_limit' Setting

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.

HighCVSS 7.2Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A WordPress plugin, Easy PHP Settings, allowed site administrators to save malicious PHP into wp-config.php through memory limit settings. Because wp-config.php loads on every request, this can become full server-side code execution. The issue requires an authenticated Administrator-level account, so the main risk is compromised admins, malicious insiders, or sites with weak admin controls.

Executive priority

Prioritize remediation on internet-facing WordPress sites using this plugin, especially where multiple administrators exist. The privilege requirement lowers broad attack likelihood, but impact is high because successful abuse can run PHP code and affect confidentiality, integrity, and availability.

Technical view

CVE-2026-3352 is PHP code injection in Easy PHP Settings through version 1.0.4. The update_wp_memory_constants() method insufficiently validates wp_memory_limit and wp_max_memory_limit before writing PHP define() statements to wp-config.php. sanitize_text_field() does not remove single quotes, enabling string-context breakout. CVSS is 7.2, high, with high privileges required.

Likely exposure

WordPress sites running Easy PHP Settings version 1.0.4 or earlier are the relevant exposure. Exploitation requires an authenticated Administrator-level user or higher. Sites without this plugin, or not running affected versions, are not indicated as exposed by the provided sources.

Exploitation context

The provided sources do not indicate known active exploitation, and the CVE is not listed as KEV in the supplied bundle. The attacker must already have Administrator-level WordPress access, but successful exploitation can execute arbitrary PHP on the server via wp-config.php.

Researcher notes

Key review points are update_wp_memory_constants(), handling of wp_memory_limit and wp_max_memory_limit, and writes to wp-config.php. The provided references include vulnerable 1.0.4 code and a 1.0.5 code reference. Do not assume compromise without evidence; focus validation on versioning, admin access, and wp-config.php integrity.

Mitigation direction

  • Upgrade Easy PHP Settings to a version later than 1.0.4, where available.
  • If upgrade is unavailable, check vendor guidance and consider disabling the plugin.
  • Restrict WordPress Administrator access to trusted users only.
  • Enable MFA for administrator accounts where supported.
  • Review wp-config.php for unauthorized changes before returning the site to normal operation.

Validation and detection

  • Inventory WordPress sites for the Easy PHP Settings plugin.
  • Confirm installed plugin version is not 1.0.4 or earlier.
  • Review wp-config.php memory constant definitions for unexpected content.
  • Check recent Administrator account activity and plugin settings changes.
  • Verify the plugin update source is the official WordPress plugin repository.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-3352 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.2 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.2CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H1.25.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.2High
CVSS 3.1 vector shape for CVE-2026-3352Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
shahadul878Easy PHP Settings0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.