Vulnerability · CVE-2017-16894
Laravel Laravel Framework Exposure of Sensitive Information to an Unauthorized Actor
Published Apr 29, 2025 · catalog updated Apr 29, 2025 · Laravel Laravel Framework
Patch now
CVE-2017-16894 is in the CISA known-exploited catalog. Confirm Laravel Laravel Framework against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Gaps on this record
- No version range is stored. A customer cannot check an installed version against this record.
- Severity
- Unknown—
- Known exploitation
- CISA KEV and VulnCheck KEV
- EPSS
- 86.92%
- Remediation
- Remediation guidance
- Affected products
- vendor Laravel Laravel Framework
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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- vendor Laravel Laravel Frameworkversion unspecified
How to fix CVE-2017-16894
Recommended remediation
Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2017-16894 is in the CISA known-exploited catalog. Confirm Laravel Laravel Framework against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Which versions are affected?
Affected version ranges are not on this record. Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
What should an analyst verify?
No weakness class is stored. EPSS 86.92%. The CISA KEV listing is the exploitation evidence. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Apr 29, 2025 · VulnCheck KEV
Detected
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
Apr 29, 2025 · CISA KEV
Known exploited
Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Sources
- CVE.orgVulnerability recordCVE-2017-16894
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2017-16894
30-day exploitation probability 86.9%
first.org - VulnCheck KEVConfirmed exploitationCVE-2017-16894
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/
vulncheck.com
References
Freshness
Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.