{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-42549","id":"CVE-2026-42549","title":"Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root","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 directori","descriptionLong":"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","updated":"2026-10-28T02:30:42.362167035Z","reserved":"2026-04-28T16:56:50.191Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["flightphp core"],"affectedProducts":[{"vendor":"flightphp","product":"core","defaultStatus":null,"versions":[{"version":"< 3.18.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"flightphp/core","purl":"pkg:composer/flightphp/core","ranges":["<3.18.1"],"fixed":["3.18.1"],"advisory":"GHSA-3xjv-pmf2-gf2q"}],"cwes":["CWE-22"],"aliases":["GHSA-3xjv-pmf2-gf2q"],"references":[{"url":"https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42549.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42549","tags":["advisory"]},{"url":"https://github.com/flightphp/core","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00204,"epssPercentile":0.10451,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42549","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42549","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-42549","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3xjv-pmf2-gf2q","ok":true,"note":"GHSA-3xjv-pmf2-gf2q"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42549","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}