Flight PHP CVE-2026-42551
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker hosts malicious page
-
DeliveryVictim visits attacker's site
-
ExploitBrowser sends GET with ?_method=DELETE
-
ExecutionFlight misinterprets as DELETE
-
PersistEndpoint executes destructive operation
-
ImpactResource 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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):
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.1is dispatched as DELETE /item/42.
GET /item/42 HTTP/1.1
X-HTTP-Method-Override: DELETEis also dispatched as DELETE /item/42.
Trivial CSRF vector (no JavaScript required):
<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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Affected Products (CPE)CVE.org
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-vxrr-w42w-w76g
NVD
CVE.org
EPSS
Exploit-DB