National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2018-19789 Detail

Current 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.

Source:  MITRE
View Analysis Description

Impact

CVSS v3.0 Severity and Metrics:

Base Score: 5.3 MEDIUM
Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (V3.0 legend)
Impact Score: 1.4
Exploitability Score: 3.9


Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope (S): Unchanged
Confidentiality (C): Low
Integrity (I): None
Availability (A): None

CVSS v2.0 Severity and Metrics:

Base Score: 5.0 MEDIUM
Vector: (AV:N/AC:L/Au:N/C:P/I:N/A:N) (V2 legend)
Impact Subscore: 2.9
Exploitability Subscore: 10.0


Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (AU): None
Confidentiality (C): Partial
Integrity (I): None
Availability (A): None
Additional Information:
Allows unauthorized disclosure of information

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://www.securityfocus.com/bid/106249 Third Party Advisory VDB Entry
https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7/ Release Notes Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE/ Release Notes Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ/ Release Notes Third Party Advisory
https://seclists.org/bugtraq/2019/May/21
https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path Patch Vendor Advisory
https://www.debian.org/security/2019/dsa-4441

Technical Details

Vulnerability Type (View All)

  • Unrestricted Upload of File with Dangerous Type (CWE-434)

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
2.7.0
Up to (excluding)
2.7.50
 cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
2.8.0
Up to (excluding)
2.8.49
 cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
3.0.0
Up to (excluding)
3.4.20
 cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
4.0.0
Up to (excluding)
4.0.15
 cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
4.1.0
Up to (excluding)
4.1.9
 cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
4.2.0
Up to (excluding)
4.2.1

Configuration 2 ( hide )
 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
     Show Matching CPE(s)


Change History

6 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2018-19789
NVD Published Date:
12/18/2018
NVD Last Modified:
05/10/2019