CVE-2026-31896 WeGIA has a Time-Based Blind SQL Injection in remover_produto_ocultar.php
An attacker can execute arbitrary SQL commands via time-based blind injection in WeGIA, leading to data exfiltration or denial of service.
- 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-2026-31896?
CVE-2026-31896 is a critical SQL injection vulnerability in Wegia Wegia, published on 11 Mar 2026. 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.6.6, a critical SQL injection vulnerability exists in the WeGIA application. The remover_produto_ocultar.php script uses extract($_REQUEST) to populate local variables and then directly concatenates these variables into a SQL query executed via PDO::query. This allows an authenticated (or auth-bypassed) attacker to execute arbitrary SQL commands. This can be used to exfiltrate sensitive data from the database or, as demonstrated in this PoC, cause a time-based delay (denial of service). This vulnerability is fixed in 3.6.6.
Weakness: CWE-89
Which versions are affected by CVE-2026-31896?
It affects 1 product.
Products include Wegia Wegia.
How do I fix CVE-2026-31896?
No fix has been published for CVE-2026-31896 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-31896 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-31896 exists.
Other vulnerabilities in Wegia Wegia
- CVE-2026-28409 WeGIA Vulnerable to Remote Code Execution (RCE) via OS Command Injection
- CVE-2025-58745 WeGIA has a bypass for the fix for CVE-2025-22133 - Arbitrary File Upload leads to Remote Code Execution (RCE)
- CVE-2025-58159 WeGIA Authenticated Arbitrary File Upload Leading To Remote Code Execution (RCE)
- CVE-2025-55169 WeGIA Path Traversal at endpoint 'html/socio/sistema/download_remessa.php' via parameter 'file'
- CVE-2025-53823 WeGIA vulnerable to SQL Injection (Blind Time-Based) in `processa_deletar_socio.php` parameter `id_socio`
Sources
Also known as GHSA-w7g3-87cr-8m83.