Skip to main content

FlightPHP Core CVE-2026-42552

HIGH
Error Message Information Leak (CWE-209)
2026-05-06 https://github.com/flightphp/core GHSA-qrch-52m5-vv85
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. Recon
    Send crafted HTTP request
  2. Delivery
    Trigger uncaught exception in FlightPHP
  3. Exploit
    Receive HTTP 500 with stack trace
  4. Install
    Extract filesystem paths and secrets
  5. C2
    Enumerate vendor packages and config locations
  6. Execute
    Chain with LFI/path traversal
  7. Impact
    Read sensitive files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK

1 technique across 1 tactic: Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of FlightPHP Core versions prior to 3.18.1. The vulnerable error handler Engine::_error() is registered automatically during framework initialization (Engine::init()) and handles any uncaught Throwable. CVSS vector AV:N/AC:L/PR:N/UI:N confirms exploitation requires only network access with low complexity and no user interaction. The flaw is not gated by flight.debug or environment variables in vulnerable versions. Exploitation does not require knowledge of internal application logic; any HTTP request that causes an exception (invalid input, forced errors, requests to nonexistent routes) triggers the disclosure. The live PoC at /poc5/error in the researcher's demonstration environment confirms exploitation is straightforward. Limiting factors: the vulnerability discloses information but does not directly grant code execution or privilege escalation - attackers must chain disclosed paths/secrets with secondary vulnerabilities to achieve deeper compromise. Secrets are only leaked if application code interpolates them into exception messages, which is poor practice but common in legacy PHP applications.

Impact

Real-world risk is medium-high despite the 7.5 CVSS base score. CVSS vector AV:N/AC:L/PR:N/UI:N indicates any remote unauthenticated attacker can trigger exceptions (via malformed requests, missing parameters, or forced error conditions) to harvest reconnaissance data. However, this is purely information disclosure (C:H/I:N/A:N) - not direct code execution or authentication bypass. EPSS and KEV data were not provided, but the low attack complexity and lack of authentication requirements suggest automated scanners could discover vulnerable instances. The GitHub advisory confirms a publicly available patch (3.18.1) and proof-of-concept, meaning exploit primitives are documented. Risk is elevated in environments where: (1) the same application has secondary vulnerabilities (LFI, path traversal, SQLi) that can be weaponized using disclosed paths; (2) secrets are logged in exception messages (common in legacy codebases); or (3) the application runs on shared hosting where path disclosure aids cross-tenant attacks. SSVC technical impact is partial (information leak, not total system compromise), exploitation is proven (PoC exists), but automatable mass exploitation is less likely since each application has unique error-triggering endpoints. Priority should be high for applications handling sensitive data or colocated with other vulnerabilities, medium for isolated public-facing services. No conflicting data between CVSS and description; both confirm network-reachable unauthenticated disclosure.

Exploit ScenarioDerived

An attacker sends HTTP requests designed to trigger uncaught exceptions - such as requests with missing required parameters, malformed JSON payloads, or URLs referencing nonexistent routes. Each resulting HTTP 500 response leaks the full stack trace, revealing absolute filesystem paths like /var/www/html/app/vendor/flightphp/core/flight/Engine.php and /home/user/app/config/Database.php. The attacker enumerates installed vendor packages (Composer dependencies) and application directory structure. If a database connection exception occurs, the exception message may contain Database connection failed: mysql://dbuser:SecretPass123@localhost/proddb, exposing credentials. Armed with filesystem paths and the knowledge that the application uses a specific ORM library with known path-traversal flaws, the attacker crafts a secondary request exploiting an LFI vulnerability to read /var/www/html/app/config/secrets.yml. The GitHub advisory confirms a live proof-of-concept endpoint (/poc5/error) was used during discovery, demonstrating trivial exploitation against default configurations.

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

FlightPHP Core's default error handler exposes full exception messages, stack traces, and absolute filesystem paths in HTTP 500 responses without any debug-mode gating. All versions before 3.18.1 leak internal application structure, vendor package names, and any secrets interpolated into exception messages to unauthenticated remote attackers. This information disclosure primes follow-on attacks like LFI and path traversal by revealing server paths and configuration file locations. Vendor-released patch in version 3.18.1 introduces a flight.debug setting (default false) that suppresses verbose output in production. CVSS 7.5 reflects network-accessible information disclosure with no privileges required.

RemediationAI

