Appsecure logo

CVE-2022-24664: Critical Vulnerability in PHP Everywhere

CVE-2022-24664 is a critical vulnerability in PHP Everywhere that allows any user to execute arbitrary PHP code via WordPress metaboxes. Immediate action is required to mitigate potential risks.

CRITICALCVSS 9.9 · Published February 16, 2022

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2022-24664 is a critical vulnerability affecting PHP Everywhere versions up to 2.0.3. This vulnerability allows execution of PHP code snippets via WordPress metaboxes, which can be exploited by any user with permission to edit posts. The severity of this risk is underscored by the CVSS score of 9.9, indicating a critical level of threat to affected systems.

Organizations utilizing PHP Everywhere should take this vulnerability seriously as it poses a significant risk to the integrity, confidentiality, and availability of their applications. The potential for an attacker to execute arbitrary code can lead to unauthorized access and manipulation of sensitive data.

The vulnerability was published on February 16, 2022, and has been categorized as 'Modified' in its status, reflecting ongoing discussions regarding its implications and remediation strategies. It is crucial for organizations to prioritize patching this vulnerability immediately to avoid exploitation.

Given the exploitation status is currently unknown, organizations should assume that the risk remains high and take necessary precautions to secure their WordPress environments.

Vulnerability Details

The official description of CVE-2022-24664 states that 'PHP Everywhere <= 2.0.3 included functionality that allowed execution of PHP Code Snippets via WordPress metaboxes, which could be used by any user able to edit posts.' This vulnerability falls under the classification of 'CWE-94: Code Injection', indicating that user input can be exploited to execute arbitrary code.

The CVSS score for this vulnerability is 9.9, categorized as 'CRITICAL'. This score reflects the potential impact on confidentiality, integrity, and availability, with high impacts across all three categories. The attack vector is defined as 'NETWORK', indicating that this vulnerability can be exploited remotely. The attack complexity is rated as 'LOW', and the required privileges are 'LOW', meaning that an attacker does not need elevated permissions to exploit this vulnerability.

Affected products include all versions of PHP Everywhere prior to the vendor patch version 2.0.4. Organizations are advised to review their installations and apply necessary updates as soon as possible.

Technical Analysis

The root cause of CVE-2022-24664 lies in the functionality of PHP Everywhere that permits execution of PHP snippets within WordPress metaboxes. This flawed implementation allows unauthorized users to inject and execute arbitrary PHP code, potentially compromising the entire application.

The attack vector is network-based, meaning that an attacker can exploit this vulnerability remotely without needing physical access to the target system. The complexity of the attack is low, which implies that performing this exploitation does not require advanced skills. Privileges required for exploitation are low, indicating that even users with minimal permissions can potentially conduct an attack.

User interaction is not required for this vulnerability to be exploited, making it even more dangerous. The impacts on confidentiality, integrity, and availability are all rated as high, emphasizing the severity of this vulnerability.

Risk & Impact Analysis

Risk to organizations includes the potential for complete system compromise, unauthorized data access, and control over the affected WordPress installations. The ease of exploitation and the critical nature of the vulnerability underscore the need for immediate action.

The blast radius of this vulnerability is significant, given that any user with permission to edit posts can exploit it. This means that the vulnerability is not limited to a specific group of users, but can affect a broad range of individuals with varying permission levels.

Organizations should assess the urgency based on the CVSS score, which indicates a critical need for remediation. Immediate patching is essential to mitigate the risks associated with this vulnerability.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

All versions of PHP Everywhere prior to version 2.0.4 are affected by this vulnerability. Organizations should ensure that they upgrade to the latest version to mitigate the risk.

Mitigation & Remediation

Organizations should prioritize the following actions to remediate this vulnerability:

1. Upgrade PHP Everywhere to version 2.0.4 or later to close the vulnerability.

2. Implement strict access controls to restrict user permissions related to post editing in WordPress.

3. Consider conducting periodic security assessments, such as penetration testing, to identify and address similar vulnerabilities.

Detection Guidance

To detect potential exploitation of this vulnerability, organizations should monitor for the following indicators:

1. Unusual PHP execution logs or anomalies in server logs.

2. Changes to user permissions or roles that are not consistent with organizational policies.

3. Unexpected changes in the content of posts or pages within the WordPress environment.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2022-24664 lies in its illustration of the risks associated with user-generated content in web applications. The ability for any user to execute PHP code can lead to severe consequences if not managed properly.

This vulnerability represents a broader trend in web application security where misconfigurations and improper access control lead to exploitable weaknesses. Organizations should take lessons from this incident to reinforce their security postures against similar threats.

Strategically, security teams should implement comprehensive training on secure coding practices and regularly conduct code reviews to prevent such vulnerabilities from arising in the future.

For further insights on improving application security, organizations may refer to our guide on designing a vulnerability management program.

Finally, organizations should stay informed about emerging threats and vulnerabilities through continuous monitoring and engagement with the security community.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.