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

CVE-2025-27133: Wegia Wegia SQL Injection Vulnerability

CVE-2025-27133 is a SQL injection flaw in Wegia Wegia that enables authorized attackers to execute arbitrary SQL queries and access sensitive data. This article covers technical details, affected versions, and mitigation.

Published: June 2, 2026

CVE-2025-27133 Overview

CVE-2025-27133 is a SQL Injection vulnerability in WeGIA, an open-source web manager used by charitable institutions. The flaw affects all versions prior to 3.2.15 and resides in the adicionar_tipo_exame.php endpoint. An authenticated attacker can inject arbitrary SQL through the tipo_exame POST parameter, which is concatenated directly into an INSERT statement. Successful exploitation allows the attacker to read, modify, or exfiltrate sensitive records from the backing database. The maintainers released version 3.2.15 to address the issue. The vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command.

Critical Impact

Authenticated attackers can execute arbitrary SQL queries against the WeGIA database, exposing personally identifiable information stored by charitable institutions.

Affected Products

  • WeGIA versions prior to 3.2.15
  • dao/pet/adicionar_tipo_exame.php endpoint
  • Deployments using the WeGIA pet management module

Discovery Timeline

  • 2025-02-24 - CVE-2025-27133 published to NVD
  • 2025-02-28 - Last updated in NVD database

Technical Details for CVE-2025-27133

Vulnerability Analysis

The vulnerability exists in the adicionar_tipo_exame.php script of the WeGIA pet examination management module. The script accepts a tipo_exame value from an HTTP POST request and concatenates it directly into a SQL INSERT statement executed through PDO. Because the input is neither parameterized nor validated, an attacker can break out of the string literal and append additional SQL syntax. Any user with authenticated access to the application can reach the endpoint, since the vulnerable version lacks both a session check and a permission validation step.

Root Cause

The root cause is unsanitized concatenation of user-controlled input into a SQL query string. The vulnerable code retrieves $_POST["tipo_exame"] and embeds it into INSERT INTO pet_tipo_exame(descricao_exame) values('...') before calling $pdo->query(). The script also omits authentication and authorization checks, exposing the injection point to any reachable user.

Attack Vector

The attack vector is network-based and requires low privileges. An authenticated attacker submits a crafted POST request to dao/pet/adicionar_tipo_exame.php with a malicious tipo_exame payload. The injected SQL executes under the privileges of the application's database user, granting read and write access to tables such as pet_tipo_exame and any others reachable through stacked queries or UNION-based extraction.

php
// Patch from commit 619ead748e18e685459c6dc3c226e621b9ff5403
<?php
session_start();

// verify permission
if(!isset($_SESSION['id_pessoa'])){
    http_response_code(403);
    exit('Usuário não autenticado');
}

require_once '../../html/permissao/permissao.php';
permissao($_SESSION['id_pessoa'], 6, 5);

require_once "../Conexao.php";
$pdo = Conexao::connect();

// Vulnerable code (removed):
// $tipo_exame = $_POST["tipo_exame"];
// $sql = "INSERT INTO pet_tipo_exame(descricao_exame) values('" .$tipo_exame ."')";
// $pdo->query($sql);

// Fixed code (added):
$tipo_exame = trim(filter_input(INPUT_POST, 'tipo_exame', FILTER_SANITIZE_STRING));
$sql = "INSERT INTO pet_tipo_exame(descricao_exame) values(:tipoExame)";
$stmt = $pdo->prepare($sql);
$stmt->bindParam(':tipoExame', $tipo_exame);
$stmt->execute();

Source: GitHub WeGIA Commit 619ead7. The patch introduces session validation, a permissao() permission check, input sanitization with filter_input, and a prepared statement using bound parameters.

Detection Methods for CVE-2025-27133

Indicators of Compromise

  • POST requests to /dao/pet/adicionar_tipo_exame.php containing SQL metacharacters such as single quotes, semicolons, UNION, SELECT, or comment sequences (--, /*) inside the tipo_exame parameter.
  • Unexpected rows in the pet_tipo_exame table containing SQL fragments rather than legitimate examination descriptions.
  • Database error log entries referencing syntax errors triggered by injected payloads from authenticated user sessions.

Detection Strategies

  • Inspect web server access logs for adicionar_tipo_exame.php requests originating from sessions that should not have administrative pet-management privileges.
  • Deploy a web application firewall (WAF) rule that flags SQL keywords and tautologies in the tipo_exame POST body.
  • Enable database query logging and alert on queries against pet_tipo_exame that include UNION operators or stacked statements.

Monitoring Recommendations

  • Monitor authenticated session activity for anomalous volumes of POST requests to WeGIA dao/ endpoints.
  • Track database account behavior for unusual SELECT queries originating from the PHP application user outside its normal pattern.
  • Correlate failed login attempts with subsequent endpoint access to identify credential stuffing followed by exploitation.

How to Mitigate CVE-2025-27133

Immediate Actions Required

  • Upgrade WeGIA to version 3.2.15 or later, which contains the official patch.
  • Restrict network access to the WeGIA application until the upgrade is complete, limiting reachability to trusted administrators.
  • Audit accounts with access to the pet management module and rotate credentials suspected of compromise.
  • Review the pet_tipo_exame table and related tables for unauthorized inserts or modifications.

Patch Information

The fix is included in WeGIA 3.2.15 and is implemented in commit 619ead748e18e685459c6dc3c226e621b9ff5403. The vendor advisory is published as GHSA-xj79-w799-qjcp. The patch replaces direct string concatenation with PDO prepared statements, adds filter_input sanitization, and enforces authentication and role-based authorization before executing the query.

Workarounds

  • If immediate upgrade is not possible, block public access to /dao/pet/adicionar_tipo_exame.php at the reverse proxy or WAF layer.
  • Apply a custom server-side filter that rejects tipo_exame values containing single quotes, semicolons, or SQL keywords.
  • Restrict the application database user to the minimum privileges required, removing DROP, ALTER, and cross-database SELECT rights.
bash
# Example WAF rule (ModSecurity) to block SQL metacharacters in tipo_exame
SecRule REQUEST_URI "@endsWith /dao/pet/adicionar_tipo_exame.php" \
    "phase:2,chain,deny,status:403,id:1027133,msg:'CVE-2025-27133 SQLi attempt'"
    SecRule ARGS:tipo_exame "@rx (?i)(\bunion\b|\bselect\b|--|;|/\*|')" "t:none"

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 Score9.4

  • EPSS Probability0.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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 WeGIA Commit Update

  • GitHub Security Advisory GHSA-xj79-w799-qjcp
  • 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