CVE-2017-16894Laravel Information Disclosure
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.
Published Nov 20, 2017 · Updated Oct 24, 2026
Key Facts
Patch immediately- CVE-2017-16894 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Laravel, laravel/framework (tuxcare), php-laravel-framework (debian).
- It is exploited in the wild, listed in Industry KEV feed since Apr 29, 2025. Public exploit code is available.
- EPSS estimates a 87% probability of exploitation in the next 30 days.
- Fixed versions are available, including Laravel 5.5.21, laravel/framework 5.4.36-p2+tuxcare, php-laravel-framework 0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS (30-day exploit likelihood)
87%
Higher than 99.8% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
72/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Apr 29, 2025
2717 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
3
Reports of active use
Advisories And Exploit References
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Apr 29, 2025 | n/a | Not reported |
Affected Products
7 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| LaravelLaravel | See advisory | 5.5.21 |
| laravel/frameworktuxcare | >= 5.4.36 | 5.4.36-p2+tuxcare |
| php-laravel-frameworkdebian | See advisory | 0 |
Patched Releases
Laravel
5.5.21
laravel/framework
5.4.36-p2+tuxcare
Timeline
Publicly disclosed
Nov 20, 2017
Added to Industry KEV feed
Apr 29, 2025
Last updated
Oct 24, 2026
Weakness Type
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
- advisorywhiteboyz.xyz · laravel-env-file-vuln.html
- exploitVulnCheck exploitation report
- exploitMSF laravel_token_unserialize_exec.rb
- exploitExploitDB-47129
- exploitVulnCheck exploitation report
FAQ
Common Questions.
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.
Affected: Laravel; laravel/framework (tuxcare) versions >= 5.4.36; php-laravel-framework (debian). The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Apr 29, 2025.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Laravel 5.5.21, laravel/framework 5.4.36-p2+tuxcare, php-laravel-framework 0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2017-16894 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo