Skip to content
Vulnerability Intelligence

CVE-2017-16894

HighExploitedPublic exploit

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 Jul 8, 2026

Key Facts

Patch immediately
  • CVE-2017-16894 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Laravel, 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, php-laravel-framework 0.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

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.7% of all scored CVEs

Exploited in the wild

Yes

1 catalog listing

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2017-16894 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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

CatalogAddedRemediation dueRansomware use
Industry KEV feedApr 29, 2025n/aNot reported

Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Affected Products

6 affected entries in total
ProductAffected versionsFixed in
LaravelLaravelSee advisory5.5.21
php-laravel-frameworkdebianSee advisory0

Patched Releases

Laravel

5.5.21

Timeline

  1. Publicly disclosed

    Nov 20, 2017

  2. Added to Industry KEV feed

    Apr 29, 2025

  3. Last updated

    Jul 8, 2026

Weakness Type

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

References

3 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2017-16894 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo