Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-31896: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in LabRedesCefetRJ WeGIA

0
Critical
VulnerabilityCVE-2026-31896cvecve-2026-31896cwe-89
Published: Wed Mar 11 2026 (03/11/2026, 19:10:32 UTC)
Source: CVE Database V5
Vendor/Project: LabRedesCefetRJ
Product: WeGIA

Description

WeGIA is a web manager for charitable institutions. Prior to version 3.6.6, a critical SQL injection vulnerability exists in the WeGIA application. The remover_produto_ocultar.php script uses extract($_REQUEST) to populate local variables and then directly concatenates these variables into a SQL query executed via PDO::query. This allows an authenticated (or auth-bypassed) attacker to execute arbitrary SQL commands. This can be used to exfiltrate sensitive data from the database or, as demonstrated in this PoC, cause a time-based delay (denial of service). This vulnerability is fixed in 3.6.6.

AI-Powered Analysis

AILast updated: 03/11/2026, 19:44:07 UTC

Technical Analysis

The vulnerability CVE-2026-31896 affects the WeGIA web management system, specifically versions before 3.6.6. The root cause is improper neutralization of special elements in SQL commands (CWE-89), resulting from the use of PHP's extract($_REQUEST) function in the remover_produto_ocultar.php script. This function imports all HTTP request parameters into local variables without validation, which are then directly concatenated into SQL queries executed by PDO::query. This unsafe coding practice enables attackers to inject malicious SQL payloads. Exploitation does not require authentication or user interaction, making it highly accessible. Attackers can perform arbitrary SQL commands, including reading sensitive data, modifying or deleting records, or causing denial of service via time-based SQL delays. The vulnerability is critical due to its impact on confidentiality, integrity, and availability, and the ease of exploitation. The vendor fixed the issue in version 3.6.6 by presumably implementing proper input validation and parameterized queries to prevent injection.

Potential Impact

This vulnerability poses a severe risk to organizations using WeGIA versions prior to 3.6.6, especially charitable institutions relying on this software for managing sensitive data. Successful exploitation can lead to unauthorized disclosure of confidential information, data tampering, or complete denial of service, potentially disrupting critical operations. Given the lack of authentication requirements, attackers can exploit this remotely and anonymously, increasing the threat surface. The impact extends to data privacy violations, regulatory non-compliance, reputational damage, and operational downtime. Organizations may face financial losses and legal consequences if sensitive donor or beneficiary data is exposed or corrupted. The critical CVSS score reflects the broad and severe impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Organizations should immediately upgrade WeGIA to version 3.6.6 or later, where this vulnerability is patched. If immediate upgrade is not feasible, implement web application firewall (WAF) rules to detect and block SQL injection patterns targeting the vulnerable script. Review and restrict access to the remover_produto_ocultar.php script, limiting it to trusted users or IP addresses. Conduct thorough input validation and sanitization on all user-supplied data, avoiding the use of extract($_REQUEST) or similar unsafe functions. Employ parameterized queries or prepared statements consistently throughout the application to prevent injection. Regularly audit and monitor database logs for suspicious queries or anomalies indicative of exploitation attempts. Additionally, implement network segmentation and least privilege principles to minimize potential damage from a successful attack.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-09T21:59:02.688Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69b1c2ac2f860ef943697e5f

Added to database: 3/11/2026, 7:29:48 PM

Last enriched: 3/11/2026, 7:44:07 PM

Last updated: 3/12/2026, 10:35:57 AM

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses