{"id":"CVE-2026-42549","published":"2026-05-13T19:22:20Z","modified":"2026-05-14T19:52:29Z","title":"Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root","vendor":"flightphp","product":"core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00204,"percentile":0.10536,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":2.11},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"flightphp","affectedVersions":[{"vendor":"flightphp","product":"core","versions":["< 3.18.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-14T19:05:05.835731Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"flightphp/core","vulnerableRanges":["<3.18.1"],"patched":["3.18.1"],"from":["GHSA-3xjv-pmf2-gf2q"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-30148","exploited":false,"provenance":"source"}}