An issue was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-434.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | symfony/symfony (Packagist) | 2.7.0 to before 2.7.50 | 2.7.50 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/symfony (Packagist) | 2.8.0 to before 2.8.49 | 2.8.49 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/symfony (Packagist) | 3.0.0 to before 3.4.20 | 3.4.20 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/symfony (Packagist) | 4.0.0 to before 4.0.15 | 4.0.15 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/symfony (Packagist) | 4.1.0 to before 4.1.9 | 4.1.9 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/symfony (Packagist) | 4.2.0 to before 4.2.1 | 4.2.1 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/form (Packagist) | 2.7.0 to before 2.7.50 | 2.7.50 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/form (Packagist) | 2.8.0 to before 2.8.49 | 2.8.49 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/form (Packagist) | 3.0.0 to before 3.4.20 | 3.4.20 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/form (Packagist) | 4.0.0 to before 4.0.15 | 4.0.15 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/form (Packagist) | 4.1.0 to before 4.1.9 | 4.1.9 | Patch available | GHSA-x3cf-w64x-4cp2 |
| — | symfony/form (Packagist) | 4.2.0 to before 4.2.1 | 4.2.1 | Patch available | GHSA-x3cf-w64x-4cp2 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- symfony/symfony (Packagist) Vendor— Affected 2.7.0 to before 2.7.50 Fixed in 2.7.50 Patch available GHSA-x3cf-w64x-4cp2
- symfony/symfony (Packagist) Vendor— Affected 2.8.0 to before 2.8.49 Fixed in 2.8.49 Patch available GHSA-x3cf-w64x-4cp2
- symfony/symfony (Packagist) Vendor— Affected 3.0.0 to before 3.4.20 Fixed in 3.4.20 Patch available GHSA-x3cf-w64x-4cp2
- symfony/symfony (Packagist) Vendor— Affected 4.0.0 to before 4.0.15 Fixed in 4.0.15 Patch available GHSA-x3cf-w64x-4cp2
- symfony/symfony (Packagist) Vendor— Affected 4.1.0 to before 4.1.9 Fixed in 4.1.9 Patch available GHSA-x3cf-w64x-4cp2
- symfony/symfony (Packagist) Vendor— Affected 4.2.0 to before 4.2.1 Fixed in 4.2.1 Patch available GHSA-x3cf-w64x-4cp2
- symfony/form (Packagist) Vendor— Affected 2.7.0 to before 2.7.50 Fixed in 2.7.50 Patch available GHSA-x3cf-w64x-4cp2
- symfony/form (Packagist) Vendor— Affected 2.8.0 to before 2.8.49 Fixed in 2.8.49 Patch available GHSA-x3cf-w64x-4cp2
- symfony/form (Packagist) Vendor— Affected 3.0.0 to before 3.4.20 Fixed in 3.4.20 Patch available GHSA-x3cf-w64x-4cp2
- symfony/form (Packagist) Vendor— Affected 4.0.0 to before 4.0.15 Fixed in 4.0.15 Patch available GHSA-x3cf-w64x-4cp2
- symfony/form (Packagist) Vendor— Affected 4.1.0 to before 4.1.9 Fixed in 4.1.9 Patch available GHSA-x3cf-w64x-4cp2
- symfony/form (Packagist) Vendor— Affected 4.2.0 to before 4.2.1 Fixed in 4.2.1 Patch available GHSA-x3cf-w64x-4cp2
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* | 2.7.0 to before 2.7.50; 2.8.0 to before 2.8.49; 3.0.0 to before 3.4.20; 4.0.0 to before 4.0.15; 4.1.0 to before 4.1.9; 4.2.0 to before 4.2.1 | Vulnerable | sensiolabs |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
- cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* Versions 2.7.0 to before 2.7.50; 2.8.0 to before 2.8.49; 3.0.0 to before 3.4.20; 4.0.0 to before 4.0.15; 4.1.0 to before 4.1.9; 4.2.0 to before 4.2.1 Vulnerable ·sensiolabs
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-x3cf-w64x-4cp2 symfony/symfony (Packagist) Fixed in 2.7.50 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/symfony (Packagist) Fixed in 2.8.49 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/symfony (Packagist) Fixed in 3.4.20 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/symfony (Packagist) Fixed in 4.0.15 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/symfony (Packagist) Fixed in 4.1.9 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/symfony (Packagist) Fixed in 4.2.1 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/form (Packagist) Fixed in 2.7.50 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/form (Packagist) Fixed in 2.8.49 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/form (Packagist) Fixed in 3.4.20 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/form (Packagist) Fixed in 4.0.15 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/form (Packagist) Fixed in 4.1.9 Advisory →
- Fix · GHSA-x3cf-w64x-4cp2 symfony/form (Packagist) Fixed in 4.2.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2018-19789
- 2026-10-03 Alias added: GHSA-x3cf-w64x-4cp2
References
Advisory 6
Other 10
- 20190510 [SECURITY] [DSA 4441-1] symfony security update
- https://github.com/symfony/symfony/commit/b65e6f1a47b68f2713b60cdac9cc3a4af62a2d1c
- 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/[email protected]/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE
- https://lists.fedoraproject.org/archives/list/[email protected]/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ
- https://symfony.com/cve-2018-19789
- https://web.archive.org/web/20210124224817/http://www.securityfocus.com/bid/106249
Sources
- CVE-2018-19789 · CVE Program
- CVE-2018-19789 · NVD
- FIRST EPSS
- GHSA-x3cf-w64x-4cp2 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-19789 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences