CVE-2018-19789
Symfony Path Disclosure
Reported by mitre · Published December 18, 2018
An issue was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9, and 4.2.x before 4.2.1. When using the scalar type hint `string` in a setter method (e.g. `setName(string $name)`) of a class that's the `data_class` of a form, and when a file upload is submitted to the corresponding field instead of a normal text input, then `UploadedFile::__toString()` is called which will then return and disclose the path of the uploaded file. If combined with a local file inclusion issue in certain circumstances this could escalate it to a Remote Code Execution.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| symfony | symfony | 4.2.0, 2.7.38, 2.8.0 |
| symfony | form | 4.2.0, 2.7.38, 2.8.0 |
| n/a | n/a | * |
Timeline
- Dec 18, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Apr 7, 2026 Security Advisory (2 in total, the first dated here)
- Sep 22, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-19789
vulnetix vdb fixes CVE-2018-19789
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-19789/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2018-8c06b6defd vendor-advisoryx_refsource_FEDORA
- FEDORA-2018-66547a8c14 vendor-advisoryx_refsource_FEDORA
- 106249 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- [debian-lts-announce] 20190310 [SECURITY] [DLA 1707-1] symfony security update mailing-listx_refsource_MLIST
- FEDORA-2018-6edf04d9d6 vendor-advisoryx_refsource_FEDORA
- DSA-4441 vendor-advisoryx_refsource_DEBIAN
- 20190510 [SECURITY] [DSA 4441-1] symfony security update mailing-listx_refsource_BUGTRAQ
- https://symfony.com/cve-2018-19789 url