CVE-2017-16894
Last modified
CVE-2017-16894 is a vulnerability of currently unknown severity. 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. EPSS estimates a 87.03% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Laravel | Laravel | <= 5.5.21 |
References
- http://whiteboyz.xyz/laravel-env-file-vuln.htmlThird Party Advisory, URL Repurposed
- http://whiteboyz.xyz/laravel-env-file-vuln.htmlThird Party Advisory, URL Repurposed
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2017-16894?
How severe is CVE-2017-16894?
How do I fix CVE-2017-16894?
Are you affected by CVE-2017-16894?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
