The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-5587

CVE-2026-5587: MAC-SQL SQL Injection Vulnerability

CVE-2026-5587 is a SQL injection flaw in wbbeyourself MAC-SQL affecting the _execute_sql function in core/agents.py. This remotely exploitable vulnerability poses significant risks to database security.

Published: April 10, 2026

CVE-2026-5587 Overview

A SQL injection vulnerability has been identified in wbbeyourself MAC-SQL, specifically affecting the _execute_sql function within the core/agents.py file of the Refiner Agent component. This vulnerability allows remote attackers to manipulate SQL queries through improper input handling, potentially leading to unauthorized data access, modification, or deletion.

Critical Impact

Remote attackers can exploit this SQL injection vulnerability to bypass authentication, extract sensitive data, modify database contents, or potentially execute arbitrary commands on the underlying database server.

Affected Products

  • wbbeyourself MAC-SQL (up to commit 31a9df5e0d520be4769be57a4b9022e5e34a14f4)
  • MAC-SQL Refiner Agent component
  • Systems utilizing the affected core/agents.py module

Discovery Timeline

  • 2026-04-05 - CVE-2026-5587 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-5587

Vulnerability Analysis

This SQL injection vulnerability exists in the Refiner Agent component of MAC-SQL, a text-to-SQL tool. The vulnerable function _execute_sql in core/agents.py fails to properly sanitize user-supplied input before incorporating it into SQL queries. This lack of input validation allows attackers to inject malicious SQL statements that are then executed by the database engine.

The vulnerability is classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), which encompasses injection flaws where attacker-controlled data is passed to an interpreter without proper escaping or validation.

MAC-SQL follows a rolling release model for continuous delivery, meaning traditional version numbers are not available. The affected code is identified by the Git commit hash 31a9df5e0d520be4769be57a4b9022e5e34a14f4 and earlier commits. The exploit has been publicly documented, increasing the risk of widespread exploitation.

Root Cause

The root cause of this vulnerability lies in the improper handling of user input within the _execute_sql function. The function directly incorporates externally-supplied data into SQL query strings without implementing parameterized queries, prepared statements, or adequate input sanitization. This design flaw allows specially crafted input containing SQL metacharacters to alter the intended query logic.

Attack Vector

The attack can be executed remotely over the network by an authenticated user. An attacker with low privileges can craft malicious input that, when processed by the Refiner Agent component, results in SQL injection. The vulnerability requires no user interaction beyond the initial malicious request.

The exploitation workflow involves:

  1. Identifying input fields processed by the Refiner Agent
  2. Crafting SQL injection payloads that escape the intended query context
  3. Submitting the malicious input through the application's network interface
  4. Achieving unauthorized database operations based on the injected SQL commands

Technical details and proof-of-concept information are documented in the GitHub Issue Documentation.

Detection Methods for CVE-2026-5587

Indicators of Compromise

  • Unexpected or malformed SQL queries in database logs containing injection patterns such as ' OR 1=1--, UNION SELECT, or ; DROP TABLE
  • Unusual database errors or exceptions indicating query syntax errors
  • Anomalous data extraction patterns or unauthorized data access attempts
  • Authentication bypass attempts or privilege escalation events in application logs

Detection Strategies

  • Implement database activity monitoring to detect anomalous SQL query patterns
  • Deploy web application firewalls (WAF) with SQL injection detection rules
  • Enable detailed logging for the MAC-SQL Refiner Agent component
  • Monitor for suspicious network traffic patterns to database endpoints
  • Utilize SentinelOne Singularity Platform for real-time threat detection and behavioral analysis

Monitoring Recommendations

  • Configure alerting for SQL error messages that may indicate injection attempts
  • Monitor application logs for unusual input patterns containing SQL metacharacters
  • Implement database query auditing to track all executed SQL statements
  • Review network traffic for unexpected database protocol communications

How to Mitigate CVE-2026-5587

Immediate Actions Required

  • Restrict network access to instances running affected MAC-SQL deployments
  • Implement strict input validation at the application layer to filter SQL metacharacters
  • Apply principle of least privilege to database accounts used by MAC-SQL
  • Enable enhanced monitoring and logging for the Refiner Agent component
  • Consider deploying a web application firewall with SQL injection protection rules

Patch Information

As of the last CVE update on 2026-04-07, no official patch has been released by the vendor. The vendor was contacted early about this disclosure but did not respond. Organizations should monitor the VulDB Vulnerability Entry and the project's GitHub repository for future updates or fixes.

Since MAC-SQL uses a rolling release model, any fix would be incorporated into newer commits rather than a versioned release. Users should check for commits that address the SQL injection issue in core/agents.py once available.

Workarounds

  • Implement parameterized queries or prepared statements at the application level before input reaches the vulnerable function
  • Deploy input validation middleware to sanitize all user-supplied data before processing
  • Use database-level permissions to restrict the operations available to the MAC-SQL database user
  • Isolate MAC-SQL instances in a segmented network environment with restricted access
  • Consider temporarily disabling the Refiner Agent component if not critical to operations

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechWbbeyourself

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/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
  • AvailabilityLow
  • CWE References
  • CWE-74
  • Technical References
  • GitHub Issue Documentation

  • VulDB Submission #784459

  • VulDB Vulnerability #355386

  • VulDB CTI for #355386
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS 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