CVE-2026-42474 Details
Description
SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `data` array to the data function in BuildHelper.php.
A SQL injection vulnerability exists in MixPHP Framework versions 2.x through 2.2.17. The issue arises in the 'data' function of BuildHelper.php, where user-supplied data is directly concatenated into SQL queries without proper parameterization. This flaw allows attackers to manipulate the query structure and potentially execute arbitrary SQL commands.
To address this vulnerability, update the query builder to use PDO prepared statements, which properly handle parameterization. For SQL identifiers such as table and column names, implement validation against an allowlist derived from the database schema before interpolation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 1, 2026CISA-ADP
Assessed May 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/sgInnora/fa46386840fe978a30d7e53c458f2975 | [email protected] | BundleRemedyTechnical Analysis |
| https://github.com/mix-php/mix | [email protected] | Vendor |
| https://github.com/mix-php/mix/blob/v2.2.17/src/database/src/Helper/BuildHelper.php | [email protected] | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| MixPHP | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 1, 2026 | CVE Modified | CISA-ADP |
| May 1, 2026 | New CVE Received | [email protected] |
Volerion