CVE-2024-27114·PHP vulnerability
A unauthenticated Remote Code Execution (RCE) vulnerability is found in the SO Planning online planning tool. If the public view setting is enabled, a attacker can upload a PHP-file that will be available for execution for a few milliseconds before it is removed, leading to execution of code on the underlying system. The vulnerability has been remediated in version 1.52.02.
- Severity
- critical
- Software
- PHP
- Fixed in
- 1.52.02
- Published
- 2024-09-11
Affected versions
Until: 1.52.02
Fixed in: 1.52.02
How to fix this CVE
Upgrade PHP to version 1.52.02 or later immediately to patch this critical remote code execution vulnerability in SO Planning. The vulnerability allows unauthenticated attackers to execute arbitrary PHP code when the public view setting is enabled. Apply the patch as soon as possible and verify the fix is in place before re-enabling public access to your planning tool.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /upload (or similar file upload endpoint) followed by GET request to /tmp or /var/tmp for newly created .php files within milliseconds; look for patterns like `POST.*\.php.*201|202` responses succeeded by rapid `GET.*\.php.*404` indicating file deletion after execution.WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement WAF rules to restrict file uploads to whitelisted extensions (block .php, .phtml, .php5 uploads), enforce Content-Type validation, and add rate-limiting to prevent rapid upload/access attempts. Additionally, disable PHP execution in temporary upload directories via `.htaccess` (AddType text/plain .php) or Nginx configuration.How to check if you are affected
- Step 1: Check your installed PHP version by running `php -v` or `php -i | grep 'PHP Version'` on the command line.
- Step 2: Verify if SO Planning is installed and check its version in the application settings or configuration file (typically in the installation directory's version.php or config.php).
- Step 3: Review web server access logs (Apache: /var/log/apache2/access.log, Nginx: /var/log/nginx/access.log) for POST requests to file upload endpoints with suspicious .php filenames or rapid upload/delete patterns.
- Step 4: Confirm the fix by re-running `php -v` after the update and verify that SO Planning version 1.52.02 or later is deployed by checking the application version indicator.
FAQ
What is CVE-2024-27114?
CVE-2024-27114 is a critical unauthenticated remote code execution vulnerability in SO Planning that exists when public view mode is enabled. Attackers can exploit a race condition in the file upload mechanism to execute arbitrary PHP code on the server.
Is CVE-2024-27114 being actively exploited?
According to CISA records, CVE-2024-27114 is not currently listed on the Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are available. However, the vulnerability's critical severity and ease of exploitation make proactive patching essential.
What versions of PHP are affected by CVE-2024-27114?
All versions of SO Planning prior to 1.52.02 are vulnerable. The vulnerability affects any installation where the public view setting is enabled, regardless of PHP version.
How do I check if my server is vulnerable to CVE-2024-27114?
Run `php -v` to confirm PHP is installed, then check your SO Planning version in the application settings. If the version is below 1.52.02 and public view mode is enabled, your system is vulnerable.
Does Defensia detect CVE-2024-27114?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP or SO Planning is detected on a monitored server, CVE-2024-27114 will appear in your dashboard with remediation steps and priority alerts.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-27114. Free for 1 server.
Get started free