GHSA-7w4p-72j7-v7c2

    Dashboard / Vulnerabilities / GHSA-7w4p-72j7-v7c2

    GHSA-7w4p-72j7-v7c2

    Published: 5 Mar 2020Last Modified: 21 Feb 2024

    Summary: Phar object injection in PHPMailer

    Details: PHPMailer versions prior to 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing phar:// paths into `addAttachment()` and other functions that may receive unfiltered local paths, possibly leading to RCE. See [this article](https://knasmueller.net/5-answers-about-php-phar-exploitation) for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as `phar://`. Reported by Sehun Oh of cyberone.kr. ### Impact Object injection, possible remote code execution ### Patches Fixed in 6.0.6 and 5.2.27 ### Workarounds Validate and sanitise user input before using. ### References https://nvd.nist.gov/vuln/detail/CVE-2018-19296 ### For more information If you have any questions or comments about this advisory: * Open a private issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)

    Affected packages

    Package

    Name: phpmailer/phpmailer

    Purl: pkg:composer/phpmailer/phpmailer

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 5.0.0
    Fixed -5.2.27

    Affected versions

    v5.2.10
    v5.2.11
    v5.2.12
    v5.2.13
    v5.2.14
    v5.2.15
    v5.2.16
    v5.2.17
    v5.2.18
    v5.2.19
    v5.2.2
    v5.2.20
    v5.2.21
    v5.2.22
    v5.2.23
    v5.2.24
    v5.2.25
    v5.2.26
    v5.2.4
    v5.2.5
    v5.2.6
    v5.2.7
    v5.2.8
    v5.2.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