Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 95%

CVE-2026-42549: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in flightphp core

0
Medium
VulnerabilityCVE-2026-42549cvecve-2026-42549cwe-22
Published: 05/13/2026 (05/13/2026, 19:22:20 UTC)
Source: CVE Database V5
Vendor/Project: flightphp
Product: core

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.

CVSS v3.1

Score 4.4medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Affected software

Packagistmore threats →ai
flightphp/core
pkg:composer/flightphp/core
Affected versions
<3.18.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/21/2026, 12:15:31 UTC

Technical Analysis

CVE-2026-42549 is a path traversal vulnerability (CWE-22) in FlightPHP core before version 3.18.1. The vulnerability arises because the make:controller CLI command calls mkdir with recursive directory creation on a path derived from user input without prior validation. While Nette's class-name validation prevents writing files with invalid names containing '/', it does not prevent the creation of directories outside the intended scope via '../' traversal. This can lead to unintended directory creation outside the project root. The vulnerability has a CVSS 3.1 base score of 4.4, indicating medium severity. The issue is resolved in FlightPHP version 3.18.1.

Potential Impact

The vulnerability allows an attacker with local privileges to cause the application to create directories outside the intended project root directory via path traversal in the make:controller CLI command. This may lead to unintended filesystem modifications and potential denial of service due to directory creation in unauthorized locations. There is no direct confidentiality impact, but integrity and availability impacts are possible. No known exploits are reported in the wild.

Mitigation Recommendations

Upgrade FlightPHP core to version 3.18.1 or later, where this vulnerability is fixed. Since the vulnerability is resolved in this version, no additional mitigation actions are required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-28T16:56:50.191Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a04d644cbff5d861003f1f5

Added to database: 05/13/2026, 19:51:32 UTC

Last enriched: 05/21/2026, 12:15:31 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 49

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses