CVE-2017-16894

Source
https://cve.org/CVERecord?id=CVE-2017-16894
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-16894.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2017-16894
Downstream
Published
2017-11-20T01:29:00Z
Modified
2026-10-15T02:46:34Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
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.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "range": [
                        {
                            "last_affected": "5.5.21"
                        }
                    ],
                    "source": "CPE_RANGE"
                }
            ],
            "vendor_product": "laravel:laravel"
        }
    ]
}
References

Affected packages

Git / github.com/laravel/framework

Affected ranges

Type
GIT
Repo
https://github.com/laravel/framework
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "last_affected": "5.5.21"
                }
            ],
            "source": "CPE_RANGE"
        }
    ]
}

Affected versions

v4.*
v4.0.0
v4.0.0-BETA2
v4.0.0-BETA3
v4.0.0-BETA4
v4.1.0
v5.*
v5.5.0
v5.5.1
v5.5.10
v5.5.12
v5.5.13
v5.5.14
v5.5.15
v5.5.16
v5.5.17
v5.5.18
v5.5.19
v5.5.2
v5.5.20
v5.5.21
v5.5.3
v5.5.4
v5.5.5
v5.5.6
v5.5.7
v5.5.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-16894.json"