CVE-2017-16894
HighSummary
In the Laravel framework up to version 5.5.21, remote attackers can obtain sensitive information, such as passwords, via a direct request to the /.env URI. The issue concerns the writeNewEnvironmentFileWith function, which does not restrict the permissions of the .env file.
Risk Assessment
The organization may be exposed to sensitive data leaks, potentially leading to unauthorized access to systems and resources.
Recommendation
It is recommended to update the Laravel framework to the latest version and secure the .env file with appropriate permission settings.
Other vulnerabilities in Laravel framework
Original NVD description (English source)
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.

