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

CVE-2025-58159

Critical · published August 30, 2025

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

🚨 A sneaky flaw in WeGIA lets attackers pull off remote code execution just by uploading a cleverly named file! 🔥 Think of it as a bakery that allows customers to drop off cakes without checking the ingredients — someone could slip in a cake with a hidden surprise ingredient that turns it all into a disaster! With the ability to upload a .php file disguised as a harmless spreadsheet, an attacker could execute any code on the server, potentially gaining complete control! This could lead to data breaches, defacement, or worse, wreaking havoc on the entire system.

Put simply

Think of it as a bakery that allows customers to drop off cakes without checking the ingredients — someone could slip in a cake with a hidden surprise ingredient that turns it all into a disaster! This vulnerability arises from improper validation of uploaded files in WeGIA, allowing arbitrary filenames that can execute malicious code. If a user uploads a file with a .php extension, the server blindly writes it to disk and runs it, leading to possible remote code execution.

What to do

With the ability to upload a .php file disguised as a harmless spreadsheet, an attacker could execute any code on the server, potentially gaining complete control! This could lead to data breaches, defacement, or worse, wreaking havoc on the entire system. Upgrade WeGIA to version 3.4.11 immediately to close this loophole! Additionally, implement strict validation of uploaded files and enforce file type restrictions to prevent future exploitation. Don't skip those checks! You've got this! By taking these steps, you’ll become the hero of your digital bakery, keeping all the surprises out! 🛡️

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.00755 · 54.6th percentile
Weaknesses
CWE-434 · Unrestricted Upload of File with Dangerous Type; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-08-30T03:15Z
Affected products (1)
ProductVersionsFixed in
wegia/wegia< 3.4.113.4.11
References (1)
EPSS history
Timeline
  • 29 AUG 22:15Z
    WeGIA Authenticated Arbitrary File Upload Leading To Remote Code Execution (RCE)
    cvelistv5