{"id":"CVE-2026-42549","aliases":["GHSA-3xjv-pmf2-gf2q"],"url":"https://o3.security/vulnerability/CVE-2026-42549","summary":"Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root","details":"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":"2026-05-13T19:22:20.932Z","modified":"2026-08-07T11:31:06.649189052Z","cvss":{"score":4.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"flightphp/core","fixedVersion":"3.18.1"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42549.json"},{"type":"ADVISORY","url":"https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42549"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:06.649189052Z"}}