← Back to CVE Explorer

CVE-2026-42550

Full vulnerability record from the local CVENow database.

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.

Severity
HIGH
CVSS score
8.8 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-05-13 20:16:22.060000
Last modified
2026-10-26 14:10:00.130000
View original CVE JSON
{
  "id": "CVE-2026-42550",
  "sourceIdentifier": "[email protected]",
  "published": "2026-05-13T20:16:22.060",
  "lastModified": "2026-10-26T14:10:00.130",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "Flight es un micro-framework extensible para PHP. Antes de la versión 3.18.1, SimplePdo::insert(), SimplePdo::update() y SimplePdo::delete() construyen sentencias SQL concatenando el argumento $table y las claves del array $data directamente en la consulta, sin comillas de identificador y sin validación. Cuando una aplicación reenvía formas de datos controladas por el usuario a estas funciones auxiliares - un patrón común y documentado, p. ej. $db  ->  insert(’users’, $request  ->  data  ->  getData()) - un atacante puede inyectar SQL arbitrario creando claves de array maliciosas. Esta vulnerabilidad está corregida en la versión 3.18.1."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "flightphp",
          "product": "core",
          "versions": [
            {
              "version": "< 3.18.1",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "baseScore": 8.8,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "LOW",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 5.9
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-05-14T15:43:39.063275Z",
          "id": "CVE-2026-42550",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-89"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/flightphp/core/security/advisories/GHSA-xwqr-rcqg-22mr",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/flightphp/core/security/advisories/GHSA-xwqr-rcqg-22mr",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
    }
  ]
}