CVE-2026-42475

SQL Injection in MixPHP Framework BuildHelper joinOn Function

Published May 1, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `on` array to the joinOn function in BuildHelper.php.

Analysis

AI-generated

Technical impact

A flaw in the MixPHP Framework 2.x allows an attacker to inject arbitrary SQL statements through a specially crafted "on" array supplied to the joinOn function in BuildHelper.php. This injection can be used to read, modify, or delete data in the underlying database, compromising confidentiality, integrity, and potentially availability of the application. The weakness is a classic SQL injection vulnerability (CWE-89).

Affected Systems

The vulnerability affects all releases of MixPHP Framework from version 2.0 up to and including 2.2.17. No other products or vendors are listed as affected.

Risk and Exploitability

Because the flaw is triggered by a constructed input array, the exploitation requires the ability to influence the query construction, typically through the application’s normal data‑entry paths. No specific authentication requirements are stated, implying that the risk applies to any user who can supply the "on" array. The CVSS score of 6.5 indicates medium severity and, combined with the fact that the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalogue, the risk remains significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MixPHP Framework to a version later than 2.2.17 where the joinOn function sanitizes its inputs.
  • If an upgrade is not feasible, apply input validation to the "on" array so that only legitimate column names or properly escaped values are accepted.
  • Adopt prepared statements or parameterized queries in the database layer to eliminate the possibility of injection.
  • Restrict the functionality that builds join queries to trusted administrative users only.

Generated by OpenCVE AI on May 2, 2026 at 07:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vf35-8m4j-gm8v MixPHP Framework has an SQL injection vulnerability
History
Type Values Removed Values Added
First Time appeared Mix-php
Mix-php mix
Vendors & Products Mix-php
Mix-php mix
Type Values Removed Values Added
Title SQL Injection in MixPHP Framework BuildHelper joinOn Function
Type Values Removed Values Added
Weaknesses CWE-89
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `on` array to the joinOn function in BuildHelper.php.
References
Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 1, 2026, 6:36 PM
Reserved
Apr 27, 2026, 12:00 AM
Status
Analyzed
Published
May 1, 2026, 4:16 PM
Modified
Jul 8, 2026, 3:25 AM