CVE-2023-4994 CRITICAL

CVE-2023-4994: Allow PHP in Posts and Pages <= 3.0.4 - Authenticated (Subscriber+) Remote Code Execution via Shortcode

Vendor Hit-Reach
Product Allow PHP in Posts and Pages
Weakness CWE-94 · Code injection
Published September 16, 2023
Last update April 8, 2026

CVSS base score

9.9/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

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

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

The Allow PHP in Posts and Pages plugin for WordPress contains a code injection vulnerability that allows authenticated users with low privileges to execute arbitrary PHP code on the site. An attacker with a basic user account can inject and run malicious code, potentially compromising the entire WordPress installation. The vulnerability affects all versions up to and including 3.0.4.

What an attacker can do

03Attacker Capabilities

Run arbitrary PHP code on the site with the privileges of the web server.

Potential impact on your site

04Site Impact

Complete site compromise: attackers can steal data, modify content, create backdoors, or take the site offline.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege WordPress user account (e.g., Contributor or Author role).

Key dates

06Disclosure timeline

September 16, 2023 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE