{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2017-16894","published":"2017-11-20T01:29:00.227000Z","last_modified":"2026-06-17T01:10:06.353000Z","status":"Modified","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-200"],"cpes":[{"criteria":"cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*","part":"a","vendor":"laravel","product":"laravel","version_end_including":"5.5.21"}],"cpes_truncated":false,"vendors":["laravel"],"products":["laravel/laravel"],"epss":{"score":0.86916,"percentile":0.99829,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":69,"links":{"html_es":"/es/cve/CVE-2017-16894/","html_en":"/en/cve/CVE-2017-16894/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-16894","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-16894"},"untrusted":{"vendor_name":"Laravel","product_name":"Laravel","desc_en":"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.","affected":[],"references":[{"url":"http://packetstormsecurity.com/files/153641/PHP-Laravel-Framework-Token-Unserialize-Remote-Command-Execution.html","tags":[]},{"url":"http://whiteboyz.xyz/laravel-env-file-vuln.html","tags":["Third Party Advisory","URL Repurposed"]},{"url":"https://twitter.com/finnwea/status/967709791442341888","tags":[]}]}}