Summary
CVE-2026-121623 is a path traversal vulnerability (CWE-22 / CWE-73) in the Symfony Serializer component’s DataUriNormalizer. A remote client can make the server read arbitrary local files. The CVSS v4.0 base score is 8.2 (High).
Technical details
- Root cause:
DataUriNormalizer::denormalize()accepts a data URI whose scheme is not lowercase, such asDATA:orData:. PHP only uses itsdata:stream wrapper when the scheme is lowercase. For any other case, PHP opens the string as a relative local path and resolves..segments, even through directories that don’t exist. - Trigger conditions: Client-supplied data is deserialized into a type handled by
DataUriNormalizer, for example\SplFileObject. On Symfony 6.4 and later, this includes#[MapRequestPayload]DTOs with such a property. FrameworkBundle registersDataUriNormalizerby default. - Attack vector: Network, unauthenticated. The attacker sends a crafted value such as
DATA:,/../../../../../../../../../../etc/hostname. - Impact: Disclosure of the contents of any file readable by the web server process (confidentiality). The advisory reports no integrity or availability impact.
Affected software
- symfony/serializer (and symfony/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
Severity
- CVSS v4.0 base score 8.2 (High):
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - The CVE record provides a CVSS v4.0 score. No v3.1 score was found.
Mitigation and recommended actions
- Immediate: Upgrade symfony/symfony or symfony/serializer to 5.4.56, 6.4.50, 7.4.23 or 8.1.11 (or later in the same branch). The fix lowercases the scheme before the URI is opened.
- If you cannot patch right away: Avoid deserializing untrusted client input into types handled by
DataUriNormalizer(such as\SplFileObject). Review DTOs used with#[MapRequestPayload]for such properties. - Exposed asset detection only shows that Symfony is present. Confirm the installed serializer version and whether endpoints deserialize into the affected types.

