Symfony up to 4.2.0 UploadedFile::__toString unrestricted upload
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.2 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in Symfony up to 4.2.0 and classified as problematic. Impacted is the function UploadedFile::__toString. This manipulation causes unrestricted upload.
The identification of this vulnerability is CVE-2018-19789. The attack can only be executed locally. There is no exploit available.
The affected component should be upgraded.
Details
A vulnerability classified as problematic was found in Symfony up to 4.2.0. Affected by this vulnerability is the function UploadedFile::__toString. The manipulation with an unknown input leads to a unrestricted upload vulnerability. The CWE definition for the vulnerability is CWE-434. The product allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment. As an impact it is known to affect confidentiality. The summary by CVE is:
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.
The bug was discovered 12/06/2018. The weakness was shared 12/18/2018 (Website). The advisory is shared at lists.fedoraproject.org. This vulnerability is known as CVE-2018-19789 since 12/02/2018. An attack has to be approached locally. A single authentication is necessary for exploitation. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1608.002 for this issue.
The vulnerability was handled as a non-public zero-day exploit for at least 11 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 120596 (Fedora 28 : php-symfony (2018-8c06b6defd)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 176648 (Debian Security Update for symfony (DLA 1707-1)).
Upgrading to version 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9 or 4.2.1 eliminates this vulnerability. A possible mitigation has been published before and not just after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (120596) and SecurityFocus (BID 106249†). The entries VDB-122590, VDB-122652 and VDB-128090 are related to this item. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Name
Version
- 2.7.0
- 2.7.1
- 2.7.2
- 2.7.3
- 2.7.4
- 2.7.5
- 2.7.6
- 2.7.7
- 2.7.8
- 2.7.9
- 2.7.10
- 2.7.11
- 2.7.12
- 2.7.13
- 2.7.14
- 2.7.15
- 2.7.16
- 2.7.17
- 2.7.18
- 2.7.19
- 2.7.20
- 2.7.21
- 2.7.22
- 2.7.23
- 2.7.24
- 2.7.25
- 2.7.26
- 2.7.27
- 2.7.28
- 2.7.29
- 2.7.30
- 2.7.31
- 2.7.32
- 2.7.33
- 2.7.34
- 2.7.35
- 2.7.36
- 2.7.37
- 2.7.38
- 2.7.39
- 2.7.40
- 2.7.41
- 2.7.42
- 2.7.43
- 2.7.44
- 2.7.45
- 2.7.46
- 2.7.47
- 2.7.48
- 2.7.49
- 2.8.0
- 2.8.1
- 2.8.2
- 2.8.3
- 2.8.4
- 2.8.5
- 2.8.6
- 2.8.7
- 2.8.8
- 2.8.9
- 2.8.10
- 2.8.11
- 2.8.12
- 2.8.13
- 2.8.14
- 2.8.15
- 2.8.16
- 2.8.17
- 2.8.18
- 2.8.19
- 2.8.20
- 2.8.21
- 2.8.22
- 2.8.23
- 2.8.24
- 2.8.25
- 2.8.26
- 2.8.27
- 2.8.28
- 2.8.29
- 2.8.30
- 2.8.31
- 2.8.32
- 2.8.33
- 2.8.34
- 2.8.35
- 2.8.36
- 2.8.37
- 2.8.38
- 2.8.39
- 2.8.40
- 2.8.41
- 2.8.42
- 2.8.43
- 2.8.44
- 2.8.45
- 2.8.46
- 2.8.47
- 2.8.48
- 3.4.0
- 3.4.1
- 3.4.2
- 3.4.3
- 3.4.4
- 3.4.5
- 3.4.6
- 3.4.7
- 3.4.8
- 3.4.9
- 3.4.10
- 3.4.11
- 3.4.12
- 3.4.13
- 3.4.14
- 3.4.15
- 3.4.16
- 3.4.17
- 3.4.18
- 3.4.19
- 4.0
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.0.8
- 4.0.9
- 4.0.10
- 4.0.11
- 4.0.12
- 4.0.13
- 4.0.14
- 4.1
- 4.1.0
- 4.1.1
- 4.1.2
- 4.1.3
- 4.1.4
- 4.1.5
- 4.1.6
- 4.1.7
- 4.1.8
- 4.2.0
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.3VulDB Meta Temp Score: 4.2
VulDB Base Score: 3.3
VulDB Temp Score: 3.2
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 5.3
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Unrestricted uploadCWE: CWE-434 / CWE-284 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 120596
Nessus Name: Fedora 28 : php-symfony (2018-8c06b6defd)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Symfony 2.7.50/2.8.49/3.4.20/4.0.15/4.1.9/4.2.1
Timeline
12/02/2018 🔍12/06/2018 🔍
12/17/2018 🔍
12/18/2018 🔍
12/18/2018 🔍
12/19/2018 🔍
12/19/2018 🔍
01/03/2019 🔍
06/19/2023 🔍
Sources
Advisory: FEDORA-2018-8c06b6defdStatus: Confirmed
Confirmation: 🔍
CVE: CVE-2018-19789 (🔍)
GCVE (CVE): GCVE-0-2018-19789
GCVE (VulDB): GCVE-100-128089
SecurityFocus: 106249 - Symfony Local File Include and Open Redirection Vulnerabilities
See also: 🔍
Entry
Created: 12/19/2018 07:44Updated: 06/19/2023 18:03
Changes: 12/19/2018 07:44 (74), 04/21/2020 18:38 (4), 06/19/2023 17:55 (4), 06/19/2023 18:03 (1)
Complete: 🔍
Cache ID: 216::103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.