Skip to main content

WeGIA CVE-2025-61603

| EUVDEUVD-2025-33217 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
    Submit crafted descricao to /controle/control.php
  3. Exploit
    Break out of SELECT via unsanitized input
  4. Execution
    Execute arbitrary SQL
  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 a valid authenticated WeGIA session (CVSS PR:L) with access to the product-registration workflow that posts to /controle/control.php. The injectable input is the descricao parameter, which in vulnerable versions (<= 3.4.12) is concatenated directly into a SELECT ... WHERE descricao='...' query with no parameter binding. No user interaction beyond the attacker's own request and no non-default configuration is needed; the limiting factor is the authentication requirement - an unauthenticated outsider cannot reach the vulnerable endpoint. Fixed in 3.5.0 via FILTER_SANITIZE_SPECIAL_CHARS on input and PDO prepared statements.

Impact

Signals are consistent but point to a contained, lower-urgency issue despite the high score. The CVSS 4.0 base score of 9.4 (CRITICAL) reflects an authenticated SQL injection with full CIA impact (VC:H/VI:H/VA:H) over the network (AV:N/AC:L/PR:L/UI:N), and the vendor commit confirms the root cause - unsanitized string concatenation of the descricao value into a raw SQL query in dao/ProdutoDAO.php, fixed by switching to prepared statements with bound parameters. However, real-world exploitation signals are weak: EPSS is only 0.03% (9th percentile), there is NO CISA KEV listing, and the vulnerability requires valid authentication (PR:L). A public exploit path exists only as the GitHub Security Advisory (GHSA-v8hm-pq8g-c7j4), not a weaponized exploit kit. The practical risk is therefore moderate rather than emergency-tier: the flaw is genuine and fully confirmed by source code, but it needs an authenticated account and affects a niche product with a tiny deployment footprint, which explains the very low EPSS. Note the one nuance: PR:L requires an attacker to already hold a low-privilege application account, so this is more realistically an insider/privilege-escalation-of-data-access scenario than mass opportunistic exploitation.

Exploit ScenarioDerived

An attacker holding a low-privilege WeGIA account submits a crafted descricao value to /controle/control.php; because the value was concatenated directly into a SELECT query, the injected SQL executes against the database. A public GitHub Security Advisory documents the flaw, and the fixing commit confirms the exact unparameterized query, so reproducing the injection is straightforward for anyone with account access.

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

Authenticated SQL injection in WeGIA 3.4.12 and earlier allows a logged-in user to execute arbitrary SQL statements through the descricao parameter handled by the /controle/control.php endpoint, compromising the confidentiality, integrity, and availability of the underlying database. Exploitation requires a valid WeGIA session with access to the product-registration workflow (assessed vector PR:L, network reachable, no user interaction), and publicly available exploit code exists, although EPSS is only 0.03% (9th percentile), indicating limited observed activity so far. The vendor addressed the flaw in version 3.5.0 by sanitizing product input and replacing the concatenated query with a PDO prepared statement.

Earlier versions of this analysis (1)
v1 Mar 13, 2026 - 19:12 CVSS 9.8

SQLi in WeGIA.

RemediationAI

Upgrade to WeGIA 3.5.0, the vendor-released fixed version, which applies filter_var(FILTER_SANITIZE_SPECIAL_CHARS) to descricao and codigo in classes/Produto.php and replaces the string-concatenated existence query in dao/ProdutoDAO.php with a PDO prepared statement using bindValue(':descricao', ..., PDO::PARAM_STR); see the patch commit at https://github.com/LabRedesCefetRJ/WeGIA/commit/84958eed73741a544859eea297908db3b83b3833 and the advisory at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-v8hm-pq8g-c7j4. If immediate upgrading is not possible, compensating controls should target the authenticated access requirement that makes exploitation harder: restrict WeGIA account provisioning and the product-registration/editing role to the minimum set of trusted staff and review dormant or shared accounts, since the endpoint is unreachable without a valid session; place the application behind authentication-aware rate limiting or a WAF rule matching SQL metacharacters and comment sequences in requests to /controle/control.php (accepting that generic WAF signatures produce false positives on legitimate free-text product descriptions); and run the WeGIA database account with least privilege - SELECT/INSERT/UPDATE only on application tables, no DDL, file, or administrative privileges - so that a successful injection cannot escalate to file writes or privilege changes. Note that these are mitigations, not fixes, and the database-level integrity damage from a successful injection may persist after patching, so review produto and related tables for unexpected rows or altered descriptions. No public exploitation in the wild has been confirmed via CISA KEV, but proof-of-concept code is publicly available, so prioritizing the 3.5.0 upgrade remains advisable despite the low 0.03% EPSS score.

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

This is a textbook CWE-89 SQL injection in a PHP web application (tags: PHP, SQLi, WeGIA). WeGIA is a PHP-based web manager for charitable institutions, and the vulnerable data flow runs through the produto (product) registration workflow: controle/ProdutoControle.php collects request parameters - including id_categoria and id_unidade from $_REQUEST - and the attacker-controlled descricao value reaches dao/ProdutoDAO.php, where the pre-fix code performed an existence check by string concatenation: SELECT id_produto, oculto FROM produto WHERE descricao='" . $produto->getDescricao() . "'. Because the value was interpolated into a quoted SQL literal instead of being bound, a crafted descricao could terminate the literal and append arbitrary SQL. The remediation commit (84958eed73741a544859eea297908db3b83b3833) does two things: it applies filter_var($descricao, FILTER_SANITIZE_SPECIAL_CHARS) in the Produto model setter (and likewise for codigo), and it rewrites the DAO check as a prepared statement with bindValue(':descricao', $produto->getDescricao(), PDO::PARAM_STR); it also converts the controller's integer parameters to FILTER_SANITIZE_NUMBER_INT and routes errors through Util::tratarException(). The CPE cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* confirms WeGIA as the affected product with no version binding, and EUVD lists 'WeGIA < 3.5.0' as the affected range. The assessed CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H is consistent with network-exploitable SQL injection that nonetheless requires a low-privileged authenticated session, which is the primary limiting factor rather than any non-default configuration.

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

Remotely reachable endpoint (AV:N) with simple injection (AC:L) but needs an authenticated account (PR:L) and no interaction; SQLi yields full database confidentiality, integrity, and availability impact.

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:29 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:43 vuln.today
Public exploit code
Patch released
Oct 07, 2025 - 15:43 nvd
Patch available
CVE Published
Oct 02, 2025 - 20:15 nvd
CRITICAL 9.8

DescriptionCVE.org

WeGIA is a Web manager for charitable institutions. Versions 3.4.12 and below include an SQL Injection vulnerability which was identified in the /controle/control.php endpoint, specifically in the descricao 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

WeGIA 3.4.12 and earlier expose organizations to a critical authenticated database compromise risk through the product-registration workflow. Publicly available exploit code exists, so internal or external users with valid session access could abuse the vulnerable endpoint to access, alter, or disrupt database contents. Leadership should prioritize urgent remediation, especially if this platform supports sensitive operational or customer data.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Prevalence
Low
niche open-source manager for charitable institutions, minimal enterprise 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