CVE-2026-40285

WeGIA has SQL Injection via Session Variable Override in DespachoControle.php

State
Published
Severity
8.8 High
Published
Apr 17, 2026
Updated
Apr 20, 2026
Reserved
Apr 10, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  • CWE-302 Authentication Bypass by Assumed-Immutable Data
  • CWE-473 PHP External Variable Modification

Affected Products

ProductVersions
WeGIALabRedesCefetRJ
  • < 3.6.10Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.