SecurityContext

CVE-2026-31896: WeGIA - SQL Injection

  • Cve: CVE-2026-31896
  • Name: WeGIA - SQL Injection
  • Description: WeGIA is a web manager for charitable institutions. Prior to version 3.6.6, a critical SQL injection vulnerability exists in the WeGIA application. The remover_produto_ocultar.php script uses extract($_REQUEST) to populate local variables and then directly concatenates these variables into a SQL query executed via PDO::query. This allows an authenticated (or auth-bypassed) attacker to execute arbitrary SQL commands. This can be used to exfiltrate sensitive data from the database or, as demonstrated in this PoC, cause a time-based delay (denial of service). This vulnerability is fixed in 3.6.6.
  • Impact: Attackers can execute arbitrary SQL commands to exfiltrate data or cause denial of service via time delays.
  • Remediation: Upgrade to version 3.6.6 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: sql_injection, denial_of_service, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated or bypass authentication
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.004
  • Epss percentile: 0.34689
  • Assignee: [email protected]
  • Published at: 2026-03-11T20:16:15Z
  • Age in days: 258
  • Modified at: 2026-06-17T10:34:43Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31896
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-w7g3-87cr-8m83nvd2026-03-11

References

UrlSourceTags
https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-w7g3-87cr-8m83nvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
wegia:wegia< 3.6.6nonvd/v1/products/wegia/wegia

Projects

RepositoryLink kindsIndexedUrl
LabRedesCefetRJ/WeGIAfix, security_advisoryyes/v1/repositories/LabRedesCefetRJ/WeGIA

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-03-11
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts