WeGIA
CVE-2025-62179
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with high-privilege account
-
DeliveryReach cadastro_funcionario_pessoa_existente endpoint
-
ExploitInject SQL via cpf parameter
-
ExecutionDatabase executes arbitrary query
-
ImpactExfiltrate or corrupt 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 | Exploitation requires an authenticated session with high privileges (CVSS PR:H) - typically an administrative WeGIA account with access to the employee-registration workflow - and network reachability to the application (AV:N, AC:L, no user interaction). The specific attack surface is the cpf parameter of /html/funcionario/cadastro_funcionario_pessoa_existente.php, which in versions prior to 3.5.1 concatenates the value directly into SQL queries against the pessoa and funcionario tables. The key limiting factor is the privileged-authentication prerequisite: this is not exploitable by anonymous or low-privileged users, so realistic risk is scoped to attackers who have already obtained admin credentials or to privilege-abuse/insider scenarios. No special non-default configuration is otherwise needed on affected (pre-3.5.1) installations. |
| Impact | This is a genuine CVSS 4.0 8.6 (High) SQL injection (CWE-89) in WeGIA's /html/funcionario/cadastro_funcionario_pessoa_existente.php endpoint via the cpf parameter, with full VC:H/VI:H/VA:H impact confirmed by the vendor's source-code fix (raw $cpf string concatenation replaced with PDO prepared statements and bindParam in the patch commit). However, the raw severity is substantially tempered by real-world signals: the CVSS 4.0 vector specifies PR:H, meaning exploitation requires high-privilege (administrative) authentication, and the affected endpoint is an internal employee-registration function. EPSS is low at 0.43% (35th percentile), there is NO CISA KEV listing (no confirmed active exploitation), and while publicly available exploit code exists (via the GitHub Security Advisory), POC availability is a distinct signal from in-the-wild use. Net assessment: a legitimate database-compromise bug worth patching, but not an internet-facing unauthenticated emergency - the PR:H requirement and niche product footprint make this a moderate, patch-in-normal-cycle priority rather than a widespread mass-exploitation threat. No major conflicts in the data; the primary caveat is that PR:H indicates the attacker must already hold a privileged account. |
| Exploit ScenarioDerived | An authenticated WeGIA user with high (administrative) privileges submits a crafted value in the cpf parameter to the cadastro_funcionario_pessoa_existente.php endpoint, where it is concatenated directly into SQL queries against the pessoa/funcionario tables. By injecting SQL syntax, the attacker reads, modifies, or destroys arbitrary database contents, breaching confidentiality, integrity, and availability. Publicly available exploit code (referenced in the GitHub Security Advisory GHSA-x36x-x5j4-wfjf) lowers the skill barrier, though the network vector is gated behind privileged authentication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
SQL injection in WeGIA versions prior to 3.5.1 allows an authenticated attacker with administrative privileges to execute arbitrary SQL statements through the cpf parameter of the /html/funcionario/cadastro_funcionario_pessoa_existente.php endpoint, fully compromising the confidentiality, integrity, and availability of the underlying database. The flaw is rated CVSS 4.0 8.6 (High) and requires a high-privileged session (PR:H), so realistic exploitation is limited to attackers who already hold admin credentials or to insider/privilege-abuse scenarios. Publicly available exploit code exists (referenced via the GitHub security advisory GHSA-x36x-x5j4-wfjf), but EPSS is low at 0.43% (35th percentile) and there is no indication of active exploitation in CISA KEV.
RemediationAI
Upgrade to WeGIA 3.5.1 or later; the fix is contained in commit 885972c55c3a06b5275120e88bb1113754a63b26, which converts the vulnerable cpf queries to PDO prepared statements with bound parameters and adds input sanitization. Consult the vendor advisory GHSA-x36x-x5j4-wfjf for the official release guidance. If upgrading immediately is not possible, apply compensating controls while understanding their limitations: restrict access to the employee-registration workflow (and specifically the cadastro_funcionario_pessoa_existente.php endpoint) to trusted administrative accounts only, which reduces but does not eliminate the insider and credential-abuse risk; block or disable /html/funcionario/cadastro_funcionario_pessoa_existente.php at the web server or reverse proxy if that functionality is not actively needed, with the trade-off of breaking existing CPF-based employee lookups; and deploy SQL-injection-focused WAF rules and database activity monitoring to detect exploitation attempts, recognizing that WAF bypasses are possible and that this only provides defense in depth rather than fixing the underlying concatenation flaw. Because exploitation requires a high-privileged authenticated session, enforcing strong admin credential hygiene, MFA, and least-privilege account review meaningfully reduces exposure in the interim.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
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 web application, and the vulnerable code path is in dao/FuncionarioDAO.php, where the cpf value supplied to /html/funcionario/cadastro_funcionario_pessoa_existente.php was concatenated directly into SQL queries against the pessoa and funcionario tables (for example, "SELECT id_pessoa from pessoa WHERE cpf='$cpf'" and "SELECT sobrenome from pessoa WHERE cpf='$cpf'"). This is a classic CWE-89 improper neutralization of special elements in SQL commands: because the cpf parameter is not parameterized, an attacker who can reach the endpoint with a high-privileged session can inject arbitrary SQL, bypassing the intended query logic and reading or altering database contents. The vendor fix in commit 885972c55c3a06b5275120e88bb1113754a63b26 replaces the raw string concatenation with PDO prepared statements and bindParam/bindValue calls, adds filter_var($cpf, FILTER_SANITIZE_SPECIAL_CHARS) on the input, and switches redirect handling to htmlspecialchars, confirming both the injection point and the intended remediation.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable SQLi with low complexity and no user interaction, but the vulnerable employee-registration endpoint requires high-privilege authentication (PR:H); full database CIA impact gives C:H/I:H/A:H, scope unchanged.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Prior to 3.5.1, a SQL Injection vulnerability was identified in the /html/funcionario/cadastro_funcionario_pessoa_existente.php endpoint, specifically in the cpf parameter. This vulnerability allows attackers to execute arbitrary SQL commands, compromising the confidentiality, integrity, and availability of the database. This vulnerability is fixed in 3.5.1.
Executive ViewAI
WeGIA, a web application used for municipal management, contains a high-severity SQL injection vulnerability in versions prior to 3.5.1 that allows an attacker with administrative credentials to fully compromise the underlying database, affecting confidentiality, integrity, and availability. While public exploit code exists, the low EPSS and absence from CISA KEV indicate a currently limited but credible threat, particularly from insider threats or compromised administrative accounts. Leadership should prioritize patching and administrative access controls to mitigate potential data breaches and operational disruptions.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
NVD
CVE.org
EPSS
GitHub
Exploit-DB