Skip to main content

WeGIA EUVDEUVD-2025-33207

| CVE-2025-61605 CRITICAL
SQL Injection (CWE-89)
2025-10-02 security-advisories@github.com
9.4
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege account
  2. Delivery
    Craft malicious id_pet parameter
  3. Exploit
    Submit request to /pet/profile_pet.php
  4. Execution
    SQL injection executes in backend query
  5. Impact
    Exfiltrate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Mar 13, 2026 - 19:12 CVSS 9.8

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

WeGIA < 3.5.0

Affected Packages

euvd wegia fix: 3.5.0

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

Vendor (github) PRIMARY 9.4 CRITICAL
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/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
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

5
Analysis Updated
Oct 08, 2026 - 23:28 vuln.today
v2 - CVSS changed
CVSS changed
Oct 08, 2026 - 23:22 NVD
9.8 (CRITICAL) 9.4 (CRITICAL)
PoC Detected
Oct 07, 2025 - 15:42 vuln.today
Public exploit code
Patch released
Oct 07, 2025 - 15:42 nvd
Patch available
CVE Published
Oct 02, 2025 - 21:16 nvd
CRITICAL 9.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
Rare
obscure open-source manager for charities, tiny real-world footprint
Exploit
POC
Public exploit code exists
Data Quality
5 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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
High

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
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.

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