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-23219

CVE-2025-23219: Wegia SQL Injection Vulnerability

CVE-2025-23219 is a SQL injection flaw in Wegia's adicionar_cor.php endpoint that allows attackers to execute arbitrary SQL commands and dump the entire database. This article covers technical details, affected versions, impact, and mitigation.

Published: March 18, 2026

CVE-2025-23219 Overview

CVE-2025-23219 is a critical SQL Injection vulnerability discovered in WeGIA, an open source web manager designed with a focus on the Portuguese language and charitable institutions. The vulnerability exists in the adicionar_cor.php endpoint, which allows attackers to execute arbitrary SQL commands against the database without authentication. Successful exploitation enables unauthorized access to sensitive information, including the ability to perform a complete database dump.

Critical Impact

Unauthenticated attackers can execute arbitrary SQL queries to extract, modify, or delete all data from the WeGIA database, potentially compromising sensitive information of charitable institutions.

Affected Products

  • WeGIA versions prior to 3.2.10
  • WeGIA adicionar_cor.php endpoint in dao/pet/ directory
  • All installations with network-accessible WeGIA instances

Discovery Timeline

  • 2025-01-20 - CVE-2025-23219 published to NVD
  • 2025-02-28 - Last updated in NVD database

Technical Details for CVE-2025-23219

Vulnerability Analysis

This SQL Injection vulnerability (CWE-89) exists due to improper input validation in the adicionar_cor.php file. The vulnerable code directly concatenates user-supplied input into a SQL query string without any sanitization or parameterization, creating a classic SQL Injection attack surface. The vulnerability is network-accessible and requires no authentication or user interaction, making it trivially exploitable by remote attackers.

The attack allows complete compromise of the database confidentiality, integrity, and availability. During testing, researchers demonstrated the ability to perform a full database dump, underscoring the severe risk posed to organizations running vulnerable WeGIA installations.

Root Cause

The root cause is the direct concatenation of user-controlled input from $_POST["cor"] into a raw SQL query string. The original code executed the query directly via $pdo->query($sql) without using prepared statements or input sanitization, allowing malicious SQL syntax to be injected and executed.

Attack Vector

The attack vector is network-based, targeting the adicionar_cor.php endpoint with a malicious POST request. An attacker can craft a payload in the cor parameter that escapes the intended string context and injects additional SQL commands. Since the endpoint lacked authentication controls, any network-adjacent or remote attacker with access to the WeGIA instance could exploit this vulnerability.

The following patch demonstrates the vulnerable code and its fix:

php
// VULNERABLE CODE (before patch):
<?php
require_once'../Conexao.php';
$pdo = Conexao::connect();
$cor = $_POST["cor"];

$sql = "INSERT INTO pet_cor(descricao) values('" .$cor ."')";
$pdo->query($sql);
?>

// PATCHED CODE (after fix):
<?php
require_once '../Conexao.php';
require_once '../../html/permissao/permissao.php';
permissao($_SESSION['id_pessoa'], 6, 3);

$cor = filter_input(INPUT_POST, 'cor', FILTER_SANITIZE_STRING);
try {
    $pdo = Conexao::connect();
    $sql = "INSERT INTO pet_cor(descricao) values(:cor)";
    $stmt = $pdo->prepare($sql);
    $stmt->bindParam(':cor', $cor);
} catch (PDOException $e) {
    http_response_code(500);
    echo json_encode(['erro' => 'Erro no servidor ao inserir a cor do pet.']);
    exit();
}

Source: GitHub Commit Overview

Detection Methods for CVE-2025-23219

Indicators of Compromise

  • Anomalous HTTP POST requests to /dao/pet/adicionar_cor.php containing SQL syntax characters such as single quotes, semicolons, or UNION SELECT statements
  • Database query logs showing unexpected or malformed queries originating from the pet_cor table operations
  • Evidence of bulk data extraction or database enumeration activity in database audit logs
  • Web server logs containing encoded SQL injection payloads in the cor POST parameter

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block common SQL injection patterns in POST parameters targeting the adicionar_cor.php endpoint
  • Enable database query logging and alerting for queries with suspicious patterns such as UNION, SELECT * FROM, or time-based blind injection indicators
  • Monitor for unusual database response times that may indicate time-based SQL injection attacks
  • Implement intrusion detection system (IDS) signatures for SQL injection attack patterns

Monitoring Recommendations

  • Configure real-time alerting for HTTP requests to adicionar_cor.php with payloads exceeding normal parameter lengths or containing non-alphanumeric characters
  • Monitor database accounts used by WeGIA for unusual query patterns or access to tables outside normal application behavior
  • Review web server access logs for repeated requests to the vulnerable endpoint from the same IP address

How to Mitigate CVE-2025-23219

Immediate Actions Required

  • Upgrade WeGIA to version 3.2.10 or later immediately to remediate this vulnerability
  • If immediate patching is not possible, restrict network access to the vulnerable endpoint using firewall rules or web server configuration
  • Audit database logs for evidence of prior exploitation and potential data exfiltration
  • Rotate database credentials as a precautionary measure

Patch Information

WeGIA has released version 3.2.10 which addresses this SQL Injection vulnerability. The fix implements prepared statements with parameterized queries using PDO bindParam(), adds input sanitization via filter_input(), and introduces authentication checks via the permissao() function. For detailed patch information, refer to the GitHub Security Advisory GHSA-h2mg-4c7q-w69v and the associated commit.

Workarounds

  • Block access to the adicionar_cor.php endpoint at the web server or reverse proxy level until patching is complete
  • Implement a Web Application Firewall rule to filter POST requests containing SQL injection patterns in the cor parameter
  • Restrict access to the WeGIA administrative interface to trusted IP addresses only
bash
# Apache configuration to block access to the vulnerable endpoint
<Location "/dao/pet/adicionar_cor.php">
    Require ip 10.0.0.0/8 192.168.0.0/16
</Location>

# Nginx configuration to block access
location /dao/pet/adicionar_cor.php {
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechWegia

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.31%

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

  • GitHub Security Advisory GHSA-h2mg-4c7q-w69v
  • 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 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