Skip to main content

FlightPHP Runway CVE-2026-42549

MEDIUM
Path Traversal (CWE-22)
2026-05-06 https://github.com/flightphp/core GHSA-3xjv-pmf2-gf2q
4.4
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
    Obtain local CLI access to FlightPHP project
  2. Delivery
    Invoke make:controller with crafted ../traversal name
  3. Exploit
    mkdir creates directory tree outside project root
  4. Execution
    Nette rejects class write (traversal directories persist)
  5. Impact
    Use planted directory for chained LFI or log-poisoning attack

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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

Exploitation Conditions

Exploitation requires the ability to invoke the make:controller CLI command from the FlightPHP Runway toolset, meaning the attacker must have local or container-level access to the project directory and execution rights for php vendor/flightphp/runway/runway. No network exposure, no web-facing attack surface, and no special application configuration are required - the vulnerability is inherent to the CLI tool's filesystem handling. Exploitation is limited to local filesystem manipulation (directory creation only; no file write, no code execution directly). The class-file write is successfully blocked by Nette's validation, so the attacker cannot drop PHP files through this vector alone - file-drop capability would require a separate, chained vulnerability. The ../ traversal is constrained by OS-level file permissions on the executing user; if the process user has restricted write scope, traversal targets outside that scope will fail silently.

Impact

The CVSS 3.1 base score of 4.4 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L) correctly reflects local access and low privilege as prerequisites, aligning with the requirement to execute the Runway CLI. EPSS at 0.02% (5th percentile) signals very low observed exploitation probability, and the vulnerability is not listed in the CISA KEV catalog, confirming no confirmed active exploitation at time of analysis. The primary real-world risk is elevated in shared CI build agents, containerized developer environments, or multi-tenant development platforms where multiple actors can invoke the CLI - in these contexts, a low-privilege actor could plant directory structures outside the project root to facilitate chained attacks (e.g., creating a directory for later log-poisoning or Local File Inclusion priming). On isolated developer workstations, the practical blast radius is limited. The A:L availability metric in the provided CVSS vector is contestable: bare directory creation does not inherently disrupt service, though strategic placement could interfere with dependent filesystem operations. Overall, this is a genuine but lower-priority finding for organizations running Runway only on single-user developer machines; it warrants faster remediation in shared CI and containerized build environments.

Exploit ScenarioDerived

A developer or CI agent with access to the FlightPHP project directory runs php vendor/flightphp/runway/runway make:controller '../../../../tmp/evil/injected'; the CLI prints a directory-creation info message and mkdir recursively creates /tmp/evil/injected (or an equivalent traversal target) on the host before Nette throws an InvalidArgumentException rejecting the class name. A publicly available proof-of-concept, included in the GitHub security advisory, demonstrates this end-to-end with the directory confirmed present after the exception. In a shared CI environment, this could be used to plant directory structures that facilitate a follow-on Local File Inclusion attack if a separate template-include weakness exists elsewhere in the application.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Jul 23, 2026

Arbitrary directory creation outside the project root is possible in FlightPHP's make:controller CLI command (flightphp/core < 3.18.1) due to un-normalized path handling before input validation. The mkdir(..., recursive: true) call executes on attacker-controlled path segments - including ../ traversal sequences - before Nette's class-name validation can reject the input, leaving the created directories as a committed filesystem side effect. A publicly available proof-of-concept confirms the issue; exploitation is local and no CISA KEV entry exists, consistent with the low EPSS score of 0.02% (5th percentile).

RemediationAI

The primary fix is to upgrade flightphp/core to version 3.18.1 or later via Composer (composer update flightphp/core); this is the vendor-confirmed patched version (commit b8dd23a, advisory: https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q). If an immediate upgrade is not feasible, restrict filesystem permissions so that the PHP process executing the CLI cannot write outside the project root directory (e.g., run the CLI under a user whose home/working directory is chroot-equivalent or confined by OS-level controls). In CI environments, ensure the build user's write permissions are scoped to the project workspace only, which would contain the traversal impact. Avoid passing unsanitized, user-controlled strings as the controller name argument in automated pipelines. There is no configuration flag to disable the vulnerable code path short of patching, since the mkdir call is unconditional in the affected versions.

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

The vulnerability is rooted in CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal). Affected code resides in flight/commands/ControllerCommand.php (≈ lines 63-66) within the Composer package flightphp/core (CPE: pkg:composer/flightphp_core). PHP's mkdir() with the recursive: true flag will create the full directory tree for any supplied path, including paths containing ../ traversal components, without normalizing or canonicalizing the input first. Nette's class-name validator correctly rejects the file-write step when the controller name contains /, but by that point mkdir has already committed the directory structure to disk. On Windows hosts, the \ separator exposes additional traversal surface beyond the ../ Unix-style vector. The fix in 3.18.1 (commit b8dd23a) applies basename() normalization and enforces a strict ^[A-Za-z_][A-Za-z0-9_]*$ regex before any filesystem side effect is allowed to run.

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 4.4 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 3.3 LOW

Local CLI invocation requires low privilege; directory creation has no confidentiality or meaningful availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/flightphp/core).

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

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

DescriptionCVE.org

Summary

The make:controller CLI command calls mkdir(..., recursive: true) on a path built from the user-supplied controller name, before Nette's class-name validation runs. The class-file write is correctly rejected by Nette when the name contains /, but the recursive directory creation side effect is already committed - including directories located outside the project root through ../ traversal.

Affected code

flight/commands/ControllerCommand.php (≈ 63-66):

php
if (is_dir(dirname($controllerPath)) === false) {
    $io->info('Creating directory ' . dirname($controllerPath), true);
    mkdir(dirname($controllerPath), 0755, true);   // un-normalized, runs before validation
}

Proof of concept

$ php vendor/flightphp/runway/runway make:controller '../../../../tmp/CONTROLLER_TRAVERSAL_TEST/pwn'
Creating directory .../app/controllers/../../../../tmp/CONTROLLER_TRAVERSAL_TEST
Nette\InvalidArgumentException: Value '../../../../tmp/CONTROLLER_TRAVERSAL_TEST/pwnController' is not valid class name.

$ ls /home/user/tmp/CONTROLLER_TRAVERSAL_TEST
(directory exists - created before the exception was thrown)

Impact

  • Arbitrary directory creation outside the project root, executable by any local actor that can run the Flight CLI (developer machine, shared CI build agent, compromised dev container).
  • Primes log-file planting for chained LFI exploitation (e.g. creating a directory where an attacker can later drop a .php file to be included via a distinct template-include weakness).
  • On Windows, the \ separator opens additional traversal surface.

Patch (fixed in 3.18.1, commit b8dd23a)

The controller name is now normalized with basename() and validated against ^[A-Za-z_][A-Za-z0-9_]*$ before any mkdir side effect runs.

Credit

Discovered by @Rootingg.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
Low
niche PHP micro-framework, limited enterprise production footprint
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
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.

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