CVE-2025-27140 WeGIA vulnerable to OS Command Injection at endpoint 'importar_dump.php' parameter 'import' (RCE)

Critical 10.0 Published Updated

Attackers can execute arbitrary OS commands via the importar_dump.php endpoint, potentially uploading webshells and gaining remote control.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-27140?

CVE-2025-27140 is a critical command injection vulnerability in Wegia Wegia, published on 24 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

WeGIA is a Web manager for charitable institutions. An OS Command Injection vulnerability was discovered in versions prior to 3.2.15 of the WeGIA application, `importar_dump.php` endpoint. This vulnerability could allow an attacker to execute arbitrary code remotely. The command is basically a command to move a temporary file, so a webshell upload is also possible. Version 3.2.15 contains a patch for the issue.

Weakness: CWE-78, CWE-284

Which versions are affected by CVE-2025-27140?

It affects 1 product.

Products include Wegia Wegia.

How do I fix CVE-2025-27140?

No fix has been published for CVE-2025-27140 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-27140 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27140 exists.

All Wegia Wegia vulnerabilities

Sources

Also known as GHSA-xw6w-x28r-2p5c.

Is CVE-2025-27140 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free