CVE-2017-16894: laravel
Vulnerability summary
CVE-2017-16894 is a high (CVSS 7.5) vulnerability in laravel. EPSS estimates a 86.92% chance of exploitation in the next 30 days, higher than 99.7% of scored vulnerabilities. 2 public exploits are recorded.
Timeline
- 20-11-2017PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
86.92%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 86.92% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundPHP Laravel Framework 5.5.40 / 5.6.x < 5.6.30 - token Unserialize Remote Command Execution (Metasploit)
Maturity: weaponized
PHP Laravel Framework token Unserialize Remote Command Execution
exploit/unix/http/laravel_token_unserialize_exec
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Laravel1 product
- laravel≤ 5.5.21
1 vendor · 1 product
References
3 links- twitter.com/finnwea/status/967709791442341888X Refsource MISC
- packetstormsecurity.com/files/…X Refsource MISC