Security Vulnerability Report
中文
CVE-2026-42551 CVSS 7.5 HIGH

CVE-2026-42551

Published: 2026-05-13 20:16:22
Last Modified: 2026-05-14 16:51:08

Description

Flight is an extensible micro-framework for PHP. Prior to 3.18.1, 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. This vulnerability is fixed in 3.18.1.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Configurations (Affected Products)

No configuration data available.

Flight < 3.18.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC: Using curl to simulate a CSRF upgrade from GET to DELETE # Target: A Flight application endpoint vulnerable to method override curl -i -X GET 'http://vulnerable-target.com/user/delete' \ -H 'X-HTTP-Method-Override: DELETE' \ -H 'Cookie: session=attacker_stolen_session'

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42551", "sourceIdentifier": "[email protected]", "published": "2026-05-13T20:16:22.190", "lastModified": "2026-05-14T16:51:08.300", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Flight is an extensible micro-framework for PHP. Prior to 3.18.1, 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. This vulnerability is fixed in 3.18.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-436"}]}], "references": [{"url": "https://github.com/flightphp/core/security/advisories/GHSA-vxrr-w42w-w76g", "source": "[email protected]"}, {"url": "https://github.com/flightphp/core/security/advisories/GHSA-vxrr-w42w-w76g", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}