# CVE-2026-42549: Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 2% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-06T21:34:39.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-3xjv-pmf2-gf2q
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- flightphp core: < 3.18.1
- flightphp/core (Packagist): before 3.18.1

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 4.4 Medium `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> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42549> (advisory)
- <https://github.com/flightphp/core> (package)

## Sources

- CVE List: [CVE-2026-42549](https://www.cve.org/CVERecord?id=CVE-2026-42549), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-3xjv-pmf2-gf2q](https://github.com/advisories/GHSA-3xjv-pmf2-gf2q), CC-BY-4.0, modified 2026-05-14
- NVD: [CVE-2026-42549](https://nvd.nist.gov/vuln/detail/CVE-2026-42549), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42549 · Whole record: https://cve.day/CVE-2026-42549.json · Rebuilt by cve.day 2026-11-25T22:59:21.656Z
