7.5High

CVE-2026-84374

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.

What this means for your business

  • An attacker can use it remotely, over a network, with an ordinary user login, and without anyone at your company clicking anything.
  • FIRST's prediction model gives it a 0.6% chance of attack attempts being seen in the next 30 days, ranking above 45% of all known flaws.

What to do

  1. 1Ask your IT team or provider whether any of your systems use the affected product.
  2. 2If you do, follow the vendor's guidance. No patch reference has been published yet.

Fastnexa security experts

Not sure if your company is exposed to CVE-2026-84374?

Tell us where you run the affected software and a Fastnexa penetration tester will check whether this flaw, or others like it, can be used against your websites, apps and network.

The full test is free for our first 10 founding clients until 31 December 2026. See the offer

Book a 30-min callWhatsApp us

Think you’ve already been hit? Don’t wait on a form: call or WhatsApp +1 (732) 454 2616. We reply within 1 hour, 24/7. Emergency help →

Scoring

CVSS
7.5 (v3.1)
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-22
Assigned by
security-advisories@github.com

Dates

Published
2026-09-01
Last modified
2026-09-09
Sources
NVD

References

CVE-2026-84374 | CyberBrief