# CVE-2026-35395: LabRedesCefetRJ WeGIA SQL injection in DespachoDAO.php

Source: https://junglewise.ai/threats/cve-2026-35395-labredescefetrj-wegia-sql-injection-in-despachodao-php  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-06. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-35395 · Severity: high · CVSS 8.8 · Published 2026-04-06

WeGIA is a web-based management system used by charitable institutions to handle resident records, staff data, and financial information. A security flaw allows logged-in users to bypass data protections and run unauthorized database commands. This could lead to the theft of sensitive personal information, such as medical histories and financial records, or the total deletion of the organization's data.

Technologies: [LabRedesCefetRJ WeGIA](https://junglewise.ai/threats/technologies/wegia). Vendors: [LabRedesCefetRJ](https://junglewise.ai/threats/vendors/labredescefetrj).

## Quick answers

**Is CVE-2026-35395 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-35395 being exploited in the wild.

**How severe is CVE-2026-35395?** High severity, with a CVSS score of 8.8, published 6 April 2026.

**Which products and versions are affected?** LabRedesCefetRJ WeGIA < 3.6.9.

**Is there a fix for CVE-2026-35395?** A patch was published on 2026-04-06: Vulnerability fixed in version 3.6.9 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-35395 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-35395?** Check whether you run LabRedesCefetRJ WeGIA at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in `dao/memorando/DespachoDAO.php` within WeGIA versions prior to 3.6.9. The root cause is the unconditional use of `extract($_REQUEST)` in `DespachoControle::listarTodos()`, which populates the `$id_memorando` variable without validation. This variable is then directly interpolated into SQL queries in `DespachoDAO::listarTodos()` without using prepared statements or parameter binding. An authenticated attacker with access to the memorando module can exploit this via the `control.php` endpoint to perform unauthorized data extraction (including database schema and records), modification, or deletion. In certain database configurations, this could potentially escalate to remote code execution via file operations.

## Affected products

- LabRedesCefetRJ WeGIA < 3.6.9

## Timeline

- 2026-04-02: advisory: GitHub security advisory published by vendor
- 2026-04-06: disclosed: CVE published to NVD
- 2026-04-06: patched: Vulnerability fixed in version 3.6.9

## References

- [https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-43jm-pcrq-w7gv](https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-43jm-pcrq-w7gv)

## Related threats

- [WeGIA stored cross-site scripting in medical records](https://junglewise.ai/threats/cve-2026-61719-wegia-is-a-web-manager-for-charitable-institutions-prior-to-3-8-7)
- [WeGIA stored DOM cross-site scripting in memorandum dispatch](https://junglewise.ai/threats/cve-2026-61673-wegia-is-a-web-manager-for-charitable-institutions-prior-to-3-8-7)
- [WeGIA pre-installation installer command injection and SQL injection](https://junglewise.ai/threats/cve-2026-55679-wegia-is-a-web-manager-for-charitable-institutions-prior-to-3-8-6)
- [WeGIA unauthenticated database truncation in member endpoint](https://junglewise.ai/threats/cve-2026-54767-wegia-unauthenticated-database-truncation-in-member-endpoint)
- [WeGIA authorization bypass in InternoControle](https://junglewise.ai/threats/cve-2026-54671-wegia-authorization-bypass-in-internocontrole)
