{"id":"CVE-2017-16894","url":"https://www.cyber-defence.io/tools/cve/CVE-2017-16894","generatedAt":"2026-10-29T03:55:35.621Z","title":"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.","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.","published":"2017-11-20T01:29:00.000Z","lastModified":"2026-06-17T01:10:06.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":7.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"cwe":["CWE-200"],"affected":["laravel/laravel"],"epss":{"score":0.86916,"percentile":0.99744,"date":"2026-10-28","history":[{"date":"2026-09-21","score":0.83416,"percentile":0.99675},{"date":"2026-09-22","score":0.86916,"percentile":0.99738}]},"kev":{"listed":false},"exploits":{"count":1,"verified":true,"firstPublished":"2019-07-16","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":47129,"kind":"exploit","title":"PHP Laravel Framework 5.5.40 / 5.6.x < 5.6.30 - token Unserialize Remote Command Execution (Metasploit)","url":"https://www.exploit-db.com/exploits/47129","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/remote/47129.rb","file":"exploits/linux/remote/47129.rb","published":"2019-07-16","added":"2019-07-16","updated":"2019-07-16","author":"Metasploit","type":"remote","platform":"linux","port":null,"verified":true,"codes":["CVE-2018-15133","CVE-2017-16894"],"tags":"Metasploit Framework (MSF)","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/laravel_token_unserialize_exec.rb"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 86.9%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html","source":"cve@mitre.org"},{"url":"http://whiteboyz.xyz/laravel-env-file-vuln.html","tags":["Third Party Advisory","URL Repurposed"],"source":"cve@mitre.org"},{"url":"https://twitter.com/finnwea/status/967709791442341888","source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://whiteboyz.xyz/laravel-env-file-vuln.html","tags":["Third Party Advisory","URL Repurposed"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://twitter.com/finnwea/status/967709791442341888","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-16894","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}