Summary
CVE-2026-118515 is a high-severity (CVSS 8.4) improper file path control vulnerability (CWE-73) in the Symfony Serializer component. The DataUriNormalizer does not properly restrict handling of UploadedFile objects and their subclasses, so an unauthenticated remote attacker can make the application treat arbitrary server files as uploads without uploading anything.
Technical details
- Root cause:
DataUriNormalizerimproperly handlesUploadedFileand its subclasses during denormalization. It accepts attacker-supplied file path data. - Trigger conditions: the application uses
#[MapRequestPayload]with a DTO that hasUploadedFileproperties. The advisory’s example payload is{"name": "x", "image": {"path": "/path/to/project/.env.local", "originalName": "a.png", "test": true}}. - Attack vector: network, with no authentication or user interaction required.
- Impact: disclosure of sensitive server files, such as
.env.local. The advisory also notes possible file manipulation, with integrity and availability implications.
Affected software
- Symfony (
symfony/symfonyandsymfony/serializer) before 5.4.56 - 6.0.0 up to but not including 6.4.50
- 7.0.0 up to but not including 7.4.23
- 8.0.0 up to but not including 8.1.11
Severity
CVSS score 8.4 (High). The published vector is CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N. This is a CVSS v4.0 vector, not v3.1. No v3.1 vector was found in the sources reviewed.
Mitigation and recommended actions
- Immediate: upgrade to Symfony 5.4.56, 6.4.50, 7.4.23 or 8.1.11 (or later), depending on your release branch. The patched
DataUriNormalizervalidates file inputs and rejects malicious data with exceptions. - If you cannot patch immediately: review endpoints that bind request payloads to DTOs containing
UploadedFileproperties. Restrict access to them where possible. No official workaround was found in the sources reviewed.

