External Control of File Name or Path Affecting maatwebsite/excel package, versions >=3.1.8, <3.1.70


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.84% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about External Control of File Name or Path vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MAATWEBSITEEXCEL-20186849
  • published28 Sept 2026
  • disclosed8 Sept 2026
  • creditUnknown

Introduced: 8 Sep 2026

NewCVE-2026-84374  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade maatwebsite/excel to version 3.1.70 or higher.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path via the store process. An attacker can overwrite arbitrary existing files writable by the PHP process with partially controlled content by supplying a crafted export path, potentially leading to remote code execution if the overwritten file is executed by the web server. This is only exploitable if the application passes an unsanitized, user-controlled value as the export path.

Workaround

This vulnerability can be mitigated by validating the path before passing it to the export process—reject absolute paths and any .. segment, or derive the filename server-side and never build it from request input.

CVSS Base Scores

version 4.0
version 3.1