Skip to main content

WeGIA CVE-2025-62179

HIGH
SQL Injection (CWE-89)
2025-10-13 security-advisories@github.com
8.6
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with high-privilege account
  2. Delivery
    Reach cadastro_funcionario_pessoa_existente endpoint
  3. Exploit
    Inject SQL via cpf parameter
  4. Execution
    Database executes arbitrary query
  5. Impact
    Exfiltrate 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.

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

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

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 8.6 HIGH
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
vuln.today AI 7.2 HIGH

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.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Rare
niche open-source manager for Portuguese-language institutions, tiny deployment footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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 Yes
EPSS 0.4%
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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:*

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