A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-52474

CVE-2025-52474: Wegia Wegia SQL Injection Vulnerability

CVE-2025-52474 is a SQL injection vulnerability in Wegia Wegia that lets attackers manipulate SQL queries to access sensitive database information. This article covers technical details, affected versions, impact, and mitigation.

Published: April 1, 2026

CVE-2025-52474 Overview

CVE-2025-52474 is a SQL Injection vulnerability identified in WeGIA, a web manager application designed for charitable institutions. The vulnerability exists in the id parameter of the /WeGIA/controle/control.php endpoint, allowing attackers to manipulate SQL queries and access sensitive database information including table names and confidential data.

Critical Impact

This SQL Injection vulnerability allows authenticated attackers to extract sensitive database information from charitable institution management systems, potentially exposing donor records, financial data, and personal information of beneficiaries.

Affected Products

  • WeGIA versions prior to 3.4.2
  • WeGIA web management platform for charitable institutions
  • Systems using the vulnerable /WeGIA/controle/control.php endpoint

Discovery Timeline

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

Technical Details for CVE-2025-52474

Vulnerability Analysis

This SQL Injection vulnerability (CWE-89) stems from improper input validation in the WeGIA web management application. The vulnerable endpoint at /WeGIA/controle/control.php accepts an id parameter that is directly incorporated into SQL queries without proper sanitization or parameterization. This allows attackers with low-level privileges to inject malicious SQL statements and extract sensitive information from the underlying database.

The vulnerability is particularly concerning given the nature of the affected application—charitable institutions typically store sensitive data including donor information, beneficiary records, financial transactions, and organizational data. Successful exploitation could lead to unauthorized access to this confidential information without requiring high-level authentication.

Root Cause

The root cause of this vulnerability is the use of unsanitized user input in SQL queries. The vulnerable code utilized PHP's extract() function to directly process request parameters, which were then passed to database operations without proper input validation or parameterized queries. This anti-pattern allows attackers to inject arbitrary SQL code through the id parameter.

Attack Vector

The attack is network-based and can be executed by authenticated users with low privileges. An attacker can craft malicious requests to the /WeGIA/controle/control.php endpoint, injecting SQL payloads through the id parameter. The vulnerability does not require user interaction and can be exploited to enumerate database schemas and extract sensitive data.

The security patch demonstrates the fix by replacing the vulnerable extract($_REQUEST) pattern with proper input filtering using filter_input() with FILTER_SANITIZE_SPECIAL_CHARS:

php
<?php
-$PetDAO_path = "dao/pet/SaudePetDAO.php";
-if(file_exists($PetDAO_path)){
-    require_once($PetDAO_path);
-}else{
-    while(true){
-        $PetDAO_path = "../" . $PetDAO_path;
-        if(file_exists($PetDAO_path)) break;
-    }
-    require_once($PetDAO_path);
-}
+require_once dirname(__FILE__, 3) . DIRECTORY_SEPARATOR . 'dao' . DIRECTORY_SEPARATOR . 'pet' . DIRECTORY_SEPARATOR . 'SaudePetDAO.php';

-class MedicamentoControle{
-    public function adicionarMedicamento(){
-        var_dump($_REQUEST);
-        extract($_REQUEST);
-        $c = new SaudePetDAO();
-        
-        $c->adicionarMedicamento( $nomeMedicamento, $descricaoMedicamento, $aplicacaoMedicamento);
-        if($id){
-           header("Location: ../../html/pet/profile_pet.php?id_pet=".$id);
-        }else{
-            header("Location: ../html/pet/informacao_medicamento.php");
+class MedicamentoControle
+{
+    public function adicionarMedicamento()
+    {
+        $nomeMedicamento = filter_input(INPUT_POST, 'nomeMedicamento', FILTER_SANITIZE_SPECIAL_CHARS);
+        $descricaoMedicamento = filter_input(INPUT_POST, 'descricaoMedicamento', FILTER_SANITIZE_SPECIAL_CHARS);

Source: GitHub Commit Details

Detection Methods for CVE-2025-52474

Indicators of Compromise

  • Unusual SQL error messages in web application logs referencing the control.php endpoint
  • HTTP requests to /WeGIA/controle/control.php containing SQL syntax in the id parameter (e.g., UNION SELECT, OR 1=1, single quotes)
  • Unexpected database query patterns or access to system tables such as information_schema
  • Anomalous data access patterns or bulk data extraction from WeGIA database tables

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect SQL injection patterns in requests to WeGIA endpoints
  • Implement database activity monitoring to detect unusual queries such as schema enumeration or data extraction
  • Configure IDS/IPS signatures to alert on common SQL injection payloads targeting the id parameter
  • Monitor web server access logs for suspicious requests to /WeGIA/controle/control.php with encoded or malformed parameters

Monitoring Recommendations

  • Enable detailed logging for all database queries executed by the WeGIA application
  • Set up alerts for HTTP requests containing SQL keywords or special characters in parameter values
  • Monitor for authentication anomalies or privilege escalation attempts following potential SQL injection activity
  • Review database audit logs regularly for unauthorized schema access or data extraction attempts

How to Mitigate CVE-2025-52474

Immediate Actions Required

  • Upgrade WeGIA to version 3.4.2 or later immediately to apply the security patch
  • Review access logs for any evidence of exploitation attempts targeting the control.php endpoint
  • Implement network-level access controls to restrict access to the WeGIA administrative interface
  • Consider taking the application offline if patching cannot be performed immediately and sensitive data is at risk

Patch Information

The vulnerability has been patched in WeGIA version 3.4.2. The fix implements proper input sanitization using PHP's filter_input() function with FILTER_SANITIZE_SPECIAL_CHARS instead of the dangerous extract($_REQUEST) pattern. Additionally, the patch changes the form submission method from GET to POST for sensitive operations, reducing the attack surface. Organizations should apply this patch by updating to version 3.4.2 or later. For detailed patch information, refer to the GitHub Commit Details and the GitHub Security Advisory.

Workarounds

  • Deploy a Web Application Firewall (WAF) with SQL injection detection rules to filter malicious requests before they reach the application
  • Implement input validation at the reverse proxy or load balancer level to reject requests containing SQL injection patterns
  • Restrict network access to the WeGIA application to trusted IP addresses only until the patch can be applied
  • Disable or restrict access to the vulnerable /WeGIA/controle/control.php endpoint if it is not essential for operations
bash
# Example WAF rule for ModSecurity to block SQL injection attempts
SecRule ARGS:id "@detectSQLi" \
    "id:1001,\
    phase:2,\
    deny,\
    status:403,\
    log,\
    msg:'SQL Injection attempt detected in WeGIA id parameter',\
    tag:'CVE-2025-52474'"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechWegia

  • SeverityHIGH

  • CVSS Score8.3

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/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-89
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40285: WeGIA SQL Injection Vulnerability

  • CVE-2026-35395: Wegia SQL Injection Vulnerability

  • CVE-2026-33991: Wegia SQL Injection Vulnerability

  • CVE-2026-33133: Wegia Web Manager SQLi Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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