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

- Severity: Critical 9.9 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.89%, higher than 60% of CVEs (2026-12-01)
- Published: 2023-09-16T01:52:17.856Z
- Modified: 2026-06-17T06:39:03.503Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- hit-reach Allow PHP in Posts and Pages: up to 3.0.4
- hitreach allow_php_in_posts_and_pages: up to 3.0.4

## Every score

- Wordfence: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/3d8b4bb6-3715-40c1-8140-7fcf874ccec3?source=cve> (third-party-advisory)
- <https://plugins.trac.wordpress.org/browser/allow-php-in-posts-and-pages/trunk/allowphp.php#L373> (patch)

## Sources

- CVE List: [CVE-2023-4994](https://www.cve.org/CVERecord?id=CVE-2023-4994), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2023-4994](https://nvd.nist.gov/vuln/detail/CVE-2023-4994), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-4994 · Whole record: https://cve.day/CVE-2023-4994.json · Rebuilt by cve.day 2026-11-25T22:58:27.954Z
