CVE-2025-58745CWE-434CWE-94unrestricted-file-uploadcode-injection

CVE-2025-58745

Critical · published September 9, 2025

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

🚨 A sneaky magic trick lets attackers upload files disguised as Excel sheets! Just like a chef slipping a hot chili pepper into a dessert, this vulnerability allows webshells to bypass checks completely. 🔥 Think of it like a cafeteria serving food. If the staff only check for school ID cards but don’t inspect the actual meals, a mischievous student could swap a healthy salad for a dubious dish — or in this case, a PHP webshell. 🍽️ An attacker could upload a malicious PHP file disguised as a harmless Excel file, gaining remote code execution access to the server. This could lead to devastating consequences, like stealing sensitive data or taking full control of the server environment!

Put simply

Think of it like a cafeteria serving food. If the staff only check for school ID cards but don’t inspect the actual meals, a mischievous student could swap a healthy salad for a dubious dish — or in this case, a PHP webshell. 🍽️ This arbitrary file upload vulnerability in WeGIA allows attackers to bypass MIME type checks, as only Excel files are validated at the specified endpoint, making it possible to upload malicious scripts.

What to do

An attacker could upload a malicious PHP file disguised as a harmless Excel file, gaining remote code execution access to the server. This could lead to devastating consequences, like stealing sensitive data or taking full control of the server environment! To protect yourself, update to WeGIA version 3.4.11, which contains a proper fix. Additionally, verify all file uploads to check for actual content type rather than relying solely on MIME types. Regular audits of file handling practices can further secure your application! You've got this! By following these steps, you’ll fortify your defenses and keep your data safe. 🛡️

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:H
CVSS v4.0
Not supplied
EPSS
0.00773 · 55.2th percentile
Weaknesses
CWE-434 · Unrestricted Upload of File with Dangerous Type; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-09-09T03:15Z
Affected products (1)
ProductVersionsFixed in
wegia/wegia< 3.4.113.4.11
References (2)
EPSS history
Timeline
  • 08 SEP 22:40Z
    WeGIA has a bypass for the fix for CVE-2025-22133 - Arbitrary File Upload leads to Remote Code Execution (RCE)
    cvelistv5