CVE-2026-42550: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in flightphp core
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.
AI Analysis
Technical Summary
FlightPHP is a PHP micro-framework whose SimplePdo class methods insert(), update(), and delete() build SQL queries by concatenating the $table argument and keys from the $data array without proper identifier quoting or validation. When user-controlled data is passed to these methods, an attacker can exploit this to perform SQL injection by crafting malicious array keys. This vulnerability affects all versions before 3.18.1 and is resolved in 3.18.1.
Potential Impact
Successful exploitation allows an attacker with limited privileges (PR:L) and no user interaction to execute arbitrary SQL commands, potentially leading to full confidentiality, integrity, and availability compromise of the affected database. The vulnerability has a high impact on confidentiality, integrity, and availability as indicated by the CVSS vector.
Mitigation Recommendations
Upgrade FlightPHP core to version 3.18.1 or later, where this SQL injection vulnerability is fixed. There is no indication of alternative mitigations or temporary workarounds. Patch status is not explicitly stated but the fix is available in version 3.18.1.
CVE-2026-42550: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in flightphp core
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.
CVSS v3.1
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
FlightPHP is a PHP micro-framework whose SimplePdo class methods insert(), update(), and delete() build SQL queries by concatenating the $table argument and keys from the $data array without proper identifier quoting or validation. When user-controlled data is passed to these methods, an attacker can exploit this to perform SQL injection by crafting malicious array keys. This vulnerability affects all versions before 3.18.1 and is resolved in 3.18.1.
Potential Impact
Successful exploitation allows an attacker with limited privileges (PR:L) and no user interaction to execute arbitrary SQL commands, potentially leading to full confidentiality, integrity, and availability compromise of the affected database. The vulnerability has a high impact on confidentiality, integrity, and availability as indicated by the CVSS vector.
Mitigation Recommendations
Upgrade FlightPHP core to version 3.18.1 or later, where this SQL injection vulnerability is fixed. There is no indication of alternative mitigations or temporary workarounds. Patch status is not explicitly stated but the fix is available in version 3.18.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-28T16:56:50.191Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04d644cbff5d861003f1f8
Added to database: 05/13/2026, 19:51:32 UTC
Last enriched: 05/21/2026, 12:19:45 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.