Vulnerability Name:

CVE-2018-19789 (CCN-154485)

Assigned:2018-12-06
Published:2018-12-06
Updated:2019-05-10
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.
CVSS v3 Severity:5.3 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
4.6 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): None
Availibility (A): None
5.9 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N)
5.2 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): None
Availibility (A): None
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
5.4 Medium (CCN CVSS v2 Vector: AV:N/AC:H/Au:N/C:C/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): None
Availibility (A): None
Vulnerability Type:CWE-434
Vulnerability Consequences:Obtain Information
References:Source: MITRE
Type: CNA
CVE-2018-19789

Source: BID
Type: Third Party Advisory, VDB Entry
106249

Source: XF
Type: UNKNOWN
symfony-cve201819789-info-disc(154485)

Source: MLIST
Type: Mailing List, Third Party Advisory
[debian-lts-announce] 20190310 [SECURITY] [DLA 1707-1] symfony security update

Source: FEDORA
Type: Release Notes, Third Party Advisory
FEDORA-2018-66547a8c14

Source: FEDORA
Type: Release Notes, Third Party Advisory
FEDORA-2018-6edf04d9d6

Source: FEDORA
Type: Release Notes, Third Party Advisory
FEDORA-2018-8c06b6defd

Source: BUGTRAQ
Type: UNKNOWN
20190510 [SECURITY] [DSA 4441-1] symfony security update

Source: CCN
Type: Symfony blog, December 6, 2018
CVE-2018-19789: Disclosure of uploaded files full path

Source: CONFIRM
Type: Patch, Vendor Advisory
https://symfony.com/blog/cve-2018-19789-disclosure-of-uploaded-files-full-path

Source: DEBIAN
Type: UNKNOWN
DSA-4441

Vulnerable Configuration:Configuration 1:
  • cpe:/a:sensiolabs:symfony:*:*:*:*:*:*:*:* (Version >= 2.7.0 and < 2.7.50)
  • OR cpe:/a:sensiolabs:symfony:*:*:*:*:*:*:*:* (Version >= 2.8.0 and < 2.8.49)
  • OR cpe:/a:sensiolabs:symfony:*:*:*:*:*:*:*:* (Version >= 3.0.0 and < 3.4.20)
  • OR cpe:/a:sensiolabs:symfony:*:*:*:*:*:*:*:* (Version >= 4.0.0 and < 4.0.15)
  • OR cpe:/a:sensiolabs:symfony:*:*:*:*:*:*:*:* (Version >= 4.1.0 and < 4.1.9)
  • OR cpe:/a:sensiolabs:symfony:*:*:*:*:*:*:*:* (Version >= 4.2.0 and < 4.2.1)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:8.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.bionic:def:201819789000
    V
    CVE-2018-19789 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-12-18
    oval:com.ubuntu.bionic:def:2018197890000000
    V
    CVE-2018-19789 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-12-18
    oval:com.ubuntu.cosmic:def:201819789000
    V
    CVE-2018-19789 on Ubuntu 18.10 (cosmic) - medium.
    2018-12-18
    oval:com.ubuntu.xenial:def:2018197890000000
    V
    CVE-2018-19789 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-12-18
    oval:com.ubuntu.xenial:def:201819789000
    V
    CVE-2018-19789 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-12-18
    oval:com.ubuntu.disco:def:2018197890000000
    V
    CVE-2018-19789 on Ubuntu 19.04 (disco) - medium.
    2018-12-18
    oval:com.ubuntu.cosmic:def:2018197890000000
    V
    CVE-2018-19789 on Ubuntu 18.10 (cosmic) - medium.
    2018-12-18
    BACK
    sensiolabs symfony *
    sensiolabs symfony *
    sensiolabs symfony *
    sensiolabs symfony *
    sensiolabs symfony *
    sensiolabs symfony *
    debian debian linux 8.0