Skip to main content
← All vulnerabilities
CVE-2026-42549GHSA-3XJV-PMF2-GF2Q

Flight: Path traversal in `make:controller` CLI creates arbitrary directories outside project root

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.18.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • flightphp core

    fixed in 3.18.1

  • flightphp/corePackagist

    fixed in 3.18.1

References 1

GitHub · flightphp/core