CVE-2026-42552

Flight: Sensitive information disclosure via default error handler in flightphp/core

Published May 13, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Flight is an extensible micro-framework for PHP. Prior to 3.18.1, 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). This vulnerability is fixed in 3.18.1.

Analysis

AI-generated

Technical impact

FlightPHP Core's default error handling routine logs full exception details, including absolute file paths and stack trace, directly to the HTTP 500 response without any debug gating. This unconditionally leaks internal file paths, secrets that may have been interpolated into exception messages, and the overall module structure to an attacker, providing useful information that could facilitate further attacks such as local file inclusion or path traversal.

Affected Systems

The affected component is FlightPHP Core for all versions prior to 3.18.1. The vulnerability is present in any environment running those versions, regardless of deployment configuration.

Risk and Exploitability

The CVSS base score of 7.5 indicates a high severity. Without a specified EPSS, the exploitation probability is uncertain but the vulnerability is not yet listed in CISA KEV, meaning no known widespread public exploitation. An attacker can exploit this weakness by triggering an exception in the application on a publicly reachable endpoint; because the error handler emits the sensitive data unconditionally, the attack vector is direct application-level interaction. Once the sensitive information is exposed, an attacker can leverage it to craft more targeted exploitation campaigns, increasing the overall risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FlightPHP Core to version 3.18.1 or later.
  • If an upgrade cannot be performed immediately, configure the application to suppress detailed error information in HTTP responses, for example by replacing the default error handler with a custom implementation that logs errors silently or contacts an external logging service.
  • Review application code to ensure that exception messages do not contain sensitive data or secret variables and that input validation is enforced to reduce the likelihood of accidental disclosure.

Generated by OpenCVE AI on May 13, 2026 at 21:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qrch-52m5-vv85 Flight vulnerable to sensitive information disclosure via default error handler
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Flightphp
Flightphp core
Vendors & Products Flightphp
Flightphp core
Type Values Removed Values Added
Description Flight is an extensible micro-framework for PHP. Prior to 3.18.1, 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). This vulnerability is fixed in 3.18.1.
Title Flight: Sensitive information disclosure via default error handler in flightphp/core
Weaknesses CWE-209
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-209

    Generation of Error Message Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 15, 2026, 6:49 PM
Reserved
Apr 28, 2026, 4:56 PM
Status
Deferred
Published
May 13, 2026, 8:16 PM
Modified
Oct 26, 2026, 2:10 PM