CVE-2026-42549
MEDIUM 4.4CVSS 3.1Flight has path traversal in `make:controller` CLI that creates arbitrary directories outside project root
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.
- Published
- 13 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-3xjv-pmf2-gf2q
- Sources
- NVDJSONOSV GHSA-3xjv-pmf2-gf2qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | flightphp/core | < 3.18.1 | 3.18.1 |
References
- https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42549 · ADVISORY
- https://github.com/flightphp/core · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 May 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 May 2026)