CVE-2017-16894

    Dashboard / Vulnerabilities / CVE-2017-16894

    CVE-2017-16894

    Published: 20 Nov 2017Last Modified: 8 Jul 2026

    Summary:

    Details: In Laravel framework through 5.5.21, remote attackers can obtain sensitive information (such as externally usable passwords) via a direct request for the /.env URI. NOTE: this CVE is only about Laravel framework's writeNewEnvironmentFileWith function in src/Illuminate/Foundation/Console/KeyGenerateCommand.php, which uses file_put_contents without restricting the .env permissions. The .env filename is not used exclusively by Laravel framework.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    v5.5.21
    v5.5.20
    v5.5.19
    v5.5.18
    v5.5.17
    v5.5.16
    v5.5.15
    v5.5.14
    v5.5.13
    v5.5.12
    v5.5.10
    v5.5.9
    v5.5.7
    v5.5.6
    v5.5.5
    v5.5.4
    v5.5.3
    v5.5.2
    v5.5.1
    v5.5.0

    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