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-31894: CWE-59: Improper Link Resolution Before File Access ('Link Following') in LabRedesCefetRJ WeGIA

0
Medium
VulnerabilityCVE-2026-31894cvecve-2026-31894cwe-59
Published: Wed Mar 11 2026 (03/11/2026, 19:05:51 UTC)
Source: CVE Database V5
Vendor/Project: LabRedesCefetRJ
Product: WeGIA

Description

WeGIA is a web manager for charitable institutions. In 3.6.5, The patched loadBackupDB() extracts tar.gz archives to a temporary directory using PHP's PharData class, then uses glob() and file_get_contents() to read SQL files from the extracted contents. Neither the extraction nor the file reading validates whether archive members are symbolic links. This vulnerability is fixed in 3.6.6.

AI-Powered Analysis

AILast updated: 03/11/2026, 19:45:09 UTC

Technical Analysis

CVE-2026-31894 is a vulnerability classified under CWE-59 (Improper Link Resolution Before File Access) affecting WeGIA, a web management platform for charitable institutions developed by LabRedesCefetRJ. In version 3.6.5, the loadBackupDB() function is responsible for restoring database backups by extracting tar.gz archives using PHP's PharData class. After extraction, the function uses glob() to enumerate SQL files and file_get_contents() to read their contents. However, neither the extraction process nor the subsequent file reading validates whether the archive members are symbolic links. This lack of validation allows an attacker who can supply or manipulate backup archives to craft malicious tar.gz files containing symbolic links that point to arbitrary files on the server filesystem. When these archives are extracted and processed, the application may inadvertently read or overwrite sensitive files outside the intended directory, leading to unauthorized file access or modification. The vulnerability requires the attacker to have high privileges (as indicated by the CVSS vector), but no user interaction or authentication is needed once those privileges are obtained. The scope is limited to the affected versions >= 3.6.5 and < 3.6.6, with the issue resolved in version 3.6.6. The CVSS 4.0 base score is 6.9, reflecting a medium severity level due to the potential impact on confidentiality and integrity without affecting availability. No known exploits have been reported in the wild, but the vulnerability represents a significant risk if exploited in environments where backup archives are not fully trusted or sanitized.

Potential Impact

The primary impact of CVE-2026-31894 is unauthorized file access and potential file modification on servers running vulnerable versions of WeGIA. By exploiting the improper symbolic link handling during archive extraction, an attacker could cause the application to read or overwrite arbitrary files on the filesystem. This can lead to exposure of sensitive data such as configuration files, credentials, or database contents, compromising confidentiality. Additionally, overwriting critical files could affect data integrity and potentially disrupt application functionality. Since the vulnerability requires high privileges, the risk is elevated in environments where attackers have partial access or where backup archives come from untrusted sources. For organizations managing charitable institutions, this could result in data breaches, loss of donor information, or disruption of critical services. The absence of known exploits reduces immediate risk, but the vulnerability's presence in backup restoration processes makes it a valuable target for attackers aiming to escalate privileges or maintain persistence.

Mitigation Recommendations

To mitigate CVE-2026-31894, organizations should upgrade WeGIA to version 3.6.6 or later, where the vulnerability is patched. Until the upgrade is applied, administrators should implement strict validation of backup archives before restoration, including verifying that no symbolic links exist within tar.gz files. Employing sandboxed extraction environments with limited filesystem permissions can reduce the risk of arbitrary file access. Additionally, restricting backup archive sources to trusted entities and using cryptographic signatures to verify archive integrity can prevent malicious archive injection. Monitoring file system changes during backup restoration and employing application-level access controls to limit the impact of potential exploitation are also recommended. Finally, reviewing and hardening server permissions to minimize the privileges of the WeGIA process can reduce the attack surface.

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
4.0
State
PUBLISHED

Threat ID: 69b1c2ac2f860ef943697e58

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

Last enriched: 3/11/2026, 7:45:09 PM

Last updated: 3/13/2026, 10:31:55 AM

Views: 18

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