CVE-2026-42550
HIGH 8.8CVSS 3.1Flight vulnerable to SQL Injection via unvalidated identifiers in SimplePdo::insert / update / delete
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.
- Published
- 13 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-xwqr-rcqg-22mr
- Sources
- NVDJSONOSV GHSA-xwqr-rcqg-22mrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | flightphp/core | < 3.18.1 | 3.18.1 |
References
- https://github.com/flightphp/core/security/advisories/GHSA-xwqr-rcqg-22mr · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42550 · ADVISORY
- https://github.com/flightphp/core/commit/b8dd23aaa828cb289fa3c84e75b2a3717cab50b0 · WEB
- https://github.com/flightphp/core · PACKAGE
- https://github.com/flightphp/core/releases/tag/v3.18.1 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 May 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 May 2026)