Vulnerability · Published May 13, 2026 · Assigned by GitHub_M

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

Medium 4.4

In plain English

A medium-severity path traversal in core from flightphp. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.2%top 89.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistflightphp/core3.18.1GHSA-3xjv-pmf2-gf2q

Affected products (as reported)

VendorProductVersions
flightphp core < 3.18.1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

References