Upgrade to FlightPHP Core version 3.18.1 or later via Composer (composer require flightphp/core:^3.18.1). The patch introduces a flight.debug configuration option that defaults to false, suppressing verbose error output in production. Developers should verify flight.debug remains false in production environments; set it to true only in local development. For applications that cannot immediately upgrade, implement a custom error handler by registering a callback with Flight::map('error', function(Throwable $e) { ... }) that logs exceptions server-side via error_log() and returns a generic HTTP 500 message without stack traces or paths. Additional hardening: enable flight.log_errors = true to retain diagnostic data in server logs, configure PHP's display_errors = Off and log_errors = On in php.ini to prevent accidental leakage, and review exception messages throughout the codebase to ensure secrets are never interpolated into exception text. Trade-off: custom error handlers require maintenance across FlightPHP version upgrades and may miss framework-level exceptions if not registered early in the application lifecycle. Official patch from https://github.com/flightphp/core/commit/b8dd23aaa828cb289fa3c84e75b2a3717cab50b0 also adds htmlspecialchars() escaping to debug output, preventing XSS if flight.debug is enabled in staging environments.

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

FlightPHP is a lightweight PHP micro-framework for building REST APIs and web applications. The vulnerability resides in Engine::_error() (flight/Engine.php lines 678-704), the framework's default uncaught exception handler. This handler directly writes Throwable objects' getMessage(), getCode(), and getTraceAsString() output into HTTP 500 responses as HTML. CWE-209 (Generation of Error Message Containing Sensitive Information) describes this class of flaw: error handlers that fail to sanitize diagnostic data before exposing it to external actors. In production PHP applications, stack traces typically contain absolute filesystem paths (e.g., /var/www/html/vendor/flightphp/core/flight/core/Dispatcher.php), loaded module paths, and class names. Exception messages often include interpolated configuration values like database DSNs or API tokens. Prior to v3.18.1, FlightPHP had no environment-based toggle to suppress this output. The commit b8dd23a introduces a flight.debug boolean configuration option (default false) that gates verbose error output, optionally logging to error_log() instead, and adds htmlspecialchars() escaping to prevent XSS in the debug payload itself.

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:H/I:N/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
High
Integrity
None
Availability
None

DescriptionCVE.org

Summary

The default error handler Engine::_error() writes the full exception message, exception code, and stack trace (including absolute filesystem paths) directly into the HTTP 500 response, with no debug gating. Production deployments leak internal paths, any secret interpolated into an exception message, and full module structure - giving attackers primitives for chaining other weaknesses (LFI, path traversal).

Affected code

flight/Engine.php (≈ lines 678-704):

php
public function _error(Throwable $e): void
{
    ...
    $msg = sprintf(<<<'HTML'
        <h1>500 Internal Server Error</h1>
            <h3>%s (%s)</h3>
            <pre>%s</pre>
        HTML,
        $e->getMessage(),
        $e->getCode(),
        $e->getTraceAsString()
    );
    $this->response()->cache(0)->clearBody()->status(500)->write($msg)->send();
}

No flight.debug check, no environment gating.

Proof of concept

Any uncaught exception - including those auto-raised from handleError() - returns:

HTTP/1.1 500 Internal Server Error

<h1>500 Internal Server Error</h1>
  <h3>secret path /var/www/config/db.yml; token=LEAKED123 (0)</h3>
  <pre>#0 [internal function]: {closure}()
  #1 /home/user/app/vendor/flightphp/core/flight/core/Dispatcher.php(361)...
  #2 /home/user/app/vendor/flightphp/core/flight/Engine.php(...)
  ...
  </pre>

Reproduced against the live PoC app at /poc5/error.

Impact

  • Disclosure of absolute filesystem paths (primes weaponization of LFI / path-traversal vulnerabilities in the same application).
  • Disclosure of secrets (DB credentials, API tokens) when exceptions are constructed with interpolated configuration values.
  • Enumeration of installed vendor packages and internal application structure.

Patch (fixed in 3.18.1, commit b8dd23a)

A new flight.debug setting (default false) gates the verbose output. In production the handler now emits only <h1>500 Internal Server Error</h1>. Developers can set flight.debug = true in local environments to restore the full trace output.

Credit

Discovered by @Rootingg.

Executive ViewAI

Why It Matters

FlightPHP Core versions before 3.18.1 expose sensitive internal application details, filesystem paths, and potentially embedded secrets in error responses accessible to unauthenticated users, creating reconnaissance opportunity for follow-on attacks. Organizations running affected versions face increased risk of targeted exploitation through information gathered from publicly visible error pages. This vulnerability requires immediate patching to eliminate the attack surface.

Business Impact: High
Compensating Controls

Vendor-released patch: FlightPHP 3.18.1. If immediate patching is not feasible, implement Web Application Firewall (WAF) rules to suppress HTTP 500 response bodies from external clients, configure error logging to separate internal log systems rather than HTTP responses, and enforce flight.debug=false in application configuration pending patch deployment.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% 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

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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