Skip to main content

Symfony UX Toolkit CVE-2026-55878

HIGH
Path Traversal (CWE-22)
2026-06-19 https://github.com/symfony/ux GHSA-p9xj-fpr2-jf2q
7.8
CVSS 3.1 · Vendor: https://github.com/symfony/ux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious recipe kit
  2. Delivery
    Victim runs `ux:install` against kit
  3. Exploit
    `copy-files` traversal escapes target dir
  4. Execution
    Overwrite `.env` or git hook
  5. Impact
    Code execution on next trigger

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim to run the ux:install console command of symfony/ux-toolkit (versions 2.32.0-2.36.0 or 3.0.0-3.1.x) against an attacker-controlled recipe kit whose manifest contains copy-files entries with .. segments. The attack is limited by the need for user interaction (the developer or CI job must explicitly invoke ux:install against the malicious kit), and silent overwrite of existing files specifically requires either the --force flag or a non-interactive environment such as a CI runner; without those, the user is prompted before overwrite. No network listener or special privileges are needed beyond whatever the PHP process running ux:install already has on disk.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H scores 7.8 and accurately reflects the threat model: a developer or CI job is tricked into running ux:install against a malicious kit (UI:R), giving high impact across C/I/A through arbitrary file overwrite that pivots to code execution. There is no EPSS, KEV, or POC signal in the provided data, so this is no public exploit identified at time of analysis - realistic exposure is highest for supply-chain scenarios where teams pull kits from untrusted sources or where an upstream kit author is compromised. Note the PR:N in the input vector is debatable for a developer-tool install command, but since the kit-author is the attacker (not the local user), PR:N from the local victim's perspective is defensible; defenders should still treat the attack as inherently requiring user action to invoke ux:install.

Exploit ScenarioDerived

An attacker publishes (or compromises) a Symfony UX recipe kit that includes a copy-files entry such as ../../../../.git/hooks/post-merge or ../../../../.env. When a developer or CI pipeline runs php bin/console ux:install against that kit - particularly with --force or in a non-interactive shell - the installer silently overwrites the targeted file with attacker content, yielding code execution on the next git operation or application boot.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

Arbitrary file write and read in Symfony UX Toolkit's ux:install console command allows a crafted or compromised recipe kit to escape the intended installation directory and overwrite or read attacker-controlled files on a developer's machine or CI runner. Because overwriting controllers, git hooks, or .env files yields code execution, this path-traversal flaw escalates to local RCE, and no public exploit identified at time of analysis though the fix and root cause are documented in the upstream GHSA.

RemediationAI

Vendor-released patch: upgrade symfony/ux-toolkit to 2.36.1 on the 2.x branch or to 3.2.0 on the 3.x branch via composer update symfony/ux-toolkit, as documented in GHSA-p9xj-fpr2-jf2q (https://github.com/symfony/ux/security/advisories/GHSA-p9xj-fpr2-jf2q). The fix introduces an Assert::pathDoesNotEscapeDirectory() helper that rejects .. segments using either separator and re-verifies fully resolved paths with Path::isBasePath() immediately before each read and write. Until the upgrade is applied, do not run ux:install against untrusted or unaudited recipe kits, avoid the --force flag, and review any copy-files manifests for .. segments before installing; in CI, pin kit sources to known-good revisions and run installs in ephemeral containers so that arbitrary writes cannot persist into source trees or credentials stores.

Affected Packages

composer symfony/ux-toolkit fix: 2.36.1, 3.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability lives in the recipe-kit installation logic of the symfony/ux-toolkit Composer package. The copy-files map in a recipe manifest lists source and destination paths, which were only validated with Path::isRelative() - a check that returns true for traversal strings such as ../../../etc. Path::join() then collapses the .. segments without rejecting them, so the resolved path can land anywhere on the filesystem the PHP process can reach. This is a textbook CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and applies symmetrically: the source side enables out-of-tree reads, and the destination side enables out-of-tree writes, including silent overwrite when --force is supplied or the command runs non-interactively (e.g., CI).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/symfony/ux) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local console command (AV:L), no auth needed by the kit author (PR:N), but the victim must invoke `ux:install` against the malicious kit (UI:R); arbitrary file read/write yields full C/I/A impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/symfony/ux).

CVSS VectorVendor: https://github.com/symfony/ux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Description

The ux:install console command installs files from a recipe kit by copying paths listed in a copy-files map. The only guard against malicious paths was Path::isRelative(), which returns true for paths like ../../../etc. Path::join() then resolves the .. segments without complaint, so the final path can escape the intended directory entirely. A crafted or compromised kit can therefore write attacker-controlled content to arbitrary locations on the developer's machine or CI runner.

Because the copy operation creates missing parent directories and can overwrite existing files silently (with --force or in non-interactive environments), an attacker who controls a kit can overwrite files such as controllers, git hooks, or .env to achieve code execution. The source side of copy-files is symmetrically affected, enabling local file reads outside the recipe directory.

Resolution

The fix introduces an Assert::pathDoesNotEscapeDirectory() helper that rejects any copy-files source or destination path containing a .. segment, regardless of whether / or \ is used as the separator. This check is enforced in both RecipeManifest (which also guards the source Finder) and File. As a last line of defense, the installer re-verifies the fully resolved paths with Path::isBasePath() immediately before each filesystem read and write.

Credits

Symfony would like to thank Pascal Cescon for reporting the issue and Hugo Alliaume for providing the fix.

Executive ViewAI

Why It Matters

Symfony UX Toolkit's ux:install console command contains a path-traversal vulnerability enabling arbitrary code execution on developer workstations and CI/CD systems through malicious or compromised recipe kits. This represents a critical supply chain risk that could allow attackers to inject malicious code into production applications.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Execute ux:install only in sandboxed, containerized, or air-gapped environments; (2) Implement whitelist-only approach for recipe kit sources with cryptographic verification; (3) Enable file integrity monitoring on all systems where ux:install may run; (4) Restrict network access during recipe installation; (5) Prohibit use of externally-sourced or untrusted recipe kits; (6) Maintain incident response readiness for developer environment compromise.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:composer/symfony_ux-toolkit
pkg:composer/symfony_ux-toolkit

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy