CVE-2025-50201 WeGIA OS Command Injection in debug_info.php parameter 'branch'

Critical 9.8 Published Updated

Unauthenticated attackers can execute arbitrary OS commands via the branch parameter in debug_info.php, leading to full server compromise.

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-50201?

CVE-2025-50201 is a critical command injection vulnerability in Wegia Wegia, published on 19 Jun 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. Prior to version 3.4.2, an OS Command Injection vulnerability was identified in the /html/configuracao/debug_info.php endpoint. The branch parameter is not properly sanitized before being concatenated and executed in a shell command on the server's operating system. This flaw allows an unauthenticated attacker to execute arbitrary commands on the server with the privileges of the web server user (www-data). This issue has been patched in version 3.4.2.

Weakness: CWE-78

Which versions are affected by CVE-2025-50201?

It affects 1 product.

Products include Wegia Wegia.

How do I fix CVE-2025-50201?

No fix has been published for CVE-2025-50201 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-50201 being exploited?

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

All Wegia Wegia vulnerabilities

Sources

Also known as GHSA-52p5-5fmw-9hrf.

Is CVE-2025-50201 in your software?

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

Check your SBOMs for free