CVE-2026-40285 WeGIA has SQL Injection via Session Variable Override in DespachoControle.php
Authenticated attackers can inject SQL via session variable override to query the database under arbitrary identities in WeGIA.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-40285?
CVE-2026-40285 is a high-severity SQL injection vulnerability in LabRedesCefetRJ WeGIA, published on 17 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
WeGIA is a web manager for charitable institutions. Versions prior to 3.6.10 contain a SQL injection vulnerability in dao/memorando/UsuarioDAO.php. The cpf_usuario POST parameter overwrites the session-stored user identity via extract($_REQUEST) in DespachoControle::verificarDespacho(), and the attacker-controlled value is then interpolated directly into a raw SQL query, allowing any authenticated user to query the database under an arbitrary identity. Version 3.6.10 fixes the issue.
Which versions are affected by CVE-2026-40285?
How do I fix CVE-2026-40285?
No fix has been published for CVE-2026-40285 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-40285 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40285 exists.
Sources
Also known as GHSA-666r-v2m7-xgp9.