Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. maatwebsite/excel
  4. ›
  5. CVE-2026-84374

CVE-2026-84374: Laravel Excel writes exports outside the configured filesystem disk when given a caller-controlled path

September 8, 2026

Excel::store() resolved the destination path against the process working directory rather than the configured filesystem disk. When that path resolved to an existing file, the export was written straight to it with fopen(), bypassing the disk entirely. An application that passes a user-controlled value as the export path could therefore be made to overwrite an arbitrary existing file that the PHP process can write to, with content the user controls.

References

  • github.com/SpartnerNL/Laravel-Excel/commit/b5cafdfcf7ec63924e83303763be8fcae340f70b
  • github.com/SpartnerNL/Laravel-Excel/releases/tag/3.1.70
  • github.com/SpartnerNL/Laravel-Excel/security/advisories/GHSA-c7r6-vx3h-w5g2
  • github.com/advisories/GHSA-c7r6-vx3h-w5g2
  • nvd.nist.gov/vuln/detail/CVE-2026-84374

Code Behaviors & Features

Detect and mitigate CVE-2026-84374 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.1.8 before 3.1.70

Fixed versions

  • 3.1.70

Solution

Upgrade to version 3.1.70 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

packagist/maatwebsite/excel/CVE-2026-84374.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:22:06 +0000.