CVE-2026-42474

SQL Injection in MixPHP BuildHelper Data 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 `data` array to the data function in BuildHelper.php.

Analysis

AI-generated

Technical impact

A flaw in MixPHP Framework 2.x through 2.2.17 allows an attacker to inject arbitrary SQL commands via a crafted data array passed to the data function in BuildHelper.php. This weakness, identified as CWE‑89, can enable unauthorized database access, data theft or modification, and potentially compromise system integrity. The description indicates that injection occurs when the application constructs SQL queries without proper sanitization, meaning successful exploitation could lead to privileged information disclosure or data tampering.

Affected Systems

MixPHP Framework versions 2.0 through 2.2.17 are affected. The vulnerability is present in the BuildHelper.php file that handles database query construction based on user-supplied data arrays.

Risk and Exploitability

The vulnerability has a CVSS score of 6.5 and no EPSS score is available, but its nature as a classic SQL injection suggests a high exploitation risk, especially if the database credentials have broad privileges. Attackers would need to deliver a crafted input array via an application interface, likely over HTTP. Successful exploitation could result in data exfiltration, alteration, or denial of service. The lack of an official KEV listing does not indicate lower risk, as it simply reflects the absence of a catalog entry.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest MixPHP Framework release that removes the vulnerability (any version after 2.2.17 if released).
  • Configure the database user used by the framework with the minimum privileges necessary (e.g., read‑only access for read queries).
  • Ensure that all inputs to database queries are properly validated or parameterized; for existing code, review the BuildHelper.php data function to implement safe query construction.

Generated by OpenCVE AI on May 2, 2026 at 00:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q57j-rwwx-7rwp MixPHP Framework has an SQL injection vulnerability via crafted `data` array
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 BuildHelper Data 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 `data` array to the data 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:33 PM
Reserved
Apr 27, 2026, 12:00 AM
Status
Deferred
Published
May 1, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:47 AM