Symfonyの脆弱性、DATA:の大文字指定で任意のサーバーファイルを読まれるおそれ
Summary
Symfonyのシリアライザー部品DataUriNormalizerに、scheme部分が大文字のDATA:で始まる値を、ローカルファイルとして開いてしまう脆弱性が見つかりました。細工した1回のリクエストで、アプリケーションが読める任意のサーバー上のファイルを読まれるおそれがあります。影響するのは5.4.56より前、6.4.50より前、7.4.23より前、8.1.11より前の各版で、修正版はそれぞれ5.4.56、6.4.50、7.4.23、8.1.11です。公開のエンドポイントで信頼できない入力を処理しているなら、早めに修正版へ更新してください。
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のシリアライザー部品DataUriNormalizerに、scheme部分が大文字のDATA:で始まる値を、ローカルファイルとして開いてしまう脆弱性が見つかりました。細工した1回のリクエストで、アプリケーションが読める任意のサーバー上のファイルを読まれるおそれがあります。影響するのは5.4.56より前、6.4.50より前、7.4.23より前、8.1.11より前の各版で、修正版はそれぞれ5.4.56、6.4.50、7.4.23、8.1.11です。公開のエンドポイントで信頼できない入力を処理しているなら、早めに修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sensiolabssymfony |
< 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 |
5.4.56 6.4.50 7.4.23 8.1.11 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-121623 symfony Fix available
- Ubuntu UBUNTU-CVE-2026-121623 symfony No fixed version in this record
Original description The description as published by the source.
The Symfony Serializer component DataUriNormalizer::denormalize() matches the data: scheme with a case-sensitive regular expression, allowing a value with an uppercase scheme, such as DATA:,/../../../etc/passwd, to bypass it, resulting in Arbitrary Local File Read through Path Traversal in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.
A value whose scheme is not lowercase data: are treated as a local file path and opened instead of being decoded as inline data, so the resulting File, \SplFileInfo, or \SplFileObject points at a file on the server, which the application then handles as the uploaded content.
Any endpoint that deserializes untrusted input into one of these types is affected. FrameworkBundle registers DataUriNormalizer ahead of ObjectNormalizer by default. A single request with a crafted DATA: value is enough to read arbitrary local files that the application can access, with no authentication needed if the endpoint is public.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web packagist.org