CVE-2018-19789
No exploitation reported by the sources we read.
- Published2018-12-18
- Fixed in4.2.1 · 4.1.9 · 4.0.15 · 3.4.20 · 2.8.49 · 2.7.50
- WeaknessCWE-434
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2018-12-1822:29CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-10-23 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2018-19789?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2018-19789?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.2 | ≥ 4.2.0, < 4.2.1 | 4.2.1 | NVD · OSV |
| 4.1 | ≥ 4.1.0, < 4.1.9 | 4.1.9 | NVD · OSV |
| 4.0 | ≥ 4.0.0, < 4.0.15 | 4.0.15 | NVD · OSV |
| 3.x | ≥ 3.0.0, < 3.4.20 | 3.4.20 | NVD · OSV |
| 2.8 | ≥ 2.8.0, < 2.8.49 | 2.8.49 | NVD · OSV |
| 2.7 | ≥ 2.7.0, < 2.7.50 | 2.7.50 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.0 | = 8.0 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Fix
- Update Symfony to 4.2.1 · 4.1.9 · 4.0.15 · 3.4.20 · 2.8.49 · 2.7.50
Advisories and patches
- symfony.comPatch · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- none listed PoC-in-GitHub
Sources
- NVDCVSS 3.05.3read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-434read 2026-10-23
- FIRST EPSSEPSS score3.6 %2026-10-23
- OSVaffected packages—
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Published
- 2018-12-18
- Last Modified
- 2026-06-17
- NVD status
- Modified
Frequently asked questions
What is CVE-2018-19789?
Is CVE-2018-19789 actively exploited?
What is the CVSS score for CVE-2018-19789?
Running symfony/form? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.