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-2025-50201

CVE-2025-50201: Wegia OS Command Injection RCE Flaw

CVE-2025-50201 is an OS command injection vulnerability in Wegia that enables unauthenticated attackers to execute arbitrary commands on the server. This article covers technical details, affected versions, impact, and mitigation.

Published: March 18, 2026

CVE-2025-50201 Overview

CVE-2025-50201 is a critical OS Command Injection vulnerability discovered in WeGIA, a web manager application designed for charitable institutions. The vulnerability exists in the /html/configuracao/debug_info.php endpoint where the branch parameter is not properly sanitized before being concatenated and executed in a shell command on the server's operating system. This flaw allows an unauthenticated attacker to execute arbitrary commands on the server with the privileges of the web server user (www-data).

Critical Impact

Unauthenticated attackers can achieve full remote code execution on vulnerable WeGIA installations, potentially leading to complete system compromise, data theft, and lateral movement within the network.

Affected Products

  • WeGIA versions prior to 3.4.2
  • WeGIA web manager installations with exposed /html/configuracao/debug_info.php endpoint
  • Systems running WeGIA under www-data user context

Discovery Timeline

  • 2025-06-19 - CVE-2025-50201 published to NVD
  • 2025-07-02 - Last updated in NVD database

Technical Details for CVE-2025-50201

Vulnerability Analysis

This vulnerability represents a classic OS Command Injection flaw (CWE-78) where user-supplied input is directly incorporated into a shell command without proper sanitization. The vulnerable code path exists in the gitCheckout() function within the debug_info.php file. When a user supplies a malicious branch parameter, the application concatenates this value directly into a git checkout command executed via PHP's exec() function.

Because the endpoint does not require authentication, any remote attacker with network access to the WeGIA installation can exploit this vulnerability. Successful exploitation grants the attacker the ability to execute arbitrary system commands with the privileges of the web server process, typically running as www-data on Linux systems.

Root Cause

The root cause is the direct use of unsanitized user input in a shell command. The vulnerable gitCheckout() function constructs a command string by concatenating the user-supplied $branch variable directly into the exec() call without applying any input validation or escaping mechanisms. This allows attackers to inject additional shell commands using standard shell metacharacters such as semicolons, pipes, or command substitution syntax.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can craft a malicious HTTP request to the /html/configuracao/debug_info.php endpoint with a specially crafted branch parameter containing shell metacharacters and malicious commands. The vulnerable code path will execute these injected commands in the context of the web server process.

php
// Vulnerable code (before patch)
function gitCheckout($branch) {
    $output = array();
    exec("git -C ".ROOT." checkout $branch", $output);
    return $output;
}

// Patched code (version 3.4.2+)
function gitCheckout($branch) {
    $output = array();
    exec("git -C " . ROOT . " checkout " . escapeshellarg($branch), $output);
    return $output;
}

Source: GitHub Commit Update

Detection Methods for CVE-2025-50201

Indicators of Compromise

  • Unusual HTTP requests to /html/configuracao/debug_info.php with suspicious branch parameter values containing shell metacharacters (;, |, $(), backticks)
  • Web server logs showing requests with encoded command injection payloads in URL parameters
  • Unexpected processes spawned as child processes of the web server (Apache, Nginx, or PHP-FPM)
  • Anomalous outbound network connections from the www-data user account
  • Unauthorized file modifications or new files created in web-accessible directories

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block requests containing shell metacharacters in the branch parameter
  • Monitor web server access logs for requests to /html/configuracao/debug_info.php from external IP addresses
  • Deploy endpoint detection and response (EDR) solutions to identify command injection attack patterns
  • Configure intrusion detection systems (IDS) with signatures for OS command injection attempts targeting PHP applications

Monitoring Recommendations

  • Enable verbose logging for the WeGIA application and web server to capture full request parameters
  • Establish baseline behavior for process creation by the web server and alert on deviations
  • Monitor for unexpected network connections originating from web application processes
  • Implement file integrity monitoring on critical WeGIA installation directories

How to Mitigate CVE-2025-50201

Immediate Actions Required

  • Upgrade WeGIA to version 3.4.2 or later immediately
  • If immediate patching is not possible, restrict network access to the /html/configuracao/ directory using web server configuration
  • Audit web server logs for evidence of exploitation attempts
  • Review system for signs of compromise if the vulnerable endpoint was exposed

Patch Information

WeGIA has released version 3.4.2 which addresses this vulnerability by implementing proper input sanitization using PHP's escapeshellarg() function. The fix ensures that the branch parameter is properly escaped before being passed to the shell command, preventing injection of arbitrary commands.

Review the official security advisory for complete details: GitHub Security Advisory GHSA-52p5-5fmw-9hrf

The specific commit implementing the fix can be reviewed at: GitHub Commit Update

Workarounds

  • Block access to /html/configuracao/debug_info.php at the web server level using access control directives
  • Implement network-level restrictions to limit access to the WeGIA administrative interface to trusted IP addresses only
  • Deploy a WAF rule to filter requests containing shell metacharacters in the branch parameter
  • Disable or remove the debug functionality if not required for operations
bash
# Apache configuration to restrict access to vulnerable endpoint
<Location /html/configuracao/debug_info.php>
    Require ip 127.0.0.1
    Require ip 10.0.0.0/8
</Location>

# Nginx configuration alternative
location /html/configuracao/debug_info.php {
    allow 127.0.0.1;
    allow 10.0.0.0/8;
    deny all;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWegia

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability26.81%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-52p5-5fmw-9hrf
  • Related CVEs
  • CVE-2026-28409: Wegia Wegia RCE Vulnerability

  • CVE-2025-22133: Wegia Wegia RCE Vulnerability

  • CVE-2025-26613: Wegia Wegia RCE Vulnerability

  • CVE-2025-27140: Wegia Wegia RCE 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