CVE-2017-16894Laravel
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Laravel · Laravel We alert you by email or Slack (account required).
- Priority
- 69
- CVSS 3.0
- 7.5
- EPSS
- 86.9% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- Published
- Nov 20, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Laravel.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| laravel | laravel | ≤ 5.5.21 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com
- whiteboyz.xyz Third Party Advisory URL Repurposed
- twitter.com