GHSA-x3cf-w64x-4cp2

    Dashboard / Vulnerabilities / GHSA-x3cf-w64x-4cp2

    GHSA-x3cf-w64x-4cp2

    Published: 14 May 2022Last Modified: 16 Feb 2024

    Summary: Symfony Path Disclosure

    Details: 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.

    Affected packages

    Package

    Name: symfony/symfony

    Purl: pkg:composer/symfony/symfony

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 2.7.0
    Fixed -2.7.50

    Affected versions

    v2.7.0
    v2.7.1
    v2.7.10
    v2.7.11
    v2.7.12
    v2.7.13
    v2.7.14
    v2.7.15
    v2.7.16
    v2.7.17
    v2.7.18
    v2.7.19
    v2.7.2
    v2.7.20
    v2.7.21
    v2.7.22
    v2.7.23
    v2.7.24
    v2.7.25
    v2.7.26
    v2.7.27
    v2.7.28
    v2.7.29
    v2.7.3
    v2.7.30
    v2.7.31
    v2.7.32
    v2.7.33
    v2.7.34
    v2.7.35
    v2.7.36
    v2.7.37
    v2.7.38
    v2.7.39
    v2.7.4
    v2.7.40
    v2.7.41
    v2.7.42
    v2.7.43
    v2.7.44
    v2.7.45
    v2.7.46
    v2.7.47
    v2.7.48
    v2.7.49
    v2.7.5
    v2.7.6
    v2.7.7
    v2.7.8
    v2.7.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-x3cf-w64x-4cp2 | CVE-DB