CVEvulnerability
CVE-2017-16894
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2017-11-20
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.0 ([email protected])
- 7.5 HIGH — CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-200
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.
Affected configurations
• laravel laravel (<= 5.5.21)
Related
Weakness · CWE (1)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
References
- http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html packetstormsecurity.com
- http://whiteboyz.xyz/laravel-env-file-vuln.html Third Party Advisory, URL Repurposed
- https://twitter.com/finnwea/status/967709791442341888 twitter.com
- http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html packetstormsecurity.com
- http://whiteboyz.xyz/laravel-env-file-vuln.html Third Party Advisory, URL Repurposed
- https://twitter.com/finnwea/status/967709791442341888 twitter.com