Home › Vulnerabilities › Symfony
Symfony serializer flaws allow server file access via data URIs and writes through property paths
Two vulnerabilities in the symfony/serializer package, published together on 2026-12-01, affect applications that bind untrusted input to objects. The more serious one, CVE-2026-118515, is rated HIGH and can let a request reach files on the server through an UploadedFile property.
What to look into
- 2 vulnerabilities in composer:symfony/serializer: 1 high, 1 medium (CVSS up to 8.4).
- None of them is known to be exploited yet.
- Start with CVE-2026-118515 (8.4 high): 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 o… An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- 2 of 2 can be attacked over the network without logging in, 2 of them without anyone clicking anything.
- Kinds of flaws: External Control of File Name or Path; Improperly Controlled Modification of Dynamically-Determined Object Attributes.
Key points
- CVE-2026-118515 (HIGH, CVSS 8.4): data URI handling for UploadedFile can expose server files without a real upload.
- CVE-2026-122053 (MEDIUM, CVSS 6.9): dotted or bracketed keys can write nested properties, bypassing #[Ignore].
- Both flaws affect code that maps untrusted request data into objects, including #[MapRequestPayload] use.
- The sources give no fixed version, workaround or exploitation details.
Overview
GitHub Advisory published two flaws in composer:symfony/serializer on 2026-12-01. Both concern how untrusted input is turned into PHP objects.
Data URI handling (CVE-2026-118515)
This issue is rated HIGH with a CVSS score of 8.4. DataUriNormalizer builds file objects from data URIs only for the exact types SplFileInfo, SplFileObject and File. A property typed with a subclass, such as UploadedFile, is handled by ObjectNormalizer instead, which constructs the object from the supplied data, including path, original name and the test flag.
According to the advisory, with #[MapRequestPayload] and a DTO holding an UploadedFile property, a request needs no upload at all to make the application handle any file the server can read. The same applies to form bodies and to any code that deserializes untrusted data into such a type, on every maintained branch. Depending on what the application does with the file, this could expose readable files, move them when move() is called, or reveal whether a path exists. The advisory says Assert\File does not prevent this.
Property path writes (CVE-2026-122053)
Rated MEDIUM with a CVSS score of 6.9, this flaw involves ObjectNormalizer treating attribute names containing a dot, and from 6.4 also an opening bracket, as writable property paths. A key such as customer.admin can therefore write to a nested property while bypassing #[Ignore] on the nested class. If the root class has neither #[Ignore] nor #[Groups], every key in the payload is accepted. The advisory notes that #[Groups] is not bypassed, because the path is only accepted when no groups are passed in the context.
Applications that bind untrusted input with #[MapRequestPayload] or #[MapQueryString] are affected, since ObjectNormalizer is their default normalizer.
What the records do not state
The sources do not name a fixed version or a workaround, and they do not describe any known exploitation.
What to do
- Find DTOs and form types that include UploadedFile or other file-typed properties that receive request data.
- Review payload binding on root classes that lack #[Ignore] and #[Groups], since they accept every key.
- Check the advisories for a patched release, because the records here do not name one.
The 2 vulnerabilities
- CVE-2026-118515 8.4 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 O…
- CVE-2026-122053 6.9 Description ObjectNormalizer::isAllowedAttribute() treats any attribute name containing . (and, from 6.4, [) as writable, and setAttributeValue() hands the name straight to PropertyAccessor::setValue(), which parses it as a property path a…
Frequently asked questions
How many composer:symfony/serializer vulnerabilities were published on December 1, 2026?
2 vulnerabilities: 1 high, 1 medium, with CVSS scores up to 8.4.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-118515 (CVSS 8.4): 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 o…