Skip to content
A detailed explainer is available in Japanese. Read the Japanese explainer
Critical 9.1

Symfony Filesystemのパス検査回避の脆弱性、修正版あり

CVE-2026-135803 First seen on SecPulse

Summary

Symfonyのsymfony/filesystemに、パス検査をすり抜けて想定外の場所のファイルを読み書きされる脆弱性が見つかり、修正版が出ています。Symfonyを使うPHPアプリの担当者は、Composerで版を確認して更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Symfonyのsymfony/filesystemに、パス検査をすり抜けて想定外の場所のファイルを読み書きされる脆弱性が見つかり、修正版が出ています。Symfonyを使うPHPアプリの担当者は、Composerで版を確認して更新してください。

Affected packages

PackageAffected → Fixed
Symfonysymfony/filesystem
≥ 5.4.0, < 5.4.56→ 5.4.56
≥ 6.0.0, < 6.4.50→ 6.4.50
≥ 7.0.0, < 7.4.23→ 7.4.23
≥ 8.0.0, < 8.1.11→ 8.1.11
Symfonysymfony/symfony
≥ 5.4.0, < 5.4.56→ 5.4.56
≥ 6.0.0, < 6.4.50→ 6.4.50
≥ 7.0.0, < 7.4.23→ 7.4.23
≥ 8.0.0, < 8.1.11→ 8.1.11

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details