CVE-2017-16894
Last modified
CVE-2017-16894 is a vulnerability of currently unknown severity. 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. EPSS estimates a 87.03% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Laravel | Laravel | <= 5.5.21 |
References
- http://whiteboyz.xyz/laravel-env-file-vuln.htmlThird Party Advisory, URL Repurposed
- http://whiteboyz.xyz/laravel-env-file-vuln.htmlThird Party Advisory, URL Repurposed
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2017-16894?
How severe is CVE-2017-16894?
How do I fix CVE-2017-16894?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2017
- CVE-2017-16886The portal on FiberHome Mobile WIFI Device Model LM53Q1 VH51…
- CVE-2017-16887The portal on FiberHome Mobile WIFI Device Model LM53Q1 VH51…
- CVE-2017-1689IBM DOORS Next Generation (DNG/RRC) 6.0 is vulnerable to cro…
- CVE-2017-16890SWFTools 0.9.2 has a divide-by-zero error in the wav_convert…
- CVE-2017-16892In Bftpd before 4.7, there is a memory leak in the file rena…
- CVE-2017-16893The application Piwigo is affected by an SQL injection vulne…
- CVE-2017-16895The (1) arq_updater, (2) arqcommitter, (3) standardrestorer,…7.8
- CVE-2017-16896A SQL injection in classes/handler/public.php in the forgotp…
- CVE-2017-16897A vulnerability has been discovered in the Auth0 passport-ws…
- CVE-2017-16898The printMP3Headers function in util/listmp3.c in libming v0…
- CVE-2017-16899An array index error in the fig2dev program in Xfig 3.2.6a a…
- CVE-2017-1690IBM Rational Quality Manager and IBM Rational Collaborative …5.4
Are you affected by CVE-2017-16894?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
