Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. flightphp/core
  4. ›
  5. CVE-2026-42549

CVE-2026-42549: Flight has path traversal in `make:controller` CLI that creates arbitrary directories outside project root

May 6, 2026

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.

References

  • github.com/advisories/GHSA-3xjv-pmf2-gf2q
  • github.com/flightphp/core
  • github.com/flightphp/core/security/advisories/GHSA-3xjv-pmf2-gf2q
  • nvd.nist.gov/vuln/detail/CVE-2026-42549

Code Behaviors & Features

Detect and mitigate CVE-2026-42549 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.18.1

Fixed versions

  • 3.18.1

Solution

Upgrade to version 3.18.1 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/flightphp/core/CVE-2026-42549.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:18:43 +0000.