Live threats

All CVEs / Laravel

CVE-2017-16894Laravel

High 7.5 No auth neededHigh EPSS

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Laravel.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
laravellaravel≤ 5.5.21

Official sources

References

Links published by the sources. Open them with care.