CVE-2026-42549: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in flightphp core
Flight is an extensible micro-framework for PHP. Prior to 3.18.1, 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. This vulnerability is fixed in 3.18.1.
AI Analysis
Technical Summary
CVE-2026-42549 is a path traversal vulnerability (CWE-22) in FlightPHP core before version 3.18.1. The vulnerability arises because the make:controller CLI command calls mkdir with recursive directory creation on a path derived from user input without prior validation. While Nette's class-name validation prevents writing files with invalid names containing '/', it does not prevent the creation of directories outside the intended scope via '../' traversal. This can lead to unintended directory creation outside the project root. The vulnerability has a CVSS 3.1 base score of 4.4, indicating medium severity. The issue is resolved in FlightPHP version 3.18.1.
Potential Impact
The vulnerability allows an attacker with local privileges to cause the application to create directories outside the intended project root directory via path traversal in the make:controller CLI command. This may lead to unintended filesystem modifications and potential denial of service due to directory creation in unauthorized locations. There is no direct confidentiality impact, but integrity and availability impacts are possible. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade FlightPHP core to version 3.18.1 or later, where this vulnerability is fixed. Since the vulnerability is resolved in this version, no additional mitigation actions are required.
CVE-2026-42549: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in flightphp core
Description
Flight is an extensible micro-framework for PHP. Prior to 3.18.1, 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. This vulnerability is fixed in 3.18.1.
CVSS v3.1
Score 4.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42549 is a path traversal vulnerability (CWE-22) in FlightPHP core before version 3.18.1. The vulnerability arises because the make:controller CLI command calls mkdir with recursive directory creation on a path derived from user input without prior validation. While Nette's class-name validation prevents writing files with invalid names containing '/', it does not prevent the creation of directories outside the intended scope via '../' traversal. This can lead to unintended directory creation outside the project root. The vulnerability has a CVSS 3.1 base score of 4.4, indicating medium severity. The issue is resolved in FlightPHP version 3.18.1.
Potential Impact
The vulnerability allows an attacker with local privileges to cause the application to create directories outside the intended project root directory via path traversal in the make:controller CLI command. This may lead to unintended filesystem modifications and potential denial of service due to directory creation in unauthorized locations. There is no direct confidentiality impact, but integrity and availability impacts are possible. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade FlightPHP core to version 3.18.1 or later, where this vulnerability is fixed. Since the vulnerability is resolved in this version, no additional mitigation actions are required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-28T16:56:50.191Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04d644cbff5d861003f1f5
Added to database: 05/13/2026, 19:51:32 UTC
Last enriched: 05/21/2026, 12:15:31 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 49
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.