In Laravel framework through 5.5.21, remote attackers can obtain sensitive information…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA. Impact type from CWE-200.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2017-16894
- 2026-10-03 Alias added: GHSA-2v4r-7m2m-5chh
References
More Laravel vulnerabilities
- TI-2018-10827 In Laravel Framework through 5.5.40 and 5.6.x through 5.6.29, remote code execution might… KEVCVSS 3.1HIGH 8.1
- TI-2021-09454 A deserialization vulnerability in the destruct() function of Laravel v8.5.9 allows… CVSS 3.1CRITICAL 9.8
- TI-2022-02662 laravel deserialization CVSS 3.1CRITICAL 9.8
- TI-2022-02676 Laravel deserialization CVSS 3.1HIGH 8.8
- TI-2021-04364 Query Binding Exploitation in Laravel CVSS 3.1HIGH 7.2
- TI-2020-15251 An issue was discovered in Laravel before 6.18.35 and 7.x before 7.24.0. CVSS 3.1HIGH 7.5
Sources
- CVE-2017-16894 · CVE Program
- CVE-2017-16894 · NVD
- FIRST EPSS
- GHSA-2v4r-7m2m-5chh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences