CVE-2025-52207CWE-23

PBXCoreREST/Controllers/Files/PostController.php in MikoPBX through 2024.1.114 allows uploading a PHP script to an arbitrary directory

Critical · published June 27, 2025

CVSS v3.1
9.9
EPSS
2%
Percentile
75.9
In the wild
Unconfirmed
What it is

🚨 An arbitrary PHP script can be uploaded anywhere in the system! This vulnerability in MikoPBX's PostController.php allows attackers to sneak in their own scripts with just a simple upload. 🔥 Think of a restaurant where a customer can just walk into the kitchen and drop off their own secret sauce recipe. If the chef uses it, they could inadvertently create a dish that poisons everyone at the table, all because there were no checks in place! This vulnerability could lead to a catastrophic breach where an attacker executes malicious code on the server, potentially allowing them to take complete control over the system. The risk is absolutely devastating—any sensitive data could be accessed, modified, or even deleted in the blink of an eye!

Put simply

Think of a restaurant where a customer can just walk into the kitchen and drop off their own secret sauce recipe. If the chef uses it, they could inadvertently create a dish that poisons everyone at the table, all because there were no checks in place! The flaw exists because the MikoPBX application does not validate or restrict the type of files that can be uploaded, allowing PHP scripts to be uploaded to arbitrary directories, leading to remote code execution.

What to do

This vulnerability could lead to a catastrophic breach where an attacker executes malicious code on the server, potentially allowing them to take complete control over the system. The risk is absolutely devastating—any sensitive data could be accessed, modified, or even deleted in the blink of an eye! Immediate action is crucial! Patch MikoPBX to version 2024.1.115 or higher to mitigate this vulnerability. Additionally, implement strict file type validation and limit upload directories to enhance security. 🛡️ You've got this! By taking these steps, you're not just fixing a vulnerability—you're becoming a security hero! 🌟

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.01623 · 75.9th percentile
Weakness
CWE-23 · Relative Path Traversal
Published
2025-06-27T00:00Z
EPSS history
Timeline
  • 27 JUN 00:00Z
    PBXCoreREST/Controllers/Files/PostController.php in MikoPBX through 2024.1.114 allows uploading a PHP script to an arbitrary directory
    cvelistv5