CVE-2018-19789 json
Symfony Path Disclosure
published 7y ago modified 4mo ago also GHSA-x3cf-w64x-4cp2 , EUVD-2022-5696
- cvss
- 5.3
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
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.
Patch / fix
- packagist symfony/symfony 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
- packagist symfony/form 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
- sensiolabs symfony 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
- symfony Debian 14, Debian 13, Debian 12 3.4.20+dfsg-1
debian advisories DEBIAN-CVE-2018-19789
Is CVE-2018-19789 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-19789 updated
php-symfony: Multiple vulnerabilities fixed in symfony 2.8.7
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.59% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | symfony/symfony | >=2.7.0, <2.7.50 >=2.8.0, <2.8.49 >=3.0.0, <3.4.20 >=4.0.0, <4.0.15 >=4.1.0, <4.1.9 >=4.2.0, <4.2.1 |
2.7.50 2.8.49 3.4.20 4.0.15 4.1.9 4.2.1 |
| packagist | symfony/form | >=2.7.0, <2.7.50 >=2.8.0, <2.8.49 >=3.0.0, <3.4.20 >=4.0.0, <4.0.15 >=4.1.0, <4.1.9 >=4.2.0, <4.2.1 |
2.7.50 2.8.49 3.4.20 4.0.15 4.1.9 4.2.1 |
Classification
- Weakness
-
- CWE-434 Unrestricted Upload of File with Dangerous Type
References
-
symfony.com
/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path
web, patch, vendor-advisory
-
github.com
/symfony/symfony/commit/b65e6f1a47b68f2713b60cdac9cc3a4af62a2d1c
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/
vendor-advisory
-
debian.org
/security/2019/dsa-4441
vendor-advisory, web
-
securityfocus.com
/bid/106249
vdb-entry, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/03/msg00009.html
mailing-list, web, third-party-advisory
-
seclists.org
/bugtraq/2019/May/21
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2018-19789
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/symfony/form/CVE-2018-19789.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2018-19789.yaml
web
-
github.com
/symfony/symfony
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ
web
-
symfony.com
/cve-2018-19789
web
-
web.archive.org
/web/20210124224817/http://www.securityfocus.com/bid/106249
web
Sources
- CVE List CVE-2018-19789
- GitHub Advisory GHSA-x3cf-w64x-4cp2
- NVD CVE-2018-19789
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.