FlightPHP Runway CVE-2026-42549
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local CLI access to FlightPHP project
-
DeliveryInvoke make:controller with crafted ../traversal name
-
Exploitmkdir creates directory tree outside project root
-
ExecutionNette rejects class write (traversal directories persist)
-
ImpactUse 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Local CLI invocation requires low privilege; directory creation has no confidentiality or meaningful availability impact.
Primary rating from Vendor (https://github.com/flightphp/core).
CVSS VectorVendor: https://github.com/flightphp/core
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):
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
.phpfile 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
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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-3xjv-pmf2-gf2q
NVD
CVE.org
EPSS
Exploit-DB