CVE-2026-42549

MEDIUM CVSS 3.1: 4.4 EPSS 0.20%
Updated Oct 26, 2026
PHP
Parameter Value
CVSS 4.4 (MEDIUM)
Fixed In 3.18.1
Type CWE-22 (Path Traversal)
Vendor PHP
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
Low
Partial data modification
Availability
Low
Partial disruption

CVSS Vector v3.1

Weakness Type (CWE)