GHSA-r7c9-c69m-rph8

    Dashboard / Vulnerabilities / GHSA-r7c9-c69m-rph8

    GHSA-r7c9-c69m-rph8

    Published: 26 Mar 2022Last Modified: 22 Oct 2025
    Aliases:

    Summary: Code Injection in PHPUnit

    Details: Util/PHP/eval-stdin.php in PHPUnit starting with 4.8.19 and before 4.8.28, as well as 5.x before 5.6.3, allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a `<?php ` substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.

    Affected packages

    Package

    Name: phpunit/phpunit

    Purl: pkg:composer/phpunit/phpunit

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 4.8.19
    Fixed -4.8.28

    Affected versions

    4.8.19
    4.8.20
    4.8.21
    4.8.22
    4.8.23
    4.8.24
    4.8.25
    4.8.26
    4.8.27

    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-r7c9-c69m-rph8 | CVE-DB