WeGIA Backup Restoration SQL Injection Vulnerability Allowing Arbitrary Database Operations

Vulnerability

A vulnerability in WeGIA versions 3.6.5 and 3.6.6 allows for arbitrary SQL execution through the backup restoration feature. The issue arises because the loadBackupDB() function imports SQL files from uploaded backup archives without proper content validation. This flaw enables an attacker to craft a backup archive containing malicious SQL statements that could create unauthorized administrator accounts, alter existing passwords, or perform any database operation. The vulnerability was introduced in version 3.6.5 and has been patched in version 3.6.7.

Impact

Exploitation of this vulnerability could lead to the creation of unauthorized administrator accounts, modification of user passwords, and arbitrary manipulation of the database, including potentially destructive operations such as dropping tables.

Reproduction

To reproduce this vulnerability, create a .tar.gz archive containing a SQL file with crafted SQL statements, such as an INSERT command to add a rogue administrator account. Upload this archive through the admin backup restore feature. The SQL commands will be executed with full database privileges, allowing access as the newly created administrator.

Remediation

Users can update to WeGIA version 3.6.7, where this vulnerability has been patched.

Added: Mar 20, 2026, 11:23 AM
Updated: Mar 20, 2026, 11:23 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
3.1
remediation
7.7
relevance
4.2
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.