CrowdSecLive Exploit Tracker
Background NoiseCVE-2017-16894Public Exploit

Laravel - Information Disclosure (CVE-2017-16894)

PublishedNov 20, 2017
First SeenSep 19, 2025
Last Seen
Reported
CVSS7.5
web_application

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.

psychologyCrowdSec Analysis

Information Disclosure in Laravel, CVE-2017-16894 exposes a vulnerability in Laravel framework through version 5.5.21, where remote attackers can access sensitive information, including passwords, by directly requesting the /.env file. This flaw arises from improper file permission handling in the writeNewEnvironmentFileWith function, potentially leading to credential leakage and facilitating further attacks such as unauthorized access or privilege escalation.

CrowdSec has been tracking this vulnerability and its exploits since 22nd of December 2023.

CrowdSec network data shows that most actors exploiting CVE-2017-16894 rely on broad, untargeted scans with minimal filtering. The activity is largely automated and opportunistic in nature. Additionally, according to week-over-week analysis by CrowdSec, exploitation of CVE-2017-16894 is surging. Attack volumes are spiking well above historical norms, indicating widespread and escalating interest from threat actors. CVE-2017-16894 is currently experiencing high visibility and active exploitation across the internet.

Attackers attempt to access the .env file at the web root to obtain sensitive Laravel configuration data, including application secrets and credentials.

lock

Full Intelligence Available

Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.

EventDate
CVE Published2017-11-20
Rule Released2023-12-22
CrowdSec First Seen2025-09-19

Remediation & Protection

lock to download blocklists, subscribe to firewalls, and access IP intelligence.