# CVE-2026-40285: WeGIA has SQL Injection via Session Variable Override in DespachoControle.php

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-17T20:25:33.185Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-89, CWE-302, CWE-473
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- LabRedesCefetRJ WeGIA: < 3.6.10

## References

- <https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-666r-v2m7-xgp9> (exploit)

## Sources

- CVE List: [CVE-2026-40285](https://www.cve.org/CVERecord?id=CVE-2026-40285), CVE Terms of Use, modified 2026-04-20
- NVD: [CVE-2026-40285](https://nvd.nist.gov/vuln/detail/CVE-2026-40285), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40285 · Whole record: https://cve.day/CVE-2026-40285.json · Rebuilt by cve.day 2026-11-25T22:59:18.967Z
