# CVE-2026-118515: Symfony: The Serializer Builds UploadedFile Objects From Request Data, Letting a Client Point an Upload at Any Server File

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: Low; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.51% (percentile 36, 2026-11-28)
- **CWE:** CWE-73
- **Published:** 2026-11-06T16:17:01.487Z
- **Modified:** 2026-11-11T05:19:27.757Z

## Who should check

- Anyone running sensiolabs symfony \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11

## Description

The Symfony Serializer component DataUriNormalizer handles only the exact types SplFileInfo, SplFileObject, and File, so for a property typed with a subclass such as UploadedFile, ObjectNormalizer instantiates the object through its constructor from attacker-controlled data, including the file path. This allows an arbitrary file on the server to be treated as an uploaded file in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.

A request body such as {"image": {"path": "/path/to/project/.env.local", "originalName": "a.png", "test": true}} makes the application handle any file on the server as an upload, without the file being sent. With test: true, UploadedFile::isValid() skips is\_uploaded\_file() and move() falls back to rename(). Assert\\File does not prevent this because it validates the file at the attacker-chosen path, which exists on the server.
Any code that deserializes untrusted data into a type that holds such a property is affected. That includes \#\[MapRequestPayload\] on a DTO with an UploadedFile property, which is how uploads are mapped in Symfony 8.1; a single unauthenticated request with a JSON or form body is enough. Depending on what the application does with the upload, this can expose any file readable by PHP (for instance, when uploads are stored and served back), move any such file when move() is called, and reveal whether a path exists.

A serializer built without DataUriNormalizer ahead of the object normalizer is not protected by the fix; the serializer configured by FrameworkBundle is.

## Affected and fixed versions

- sensiolabs symfony: \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11 (cvelist)

## Mitigation

- Upgrade symfony to 8.1.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-118515. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-118515.md
Affected: sensiolabs symfony < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11
Fixed in: sensiolabs symfony 5.4.56, sensiolabs symfony 6.4.50, sensiolabs symfony 7.4.23, sensiolabs symfony 8.1.11

Steps:
1. Search this machine and project for sensiolabs symfony: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-118515 being exploited?

There is no confirmed exploitation: CVE-2026-118515 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.51% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-118515?

High: CVSS 8.4 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-118515?

sensiolabs symfony \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11.

### Is there a fix for CVE-2026-118515?

Yes. Fixed in sensiolabs symfony 5.4.56, sensiolabs symfony 6.4.50, sensiolabs symfony 7.4.23, sensiolabs symfony 8.1.11. Upgrade symfony to 8.1.11 or later.

### How do I check if I'm affected by CVE-2026-118515?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/symfony/symfony/security/advisories/GHSA-h38r-xrmh-cwhr>
- patch: <https://github.com/symfony/symfony/commit/72ece5bb3084e8233325166357f85c8c0650ee86>
- patch: <https://github.com/symfony/symfony/commit/c459104eb18ebda31e112c5490970da3f30bd668>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-118515>

HTML: <https://flawdb.com/CVE-2026-118515> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-118515>
