Skip to main content

Wegia EUVDEUVD-2026-23529

| CVE-2026-40285 HIGH
SQL Injection (CWE-89)
2026-04-17 GitHub_M
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege credentials
  2. Delivery
    Send crafted POST to despacho endpoint
  3. Exploit
    Inject cpf_usuario parameter
  4. Execution
    Overwrite session identity via extract()
  5. Persist
    Execute SQL query as target user
  6. Impact
    Extract sensitive database contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires valid authenticated access to WeGIA with at least low-privileged user credentials (CVSS PR:L), which are typically easy to obtain in charitable organization contexts through volunteer registration or donor portals. The vulnerable code path must be reachable, specifically the DespachoControle::verificarDespacho() function handling memorando (memo/dispatch) operations. Exploitation works against default WeGIA installations without requiring special configuration. The attack is network-accessible (AV:N) and requires no user interaction (UI:N), making it fully automatable once credentials exist. Scope is unchanged (S:U), meaning the vulnerability does not allow escape from the WeGIA application context to the underlying system, though database-level access enables retrieval of all application data including credentials potentially reusable elsewhere. Exploitation is limited only by the requirement for authenticated session credentials - there are no additional feature toggles, non-default settings, or platform-specific requirements.

Impact

Real-world risk is HIGH for deployed WeGIA instances with multiple user tiers. The CVSS 8.8 score accurately reflects the severe impact - network-accessible, low complexity, requiring only low-privileged authentication with no user interaction, achieving full confidentiality, integrity, and availability impact. While no EPSS score or CISA KEV status indicates this is not yet widely exploited in the wild, the vulnerability's characteristics make it highly attractive: authenticated access is trivial to obtain in charitable institution management systems (often with public volunteer registration), the attack is fully automatable once credentials exist, and the technical impact enables complete database compromise including credential theft, data manipulation, and potential lateral movement. The GitHub Security Advisory (GHSA-666r-v2m7-xgp9) provides attacker guidance, lowering the skill barrier. Absence from KEV likely reflects the niche target base (charitable institutions) rather than low exploitability. Organizations running WeGIA should treat this as critical priority given the combination of ease of exploitation, high impact, and the sensitive nature of charitable organization data (donor information, beneficiary records).

Exploit ScenarioDerived

An attacker registers a low-privileged volunteer account on a charitable institution's WeGIA portal. They intercept a legitimate memorando dispatch request and modify the POST data to include 'cpf_usuario' set to an administrator's CPF (Brazilian tax ID). The extract($_REQUEST) call overwrites the session identity, and the subsequent SQL query executes under the administrator context, allowing the attacker to extract all donor financial records, beneficiary personal data, or modify access controls to establish persistent administrative access. The attacker can automate this to systematically enumerate all user identities and extract complete database contents.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 17, 2026

SQL injection in WeGIA charitable institution manager allows authenticated users to impersonate arbitrary identities and execute database queries with elevated privileges. The cpf_usuario parameter in dao/memorando/UsuarioDAO.php bypasses session-based identity controls through PHP's extract($_REQUEST) function, enabling any low-privileged authenticated user to query sensitive data or modify database contents as any other user, including administrators. WeGIA versions before 3.6.10 are affected. No public exploit identified at time of analysis, though exploitation complexity is low (CVSS AC:L) requiring only valid user credentials.

RemediationAI

Upgrade WeGIA to version 3.6.10 or later, which contains the vendor-released patch addressing both the unsafe extract($_REQUEST) usage and SQL injection vulnerability. The fix can be obtained from the official GitHub repository at https://github.com/LabRedesCefetRJ/WeGIA. If immediate patching is not feasible, implement the following compensating controls with noted limitations: (1) Disable or restrict access to the memorando/despacho functionality at the web server level (e.g., via .htaccess or nginx location blocks) - this prevents exploitation but breaks legitimate memo dispatch features used by administrators; (2) Implement Web Application Firewall rules to block POST requests containing 'cpf_usuario' parameter to affected endpoints - this may cause false positives if the parameter is legitimately used elsewhere in the application; (3) Restrict application access to only trusted IP ranges via firewall rules - this reduces attack surface but doesn't address insider threats from authenticated users on trusted networks. None of these workarounds fully mitigate the vulnerability; upgrading to 3.6.10 is the only complete remediation. Review application logs for suspicious cpf_usuario parameter usage or anomalous database queries under unexpected user contexts as potential indicators of prior exploitation.

Affected VersionsENISA

WeGIA < 3.6.10

Affected Packages

euvd wegia fix: 3.6.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WeGIA is a PHP-based web application designed for managing charitable institutions. This vulnerability exploits PHP's extract() function, which creates variables from array keys - in this case, from the global $_REQUEST superglobal containing both GET and POST parameters. The affected code path is in DespachoControle::verificarDespacho() which calls extract($_REQUEST), allowing POST parameter 'cpf_usuario' to overwrite legitimate session-stored user identity variables. This attacker-controlled value is then directly concatenated into raw SQL queries in dao/memorando/UsuarioDAO.php without parameterization or input validation, constituting a classic CWE-89 SQL injection vulnerability. The dual nature of this flaw combines variable overwriting with SQL injection, making it particularly dangerous as it bypasses application-layer identity controls before the database query is even constructed.

Know when Wegia gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch released
Apr 20, 2026 - 19:02 nvd
Patch available
Patch available
Apr 17, 2026 - 21:16 EUVD
CVE Published
Apr 17, 2026 - 20:25 nvd
HIGH 8.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

WeGIA charitable institution manager versions before 3.6.10 contain a SQL injection vulnerability in user identity handling that allows any authenticated employee or volunteer to impersonate other users-including administrators-and access or modify sensitive donor, financial, and beneficiary data. Organizations using affected versions face immediate risk of unauthorized data access, fraud, and compliance violations (HIPAA, GDPR, state charitable regulations) by internal threat actors with basic user access.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict WeGIA database user account to read-only permissions where possible; (2) disable PHP's extract($_REQUEST) function globally via php.ini (disable_functions) or implement input validation framework to reject unexpected cpf_usuario parameter modifications; (3) implement database activity monitoring (DAM) to alert on queries using mismatched session user IDs; (4) enforce multi-factor authentication for administrative accounts to reduce impersonation impact; (5) isolate WeGIA environment network access to authorized staff only.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in Wegia

View all
CVE-2025-50201 CRITICAL POC
9.8 Jun 19

Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio

CVE-2025-27140 CRITICAL POC
10.0 Feb 24

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26613 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-55169 CRITICAL POC
10.0 Aug 12

WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical

CVE-2025-30364 CRITICAL POC
10.0 Mar 27

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-46828 CRITICAL POC
10.0 May 07

WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26612 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26617 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26611 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26609 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26608 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26607 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy