Skip to main content

Flight PHP CVE-2026-42551

HIGH
Interpretation Conflict (CWE-436)
2026-05-06 https://github.com/flightphp/core GHSA-vxrr-w42w-w76g
7.5
CVSS 3.1 · Vendor: https://github.com/flightphp/core
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker hosts malicious page
  2. Delivery
    Victim visits attacker's site
  3. Exploit
    Browser sends GET with ?_method=DELETE
  4. Execution
    Flight misinterprets as DELETE
  5. Persist
    Endpoint executes destructive operation
  6. Impact
    Resource deleted using victim's credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
Exploitation Conditions

No special conditions required for remote unauthenticated exploitation against default Flight PHP < 3.18.1 configurations. The vulnerability is exploitable whenever the target application registers route handlers for unsafe HTTP verbs (DELETE, PUT, PATCH) using Flight's routing methods (e.g., Flight::route('DELETE /item/@id', handler)). Exploitation succeeds without requiring: authentication credentials (CSRF leverages victim's existing session), JavaScript execution (HTML-only vectors using img/script tags), or non-default framework configuration (method override enabled by default). Attack vector limitations: victim must have active authenticated session with target application for CSRF scenarios. Middleware bypass scenarios require the application to implement authentication, CSRF protection, or rate limiting that is conditionally applied based on HTTP verb rather than applied uniformly to all requests. Cache poisoning scenarios require CDN or reverse proxy deployment between attacker and origin server. Applications using only GET and POST routes are not vulnerable regardless of version. The vulnerability is NOT exploitable against applications that: (1) never register routes for DELETE/PUT/PATCH verbs, (2) implement CSRF token validation in endpoint handlers independent of HTTP method, or (3) use authentication middleware that validates credentials on every request regardless of verb. PHP runtime configuration request_order=GPC expands attack surface by including cookie values in $_REQUEST, though default GP configuration still enables query parameter vector.

Impact

CVSS 7.5 (High) reflects network vector with no authentication or complexity barriers (AV:N/AC:L/PR:N/UI:N), focusing on high integrity impact from unauthorized state modification. However, real-world risk assessment requires nuance beyond the base score. The attack requires no special conditions - remote unauthenticated exploitation against default configurations of Flight PHP applications with DELETE/PUT routes. The CSRF vector is particularly severe because it bypasses browser Same-Origin Policy protections: simple HTML elements (img, script, link) can trigger cross-site requests without CORS preflight checks. The vulnerability enables three distinct attack patterns: (1) CSRF escalation converting safe GET requests into destructive operations, (2) authentication/rate-limiting middleware bypass when filters only gate POST/DELETE verbs, and (3) CDN cache poisoning where edge servers cache GET responses while origin servers execute DELETE operations. Exploitation probability is high for applications meeting these conditions: publicly accessible endpoints registered for DELETE/PUT/PATCH verbs, reliance on verb-gated middleware for security controls, or CDN deployment. Mitigating factors include: applications using only GET/POST routes are unaffected, and proper CSRF token validation in endpoint handlers provides defense-in-depth despite the method override. The GitHub advisory provides complete proof-of-concept demonstrating trivial exploitation requiring only attacker-controlled HTML page load. Patch status is confirmed by vendor: version 3.18.1 released with commit b8dd23aaa828cb introducing flight.allow_method_override configuration flag (defaults to true for backward compatibility, requiring operators to explicitly disable). No EPSS score or CISA KEV listing available - appears to be targeted disclosure rather than widespread exploitation. Priority for patching is HIGH for any Flight PHP application exposing destructive operations via REST endpoints, MEDIUM for applications relying on verb-based middleware gating, LOW for applications using only safe HTTP methods.

Exploit ScenarioDerived

Attacker identifies a Flight PHP application at victim.tld exposing a REST endpoint DELETE /api/item/{id} for resource deletion that relies only on session cookie authentication without CSRF token validation. Attacker creates malicious webpage at attacker.tld containing embedded image tag: <img src="https://victim.tld/api/item/42?_method=DELETE">. When authenticated victim browses attacker's page, browser automatically sends GET request to victim.tld including session cookies (due to same-domain cookie scope), but Flight framework's Request::getMethod() reads _method=DELETE from query string and dispatches the request as DELETE operation, bypassing any middleware that gates only on POST/DELETE verbs. The victim's resource with ID 42 is silently deleted without user interaction or consent. In cache poisoning variant, CDN edge server caches the 200 OK response from what it perceives as safe GET request, while origin server executed destructive DELETE, causing subsequent visitors to receive stale cached content for deleted resources.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 06, 2026

Flight PHP micro-framework (< 3.18.1) silently converts GET requests into DELETE or PUT operations via unvalidated X-HTTP-Method-Override headers or _method query parameters, enabling trivial CSRF attacks against destructive endpoints. Attackers can trigger resource deletion using simple HTML image tags without JavaScript or user interaction. The vulnerability bypasses middleware filters that gate only POST/DELETE verbs, and creates CDN cache poisoning scenarios where cached GET responses reflect executed DELETE operations. Patch available in version 3.18.1 introducing opt-in method override control (flight.allow_method_override setting). No active exploitation confirmed at time of analysis; publicly available exploit code exists in GitHub advisory.

RemediationAI

Upgrade to Flight PHP version 3.18.1 or later (released March 2025, confirmed by vendor at https://github.com/flightphp/core/releases/tag/v3.18.1 and commit b8dd23aaa828cb289fa3c84e75b2a3717cab50b0). For Composer-managed installations, run composer require flightphp/core:^3.18.1 and verify with composer show flightphp/core. Note that version 3.18.1 introduces the flight.allow_method_override configuration setting defaulting to true for backward compatibility - operators must explicitly set $app->set('flight.allow_method_override', false); during initialization to disable method override functionality if not required by legitimate API clients. For deployments unable to upgrade immediately, implement these compensating controls with noted trade-offs: (1) Add explicit method validation in route handlers or early middleware to reject requests where actual HTTP verb (from $_SERVER['REQUEST_METHOD']) differs from framework-resolved method, though this requires code changes in every protected endpoint. (2) Configure web server (Apache/nginx) rules to reject requests containing X-HTTP-Method-Override headers or _method parameters, though this breaks legitimate REST clients relying on method override for PATCH/PUT support. (3) Implement strict CSRF token validation in all DELETE/PUT/PATCH endpoint handlers independent of HTTP verb, though this only mitigates CSRF vectors and does not prevent middleware bypass or cache poisoning. (4) Review and refactor middleware authentication/rate-limiting to key on session/token state rather than HTTP verb assumptions, requiring potentially extensive code audit. Confirm patch application by testing that GET requests with ?_method=DELETE or X-HTTP-Method-Override: DELETE headers are dispatched as GET (when flight.allow_method_override is false) or testing that legitimate override requests still function (when true).

Affected Packages

composer flightphp/core fix: 3.18.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Flight PHP is a lightweight PHP micro-framework providing routing and HTTP request handling. The vulnerable code in Request::getMethod() (flight/net/Request.php lines 281-292) unconditionally processes HTTP method override mechanisms intended for REST API compatibility when browsers only support GET/POST. The implementation reads from PHP's $_REQUEST superglobal (aggregating $_GET, $_POST, and potentially $_COOKIE depending on request_order configuration) and the X-HTTP-Method-Override header without validation. This enables HTTP verb tampering attacks that violate RFC 9110 semantics by allowing safe methods (GET, HEAD) to be reinterpreted as unsafe methods (DELETE, PUT, PATCH) at the application layer. The root cause maps to CWE-436 (Interpretation Conflict) where the framework's method resolution logic conflicts with intended HTTP semantics and browser security model. The vulnerability affects all Flight PHP applications using versions prior to 3.18.1 (CPE pkg:composer/flightphp_core) that register routes for unsafe HTTP verbs, particularly REST-style resource endpoints.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/flightphp/core) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Primary rating from Vendor (https://github.com/flightphp/core) · only source for this CVE.

CVSS VectorVendor: https://github.com/flightphp/core

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

DescriptionCVE.org

Summary

Request::getMethod() unconditionally honors the X-HTTP-Method-Override header and the $_REQUEST['_method'] parameter on any HTTP verb (including safe verbs such as GET), with no opt-in and no whitelist of permitted target methods. A GET request can silently become a DELETE or PUT, enabling CSRF escalation against destructive endpoints, bypass of middleware gated on unsafe verbs, and cache poisoning between CDN and origin.

Affected code

flight/net/Request.php (≈ lines 281-292):

php
public static function getMethod(): string
{
    $method = self::getVar('REQUEST_METHOD', 'GET');
    if (self::getVar('HTTP_X_HTTP_METHOD_OVERRIDE') !== '') {
        $method = self::getVar('HTTP_X_HTTP_METHOD_OVERRIDE');
    } elseif (isset($_REQUEST['_method']) === true) {
        $method = $_REQUEST['_method'];
    }
    return strtoupper($method);
}

$_REQUEST aggregates $_GET and $_POST; on PHP runtimes with request_order=GPC it also includes $_COOKIE.

Proof of concept

GET /item/42?_method=DELETE        HTTP/1.1

is dispatched as DELETE /item/42.

GET /item/42                       HTTP/1.1
X-HTTP-Method-Override: DELETE

is also dispatched as DELETE /item/42.

Trivial CSRF vector (no JavaScript required):

html
<img src="https://victim.tld/item/42?_method=DELETE">

loaded on any attacker-controlled page triggers the destructive DELETE on page load, bypassing Same-Origin Policy (image loads are not blocked).

Reproduced against /poc4/item/42.

Impact

  • GET → DELETE / PUT CSRF on any route registered for unsafe verbs.
  • Bypass of authentication, CSRF token, or rate-limiting middleware that is gated only on POST/DELETE.
  • CDN cache poisoning: the CDN caches the GET response body while the origin executed a DELETE.

Patch (fixed in 3.18.1, commit b8dd23a)

A new flight.allow_method_override setting controls both override vectors. Operators can set it to false to disable X-HTTP-Method-Override and _method entirely.

Credit

Discovered by @Rootingg.

Executive ViewAI

Why It Matters

Flight PHP framework versions below 3.18.1 contain a critical request method override vulnerability that allows attackers to convert benign GET requests into destructive DELETE or PUT operations without user interaction, exposing applications to trivial CSRF attacks and data loss. Organizations running Flight-based applications face unintended resource deletion and potential compliance violations if customer data is destroyed via cached or embedded attack vectors. Immediate upgrade to version 3.18.1 is required to restore proper HTTP method validation.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations if patching is delayed: (1) Disable X-HTTP-Method-Override and _method parameter processing at the reverse proxy or WAF layer via request header/parameter blocking rules; (2) Configure strict idempotency enforcement requiring POST/DELETE requests use form bodies rather than query parameters; (3) Implement CSRF token validation on all state-changing endpoints regardless of HTTP method; (4) Review and tighten CDN cache key rules to exclude GET requests to destructive endpoints.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Affected Products (CPE)CVE.org

pkg:composer/flightphp_core

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy