What’s Vulnerable › Vulnerabilities
CVE-2026-42549: Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root
- Severity: medium (CVSS 4.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-13 · updated 2026-10-26
- Weakness: CWE-22
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.
Affected products
- flightphp core: before 3.18.1
References
- https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q
- https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q
Get alerted when CVE-2026-42549 or the next vulnerability affects your stack