sadrobot

← Vissza a havi listához · Symfony →

CVE-2026-135803 Symfony · symfony/filesystem

9.1 Kritikus

MI-összefoglaló

A symfony/filesystem Path osztálya (isBasePath(), canonicalize(), join() stb.) hibásan kezeli a :// előtti előtagot, így felhasználói bemenetből képzett útvonalakkal a várt könyvtáron kívüli fájlok olvashatók vagy írhatók; Symfony 6.4+ AssetMapper esetén rosszindulatú csomag tetszőleges helyre írhat fájlt az importmap:require/install során. Kritikus (CVSS 9.1), mielőbb telepítse a javított verziót.

Hivatalos leírás

Most methods of Symfony\Component\Filesystem\Path rely on Path::split(), which takes everything before the first :// as the root of a path. It doesn't check that this prefix is a URI scheme, so the .. segments in that prefix are never resolved. PHP sees a scheme only at the start of a string. So /base/../x://../secret.txt is a plain local path to /secret.txt for PHP, while Path::isBasePath('/base', '/base/../x://../secret.txt') returns true. canonicalize(), join(), makeAbsolute() and makeRelative() are affected the same way. Some applications check a path built from user input with isBasePath() or canonicalize(), and then open it. They can be made to read or write files outside the expected directory. On Symfony 6.4 and later, the AssetMapper component builds with Path::join() the path of the files that a remote package references from its CSS. A malicious or compromised package can therefore make importmap:require or importmap:install write a file of its choice outside assets/vendor. For example, the CSS url(../../../../../public/x://shell.php) writes public/x:/shell.php. A prefix is now a scheme only when PHP would look for a stream wrapper with that name. That is two or more letters, digits, +, - or ., followed by :// at the start of the path. Other prefixes are regular path segments, and the .. segments after them are resolved. Real schemes such as phar://, file://, vfs:// or compress.zlib:// keep working.

Megjelent
2026-11-24 09:17 UTC
Módosítva
2026-11-25 20:18 UTC
CVSS
9.1 Kritikus CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.30% (percentilis 15)
ENISA EUVD
EUVD-2026-133736
CISA SSVC
Kihasználás: none · Automatizálható: no · Technikai hatás: total
CWE
CWE-22

CVSS-vektor

Támadási útvonal
hálózatról
Bonyolultság
alacsony
Szükséges jogosultság
nem kell
Felhasználói közreműködés
nem kell
Hatókör
változatlan
Bizalmasság
magas
Sértetlenség
magas
Rendelkezésre állás
nincs

Hivatkozások