CVE-2026-42550 Details
Description
Flight is an extensible micro-framework for PHP. Prior to 3.18.1, SimplePdo::insert(), SimplePdo::update(), and SimplePdo::delete() build SQL statements by concatenating the $table argument and the keys of the $data array directly into the query, with no identifier quoting and no validation. When an application forwards user-controlled data shapes to these helpers — a common and documented pattern, e.g. $db->insert('users', $request->data->getData()) — an attacker can inject arbitrary SQL by crafting malicious array keys. This vulnerability is fixed in 3.18.1.
A SQL injection vulnerability has been identified in Flight PHP versions prior to 3.18.1. The issue arises in the SimplePdo database helper methods: insert(), update(), and delete(). These methods construct SQL queries by directly concatenating the table name and the keys from the data array, without proper validation or quoting of identifiers. This flaw allows attackers to inject arbitrary SQL by manipulating the array keys with malicious payloads. The vulnerability is particularly concerning when user-controlled data is passed to these methods, a common practice in Flight PHP applications.
Users are advised to update to Flight PHP version 3.18.1 or later, where this vulnerability has been fixed. The update includes a new helper function that validates table and column names before they are used in SQL queries, preventing injection attacks.
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 13, 2026CISA-ADP
Assessed May 14, 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://github.com/flightphp/core/security/advisories/GHSA-xwqr-rcqg-22mr | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/flightphp/core/security/advisories/GHSA-xwqr-rcqg-22mr | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Flight | 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 14, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | New CVE Received | [email protected] |
Volerion