CVE-2018-19789
Symfony Path Disclosure
Also known as GHSA-x3cf-w64x-4cp2
Mitigation
- Upgrade symfony/symfony to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line).
- Upgrade symfony/form to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line).
Who should check
- Projects that depend on Packagist package symfony/symfony (>= 2.7.0, < 2.7.50)
- Projects that depend on Packagist package symfony/form (>= 2.7.0, < 2.7.50)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- symfony/symfony >= 2.7.0, < 2.7.50; symfony/form >= 2.7.0, < 2.7.50
- Fixed in
- 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 3.59% chance of exploitation in 30 days (percentile 90, 2026-11-26)
- CWE
- CWE-434
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist symfony/symfony | >= 2.7.0, < 2.7.50 | 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 | osv |
| Packagist symfony/form | >= 2.7.0, < 2.7.50 | 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-19789. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-19789.md Affected: symfony/symfony >= 2.7.0, < 2.7.50; symfony/form >= 2.7.0, < 2.7.50 Fixed in: 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 Steps: 1. Search this machine and project for symfony/symfony (Packagist), symfony/form (Packagist), n/a: 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.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/
- https://www.debian.org/security/2019/dsa-4441
- https://nvd.nist.gov/vuln/detail/CVE-2018-19789
Patches
Other
- http://www.securityfocus.com/bid/106249
- https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html
- https://seclists.org/bugtraq/2019/May/21
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/form/CVE-2018-19789.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2018-19789.yaml
- https://github.com/symfony/symfony
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ
- https://symfony.com/cve-2018-19789
- https://web.archive.org/web/20210124224817/http://www.securityfocus.com/bid/106249
FAQ
Is CVE-2018-19789 being exploited?
There is no confirmed exploitation: CVE-2018-19789 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.59% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-19789?
Medium: CVSS 5.3 (v3.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2018-19789?
symfony/symfony >= 2.7.0, < 2.7.50; symfony/form >= 2.7.0, < 2.7.50.
Is there a fix for CVE-2018-19789?
Yes. Fixed in 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1. Upgrade symfony/symfony to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line). Upgrade symfony/form to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line).
How do I check if I'm affected by CVE-2018-19789?
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.