{"id":"CVE-2026-40285","summary":"WeGIA has SQL Injection via Session Variable Override in DespachoControle.php","details":"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.","aliases":["GHSA-666r-v2m7-xgp9"],"modified":"2026-07-15T01:48:53.333694554Z","published":"2026-04-17T20:25:33.185Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-302","CWE-473","CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40285.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40285.json"},{"type":"ADVISORY","url":"https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-666r-v2m7-xgp9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40285"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/labredescefetrj/wegia","events":[{"introduced":"0"},{"fixed":"94908f0c93c8ab2314df933bb81e77980c61785f"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"fixed":"3.6.10"}]}}],"versions":["3.6.8","3.6.9","3.6.4","3.6.7","3.6.6","3.6.5","3.6.2","3.6.1","3.6.0","3.5.5","3.5.4","3.5.3","3.5.2","3.5.1","3.5.0","3.4.12","3.4.11","3.4.10","3.4.9","3.4.8","3.4.7","3.4.6","3.4.5","3.4.4","3.4.3","3.4.2","3.4.1","3.4.0","3.3.3","3.3.2","3.3.1","3.3.0","v3.2.17","v3.2.16","v3.2.15","v3.2.14","v3.2.13","v3.2.12","v3.2.11","v3.2.10","v3.2.9","v3.2.8","v3.2.7","v3.2.6","v3.2.0","v3.1","v2.0","v2.0-beta","v1.0","0.9.4-beta"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40285.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}