WordPress security changelog
CRITICAL CVE-2023-4994 Modified

Allow PHP in Posts and Pages: Code execution

Allow PHP in Posts and Pages is affected by code execution. Exploitation requires an authenticated WordPress account. Successful exploitation can run attacker-controlled code in the WordPress hosting account.

CVE / CNA score 9.9 CVSS 3.1 · security@wordfence.com
NVD score 6.4 CVSS 3.1 · nvd@nist.gov
Component
Allow PHP in Posts and Pages
Plugin slug
allow-php-in-posts-and-pages
Affected
See vendor advisory
Safe version
See mitigation notes
Published
Sep 16, 2023
Weakness
CWE-94 — Improper Control of Generation of Code ('Code Injection')

This CVE was published Sep 16, 2023 and is one of 1 known issue for this plugin.

Update, patch or deactivate.

Update Allow PHP in Posts and Pages to a release outside the affected range, or disable and remove it until a fixed version is available.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

The Allow PHP in Posts and Pages plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 3.0.4 via the 'php' shortcode. This allows authenticated attackers with subscriber-level permissions or above, to execute code on the server.

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

NVD vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary and upstream sources