Vulnerability · Published May 13, 2026 · Assigned by GitHub_M
CVE-2026-42549Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root
Medium 4.4
In plain English
A medium-severity path traversal in core from flightphp. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | flightphp/core | 3.18.1 | GHSA-3xjv-pmf2-gf2q |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
References
- https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q x_refsource_CONFIRM