CVE-2026-84374CWE-22CWE-73path-traversal

CVE-2026-84374

High · published September 2, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
57.5
In the wild
Unconfirmed
What it is

Laravel Excel provides supercharged Excel exports and imports in Laravel. From 3.1.8 until 3.1.70, in src/Files/Disk.php the Maatwebsite\Excel\Files\Disk::copy() method resolves the caller-controlled $destination supplied through Excel::store(), $export->store(), or storeExcel() against the process working directory with realpath() instead of the configured filesystem disk. If the path names an existing writable file, Disk::copy() opens it with fopen() in rb+ mode and uses stream_copy_to_stream(), bypassing Flysystem path confinement and allowing an attacker whose application input controls the export path to overwrite arbitrary existing files with export content. The rb+ behavior creates a non-truncating overwrite and trailing bytes when the new export is shorter, and overwriting an executable PHP file can lead to remote code execution. This issue is fixed in version 3.1.70.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00842 · 57.5th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-73 · External Control of File Name or Path
Published
2026-09-02T02:17Z
References (3)
EPSS history
Timeline
  • 03 SEP 03:32Z
    EPSS moved — → 1%
    epss
  • 01 SEP 21:28Z
    Laravel Excel writes exports outside the configured filesystem disk when given a caller-controlled path
    cvelistv5