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

CVE-2026-42475: MixPHP Framework SQLi Vulnerability

CVE-2026-42475 is a SQL injection vulnerability in MixPHP Framework 2.x through 2.2.17 via the joinOn function. Attackers can exploit this flaw to manipulate database queries. This article covers technical details, impact, and mitigation.

Published: May 7, 2026

CVE-2026-42475 Overview

CVE-2026-42475 is a SQL injection vulnerability [CWE-89] affecting MixPHP Framework versions 2.x through 2.2.17. The flaw exists in the joinOn function within BuildHelper.php, where a crafted on array passed to the function allows attackers to inject SQL syntax into generated queries. An attacker with network access can exploit the issue without authentication or user interaction. Successful exploitation can disclose database contents and modify query logic against applications built on the affected framework.

Critical Impact

Unauthenticated remote attackers can manipulate SQL queries through the joinOn function in MixPHP Framework 2.x through 2.2.17, leading to confidentiality and integrity impact on application databases.

Affected Products

  • MixPHP Framework 2.x through 2.2.17
  • Applications using the mix-php/mix database component (src/database/src/Helper/BuildHelper.php)
  • Downstream services that pass user-controlled input into the joinOn function

Discovery Timeline

  • 2026-05-01 - CVE-2026-42475 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-42475

Vulnerability Analysis

The vulnerability resides in the query-building logic of MixPHP's database helper. The joinOn function in BuildHelper.php accepts an on array used to construct the ON clause of SQL JOIN statements. The function concatenates user-supplied array elements directly into the query string instead of binding them as parameters or validating them against an allow-list. Attackers who control any portion of the on array can inject arbitrary SQL fragments. The CVSS vector indicates network-based exploitation with low attack complexity, no privileges required, and partial impact to confidentiality and integrity. The EPSS score is 0.041% at the 12.348 percentile, reflecting low observed exploitation activity at publication.

Root Cause

The root cause is improper neutralization of special elements used in an SQL command [CWE-89]. The joinOn helper trusts caller-supplied identifiers and conditions, embedding them directly into generated SQL rather than treating them as untrusted input. Frameworks typically isolate identifiers using strict whitelisting or quoted identifier escaping, neither of which is enforced here.

Attack Vector

An attacker reaches the vulnerable code by submitting input that an application forwards into the on parameter of a JOIN operation built via BuildHelper::joinOn. Where developers expose join conditions to request data, such as filtering or relationship parameters, attackers can append SQL fragments to alter query results, exfiltrate data via boolean or time-based techniques, or break out of the intended clause. See the GitHub Gist proof of concept and the vulnerable BuildHelper.php source for technical details.

No verified exploit code is reproduced here. Refer to the public proof of concept linked above for the demonstrated payload structure.

Detection Methods for CVE-2026-42475

Indicators of Compromise

  • Database query logs containing unexpected SQL operators, comments, or UNION statements within JOIN ... ON clauses
  • Application error logs referencing BuildHelper::joinOn followed by SQL syntax errors
  • HTTP request parameters carrying array values with quotes, parentheses, or SQL keywords destined for join logic

Detection Strategies

  • Inspect application source for direct user input flowing into the joinOn function and audit recent commits to BuildHelper.php consumers
  • Enable verbose database query logging and alert on join clauses containing characters such as ', --, /*, or ;
  • Deploy a web application firewall ruleset targeting SQL metacharacters in array-style query parameters

Monitoring Recommendations

  • Forward web server, application, and database logs to a centralized analytics platform and correlate anomalous query structures with source IPs
  • Baseline normal JOIN patterns produced by the application and alert on deviations introduced after the vulnerability disclosure
  • Track outbound data volume from database hosts to detect bulk extraction following injection attempts

How to Mitigate CVE-2026-42475

Immediate Actions Required

  • Audit application code for invocations of BuildHelper::joinOn that receive request-derived data and refactor them to use static, validated identifiers
  • Apply strict allow-list validation on any column or table names passed into join conditions
  • Restrict database account privileges used by MixPHP applications to limit the blast radius of successful injection

Patch Information

No fixed version is referenced in the NVD entry at the time of publication. Monitor the mix-php/mix repository for releases beyond 2.2.17 that address the joinOn SQL injection. Until an official patch is published, treat the on array as untrusted across the codebase.

Workarounds

  • Replace dynamic join conditions with parameterized queries or pre-defined ON expressions that exclude user input
  • Wrap calls to joinOn with a validation layer that rejects identifiers not matching ^[A-Za-z0-9_.]+$
  • Deploy WAF signatures that block SQL metacharacters in request parameters consumed by query-building code paths
bash
# Example allow-list validation in PHP before invoking joinOn
if (!preg_match('/^[A-Za-z0-9_.]+$/', $userColumn)) {
    throw new InvalidArgumentException('Invalid join column');
}
$query->joinOn($table, ['left' => $userColumn, 'op' => '=', 'right' => 'other.id']);

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechMixphp Framework

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Gist PoC

  • GitHub Mix PHP Repository

  • GitHub Mix PHP File
  • Related CVEs
  • CVE-2026-42472: MixPHP Framework Deserialization Vulnerability

  • CVE-2026-42471: MixPHP Framework RCE 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