CVE-2026-31896 WeGIA has a Time-Based Blind SQL Injection in remover_produto_ocultar.php

Critical 9.8 Published Updated

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.

All Wegia Wegia vulnerabilities

Sources

Also known as GHSA-w7g3-87cr-8m83.

Is CVE-2026-31896 in your software?

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

Check your SBOMs for free