CVE-2017-16894

Source
https://cve.org/CVERecord?id=CVE-2017-16894
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-16894.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-16894
Published
2017-11-20T01:29:00.227Z
Modified
2026-04-10T03:57:53.276352Z
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 fileputcontents without restricting the .env permissions. The .env filename is not used exclusively by Laravel framework.

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
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.5.21"
        }
    ]
}

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/cve-osv-conversion/osv-output/CVE-2017-16894.json"