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.
CVE-2017-16894
Score elevated to 9.0 because EPSS predicts 89% probability of exploitation within the next 30 days (top 0.5% of all CVEs). NVD baseline CVSS 7.5 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 87%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.5
- EG Score
- 9.0(high)
- EPSS
- 99.7%
- KEV
- Not listed
Published
November 20, 2017
Last Modified
May 13, 2026
References (6)
- cve@mitrehttp://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html
- cve@mitrehttp://whiteboyz.xyz/laravel-env-file-vuln.html
- cve@mitrehttps://twitter.com/finnwea/status/967709791442341888
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html
- af854a3a-2127-422b-91ae-364da2661108http://whiteboyz.xyz/laravel-env-file-vuln.html
- af854a3a-2127-422b-91ae-364da2661108https://twitter.com/finnwea/status/967709791442341888
Data Freshness Timeline
(refreshed 3× in last 7d / 17× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 21:35 UTCOSV refresh
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:15 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 12:57 UTCOSV refresh
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
Show 13 moreShow fewer
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 07:51 UTCEG score recompute
- 2026-05-22 07:51 UTCGHSA enrichment
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
Publicly available exploits
(3 references)Working exploit code is in the public domain (1 Metasploit module) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-47129✓ verifiedFirst seen Jul 16, 2019
PHP Laravel Framework 5.5.40 / 5.6.x < 5.6.30 - token Unserialize Remote Command Execution (Metasploit)
Open source ↗ - Metasploitexploit/unix/http/laravel_token_unserialize_exec✓ verifiedFirst seen Aug 7, 2018
PHP Laravel Framework token Unserialize Remote Command Execution
Open source ↗ - Nucleihttp/cves/2017/CVE-2017-16894.yamlFirst seen Jan 1, 2017
Laravel <5.5.21 - Information Disclosure
Open source ↗
Frequently asked(5)
What is CVE-2017-16894?
When was CVE-2017-16894 disclosed?
Is CVE-2017-16894 actively exploited?
What is the CVSS score of CVE-2017-16894?
How do I remediate CVE-2017-16894?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2017-16894
Is Your Infrastructure Affected by CVE-2017-16894?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.