Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliveryCraft malicious id_pet parameter
-
ExploitSubmit request to /pet/profile_pet.php
-
ExecutionSQL injection executes in backend query
-
ImpactExfiltrate or alter 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 an authenticated WeGIA session with low-level privileges - the fixed endpoint invokes permissao($_SESSION['id_pessoa'], 63, 7), indicating the user must hold the pet-module permission (module 63, access level 7) to reach the vulnerable code path, consistent with CVSS PR:L. No special non-default configuration is needed: any default WeGIA deployment at version 3.4.12 or below is exploitable by a logged-in user who can access the pet profile feature by supplying a crafted id_pet value to /pet/profile_pet.php. The primary limiting factor is the authentication/authorization requirement (no unauthenticated access); no victim user interaction is required (UI:N). |
| Impact | Signals are mostly consistent and point to a genuine but access-gated database compromise. The CVSS 4.0 vector (AV:N/AC:L/PR:L/UI:N) describes a network-reachable, low-complexity SQL injection requiring a low-privileged authenticated session, with full Confidentiality/Integrity/Availability impact on the vulnerable system - the 9.4 score is inflated by the input's SC:H/SI:H/SA:H subsequent-system metrics, which overstate blast radius for a self-contained SQLi against the application database. Publicly available exploit code exists (GitHub Security Advisory GHSA-8963-9833-gpx7), and the patch commit confirms the root cause (unsanitized id_pet now passed through filter_input with FILTER_SANITIZE_NUMBER_INT plus an added permission check). However, EPSS is only 0.04% (14th percentile) and the CVE is NOT in CISA KEV, indicating no evidence of real-world exploitation and low predicted exploitation volume - consistent with an obscure, niche product rather than a mass-exploited target. Net: a real, confirmable vulnerability worth patching for any WeGIA operator, but low urgency relative to its raw CVSS given the authentication requirement, tiny deployment footprint, and absence of active-exploitation signals. Note the apparent tension: the patched file already used PDO prepared statements with bindParam(PARAM_INT), so the injectable sink is likely in the downstream PetControle::listarUm flow the id_pet is forwarded to, not fully visible in the provided diff - the fix mitigates at the input boundary. |
| Exploit ScenarioDerived | An attacker who holds a valid low-privilege WeGIA account with access to the pet module logs in and requests /pet/profile_pet.php with a crafted id_pet parameter (e.g. a UNION- or boolean-based payload), causing arbitrary SQL to execute against the backend MySQL database. Because publicly available exploit code exists in the GitHub advisory, weaponization effort is minimal, and successful injection allows reading, modifying, or destroying database contents including donor and institutional records. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 08, 2026
SQL injection in the WeGIA web manager (versions 3.4.12 and below) lets an authenticated user who holds the pet-module permission execute arbitrary SQL against the backend MySQL database via the id_pet parameter of /pet/profile_pet.php, compromising confidentiality, integrity and availability of stored data. Publicly available exploit code exists, although EPSS is low at 0.04% (14th percentile) and the vulnerability is not listed in CISA KEV, so confirmed active exploitation has not been observed and the practical risk is gated by the requirement for a valid, low-privileged WeGIA session with access to the pet profile feature. The issue is fixed in version 3.5.0.
Earlier versions of this analysis (1)
Second SQLi in WeGIA.
RemediationAI
Vendor-released patch: WeGIA 3.5.0 - upgrade every instance running 3.4.12 or below to 3.5.0, which converts id_pet to a sanitized integer, rejects invalid or non-positive values with HTTP 400, keeps PDO parameter binding with PDO::PARAM_INT, and adds session hardening; the change is visible in upstream commit https://github.com/LabRedesCefetRJ/WeGIA/commit/176733543c9b6762bef5ddec7c9c555f76fafa1d and documented in advisory GHSA-8963-9833-gpx7. If immediate upgrade is not possible, the primary compensating control is to restrict the pet-module permission (module 63, access level 7) to the smallest possible set of trusted accounts, since the vulnerability cannot be reached without that authorization - the trade-off is reduced operational capability for front-line staff who legitimately manage pet profiles. As defense in depth, front the application with a reverse proxy or WAF rule that rejects requests to /pet/profile_pet.php whose id_pet parameter is not a plain positive integer, and consider temporarily disabling or network-restricting the endpoint; both are bypassable via encoding or alternate entry points into the same listing flow (index.php and controle/control.php with modulo=pet&metodo=listarUm), so they should not be treated as a substitute for the 3.5.0 upgrade. Ensure database accounts used by WeGIA follow least privilege and that display_errors remains off in production, since the pre-fix code emitted database error text that can aid blind SQL injection.
Affected VersionsENISA
Affected Packages
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
The flaw is CWE-89 (improper neutralization of special elements used in an SQL command) in a PHP application that talks to MySQL through PDO. The vulnerable endpoint, /pet/profile_pet.php, read id_pet directly from the query string ($_GET['id_pet']) without type validation and then propagated that value into the pet lookup flow - both the redirect that builds a nextPage URL and the session-driven listing path that reaches the database - so attacker-controlled SQL text could reach a query rather than being constrained to an integer. The upstream fix at commit 176733543c9b6762bef5ddec7c9c555f76fafa1d demonstrates the intended remediation: id_pet is captured with filter_input(INPUT_GET, 'id_pet', FILTER_SANITIZE_NUMBER_INT), rejected with HTTP 400 if it is empty or less than 1, remaining lookups use PDO prepared statements with bindParam(':idPet', $id_pet, PDO::PARAM_INT), and session handling is hardened with session_status/session_start guards and session_regenerate_id(). The endpoint also invokes permissao($_SESSION['id_pessoa'], 63, 7), confirming that reaching the vulnerable code path requires an authenticated session with permission on module 63 at access level 7. NVD scores this 9.4 under CVSS 4.0, while independent assessment places it at CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - a network-reachable, low-complexity, fully-impacting database compromise that is nevertheless gated behind authentication and authorization rather than being remotely exploitable without credentials.
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:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Network-reachable SQLi exploitable by a low-privileged authenticated user (PR:L) with no user interaction; scope unchanged as impact is confined to the application database, with full C/I/A loss.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
5DescriptionCVE.org
WeGIA is an open source web manager with a focus on charitable institutions. Versions 3.4.12 and below contain an SQL Injection vulnerability which was identified in the /pet/profile_pet.php endpoint, specifically in the id_pet parameter. This vulnerability allows attackers to execute arbitrary SQL commands, compromising the confidentiality, integrity, and availability of the database. This issue is fixed in version 3.5.0.
Executive ViewAI
A SQL injection flaw in the WeGIA web manager (versions 3.4.12 and earlier) lets a user with pet-module access run arbitrary queries against the backend MySQL database, placing the confidentiality, integrity and availability of records held in that system at risk. Publicly available exploit code exists, but there is no confirmed actively exploited (CISA KEV) activity, and practical risk is gated by the need for a valid WeGIA session with access to the pet profile feature. Leadership should care because the affected data is the organization's operational record set, and the fix is already available in version 3.5.0.
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.
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
EUVD-2025-33207
NVD
CVE.org
EPSS
GitHub
Exploit-DB