Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-31894

CVE-2026-31894: WeGIA Path Traversal Vulnerability

CVE-2026-31894 is a path traversal flaw in WeGIA web manager affecting version 3.6.5 through improper validation of symbolic links during archive extraction. This article covers technical details, affected versions, impact, and mitigation.

Published: March 13, 2026

CVE-2026-31894 Overview

CVE-2026-31894 is a symlink attack vulnerability affecting WeGIA, a web manager for charitable institutions. The vulnerability exists in the loadBackupDB() function in version 3.6.5, which extracts tar.gz archives to a temporary directory using PHP's PharData class. The function then uses glob() and file_get_contents() to read SQL files from the extracted contents. Neither the extraction nor the file reading operations validate whether archive members are symbolic links, allowing an attacker to craft a malicious backup archive containing symlinks that point to sensitive files outside the intended directory.

Critical Impact

An authenticated attacker with high privileges can exploit this symlink vulnerability to read arbitrary files from the server's filesystem by crafting a malicious backup archive containing symbolic links, potentially exposing sensitive configuration files, credentials, and other confidential data.

Affected Products

  • WeGIA version 3.6.5
  • WeGIA web manager for charitable institutions (versions prior to 3.6.6)

Discovery Timeline

  • 2026-03-11 - CVE CVE-2026-31894 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-31894

Vulnerability Analysis

This vulnerability falls under CWE-59 (Improper Link Resolution Before File Access), commonly known as a symlink attack. The loadBackupDB() function in WeGIA's backup restoration functionality accepts tar.gz archive files and extracts them without verifying the nature of the archived files. When a malicious archive contains symbolic links pointing to files outside the temporary extraction directory, the subsequent glob() and file_get_contents() operations follow these symlinks and read the target files.

The attack requires network access and high privileges (administrative access to the backup restoration feature). However, once exploited, it allows complete confidentiality breach where an attacker can read arbitrary files readable by the web server process, including configuration files containing database credentials, API keys, and other sensitive information.

Root Cause

The root cause is the absence of symlink validation during both the archive extraction phase and the subsequent file reading operations. PHP's PharData class extracts archive contents including symbolic links without any warning or validation. The code then blindly follows these symlinks when reading SQL files using file_get_contents(), resulting in arbitrary file read capabilities.

Attack Vector

The attack vector is network-based and requires the attacker to have administrative privileges to access the backup restoration functionality. The attack flow involves:

  1. Creating a malicious tar.gz archive containing a symbolic link (e.g., backup.sql -> /etc/passwd)
  2. Uploading this archive through the backup restoration interface
  3. The loadBackupDB() function extracts the archive, including the symlink
  4. When the function reads the SQL files via glob() and file_get_contents(), it follows the symlink
  5. The contents of the target file (e.g., /etc/passwd) are read instead of legitimate backup data

The security patch addresses this by using realpath() to resolve the temporary directory path and validate that extracted files remain within the intended extraction directory:

php
         throw new RuntimeException('Falha ao criar diretório temporário.');
     }
 
+    $tmpDirReal = realpath($tmpDir);
+    if ($tmpDirReal === false) {
+        throw new RuntimeException('Falha ao resolver diretório temporário.');
+    }
+
     try {
         // 4. Copia backup para /tmp
         $tmpGz = $tmpDir . '/backup.tar.gz';

Source: GitHub Commit Details

Detection Methods for CVE-2026-31894

Indicators of Compromise

  • Backup archive files containing symbolic links uploaded to the WeGIA application
  • Unusual file access patterns in web server logs showing access to system files during backup restoration operations
  • Error logs showing attempts to read files outside the application directory structure
  • Unexpected read operations on sensitive files like /etc/passwd, /etc/shadow, or application configuration files

Detection Strategies

  • Monitor file system access for symlink traversal attempts during archive extraction operations
  • Implement file integrity monitoring on sensitive configuration files to detect unauthorized read access
  • Review web application logs for backup restoration requests with unusually large response sizes or errors
  • Deploy web application firewall rules to inspect uploaded archive contents for symbolic links

Monitoring Recommendations

  • Enable detailed logging for the backup restoration functionality in WeGIA
  • Monitor for PHP warnings or errors related to file_get_contents() accessing unexpected paths
  • Implement audit logging for all administrative actions in the WeGIA application
  • Use endpoint detection tools to monitor for suspicious file access patterns by the web server process

How to Mitigate CVE-2026-31894

Immediate Actions Required

  • Upgrade WeGIA to version 3.6.6 or later immediately
  • Restrict access to the backup restoration functionality to only essential administrative personnel
  • Review recent backup restoration operations for signs of exploitation
  • Audit system logs for any unauthorized file access during the vulnerable period

Patch Information

The vulnerability is fixed in WeGIA version 3.6.6. The patch, available in commit 79e7a164eddb527e3b331037b7a4defb8c115d50, implements proper path validation using realpath() to ensure extracted files cannot escape the temporary directory through symbolic links. Organizations should apply this update immediately by following the standard WeGIA upgrade procedures. For additional details, refer to the GitHub Security Advisory GHSA-6mmm-27h8-8g55.

Workarounds

  • Temporarily disable the backup restoration feature until the patch can be applied
  • Implement network-level restrictions to limit access to administrative interfaces
  • Use a web application firewall to block upload of tar.gz files containing symbolic links
  • Run the web server under a restricted user account with minimal file system permissions
bash
# Restrict file permissions on sensitive files as a defense-in-depth measure
chmod 600 /var/www/wegia/config/*.php
chown www-data:www-data /var/www/wegia/config/*.php

# Verify WeGIA version after upgrade
grep -r "version" /var/www/wegia/includes/version.php

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWegia

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-59
  • Technical References
  • GitHub Commit Details

  • GitHub Security Advisory GHSA-6mmm-27h8-8g55
  • Related CVEs
  • CVE-2025-26615: Wegia Path Traversal Vulnerability

  • CVE-2026-40283: WeGIA Stored XSS Vulnerability

  • CVE-2026-40286: WeGIA Stored XSS Vulnerability

  • CVE-2026-40285: WeGIA SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English