Skip to content
High 8.4

Symfonyの脆弱性により、サーバー上の任意のファイルをアップロード扱いされるおそれ

CVE-2026-118515 First seen on SecPulse

Summary

Symfonyのシリアライザーに脆弱性があり、リクエストで指定したサーバー上の任意のファイルがアップロードされたファイルとして扱われるおそれがあります。影響を受けるのは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のシリアライザーに脆弱性があり、リクエストで指定したサーバー上の任意のファイルがアップロードされたファイルとして扱われるおそれがあります。影響を受けるのは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

PackageAffected → 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
composersymfony/serializer
< 8.1.11→ 8.1.11
composersymfony/symfony
< 8.1.11→ 8.1.11
Packagistsymfony/serializer
≥ 8.0.0, < 8.1.11→ 8.1.11
Packagistsymfony/symfony
≥ 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.

Description

DataUriNormalizer builds \SplFileInfo, \SplFileObject and Symfony\Component\HttpFoundation\File\File objects from data URIs, for those exact types only. A property typed with a subclass of them, like UploadedFile, was left to ObjectNormalizer, which instantiated it through its constructor from the denormalized data, path, original name and test flag included. With #[MapRequestPayload] and a DTO holding an UploadedFile property, which is how uploads are mapped in Symfony 8.1, a request needs no upload at all to make the application handle any file of the server as one:

{"name": "x", "image": {"path": "/path/to/project/.env.local", "originalName": "a.png", "test": true}}

The same works with a form body, and with any code that deserializes untrusted data into a type holding such a property, on every maintained branch. test: true makes UploadedFile::isValid() skip is_uploaded_file() and move() fall back to rename(); code that reads the file without calling isValid() does not even need it. Depending on what the application does with the upload, this exposes any file readable by PHP, for instance when uploads are stored and served back, moves any such file when move() is called as the upload documentation shows, and reveals whether a path exists. Assert\File does not prevent it, since it validates the real server file.

Resolution

DataUriNormalizer now handles every subclass of \SplFileInfo as well: it passes…

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