home / blog
2026-12-02 · high
CVE-2026-118515: Symfony Serializer arbitrary file access
CVE-2026-118515: High-risk Symfony Serializer allows server-side file access.

CVE-2026-118515 affects the Symfony Serializer DataUriNormalizer component, which doesn't properly handle file subclasses like UploadedFile. An attacker can manipulate file paths through JSON or form requests, allowing any server file to be treated as an upload without the file being actually sent. This can lead to exposure of sensitive files like .env.local or manipulation of existing files.
The severity is classified as high with a CVSS score of 8.4. The vulnerability is officially confirmed on NVD, and signals indicate public exploits are available on GitHub repositories. The vulnerability is particularly critical as it can be exploited with a single unauthenticated request on applications using #[MapRequestPayload] with UploadedFile properties.
For defense, it is crucial to immediately apply patches by updating to Symfony 5.4.56 or later, 6.4.50+, 7.4.23+, or 8.1.11+. If immediate updating isn't possible, the vulnerability can be mitigated by configuring the serializer without DataUriNormalizer before ObjectNormalizer. A code review is also recommended to check if deserialization of untrusted data involves UploadedFile-typed properties.
At a glance
- What
- Vulnerability in Symfony Serializer's DataUriNormalizer that allows manipulation of uploaded files.
- Severity
- High (CVSS 8.4)
- Affected versions
- Symfony 5.x before 5.4.56, 6.x before 6.4.50, 7.x before 7.4.23, 8.x before 8.1.11
- Fix
- Update to appropriate patched version or configure serializer without DataUriNormalizer before ObjectNormalizer
- Status
- Officially published on NVD on 2026-11-06
- Action
- Apply patches immediately or implement mitigations
Sources: NVD, CVE-2026-118515