CVE-2026-42550

Flight: SQL Injection via unvalidated identifiers in SimplePdo::insert / update / delete

Published May 13, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The SimplePdo helper methods construct SQL by directly inserting an unquoted table name and data array keys into the query. This omission allows an attacker to embed SQL fragments through crafted array keys, giving full control over the executed statement. The vulnerability enables arbitrary SQL execution, potentially exposing, altering, or deleting application data and compromising confidentiality, integrity, and availability.

Affected Systems

Affected is the Flight PHP micro‑framework core library. All releases before version 3.18.1 contain the flaw, as the denial of safe identifier quoting is present in insert, update, and delete helpers.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity, and the EPSS score is unavailable, which does not lower the risk assessment. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector is likely through web input where user data is passed directly to the helper methods; an attacker controlling array keys can trigger the injection. The condition for exploitation is that the application forwards user‑controlled data shapes to these helpers, a documented pattern in typical Flight usage. When present, exploitation could lead to any authority level the application possesses.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Flight PHP core to version 3.18.1 or later, where the identifier quoting and validation have been added.
  • If an upgrade is not immediately possible, avoid using user‑controlled array keys in calls to SimplePdo::insert, ::update, or ::delete; instead, hardcode the table name and explicitly whitelist permissible columns.
  • Implement input validation to ensure that any values used as identifiers are strictly alphanumeric and correspond to known tables or columns before passing them to the helper methods.
  • Monitor application logs for failed query attempts or unexplained database activity that may indicate attempted exploitation.

Generated by OpenCVE AI on May 13, 2026 at 21:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xwqr-rcqg-22mr Flight vulnerable to SQL Injection via unvalidated identifiers in SimplePdo::insert / update / delete
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Flightphp
Flightphp core
Vendors & Products Flightphp
Flightphp core
Type Values Removed Values Added
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.
Title Flight: SQL Injection via unvalidated identifiers in SimplePdo::insert / update / delete
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 14, 2026, 3:44 PM
Reserved
Apr 28, 2026, 4:56 PM
Status
Deferred
Published
May 13, 2026, 8:16 PM
Modified
Oct 26, 2026, 2:10 PM