All vulnerabilities

Servers and applications

GHSA-w742-vf26-5rpq

Multi-file import creates one DB row but N storage objects, orphaning files

Severity
Medium 4.3
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
8.8.1
Weakness
Uncontrolled resource consumption (CWE-400)Incomplete cleanup (CWE-459)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Sources
Project advisories (GitHub)

Description

Api\ImportController::store accepts a multi-file files[] upload. A single new Import model instance is instantiated above the foreach ($files as $file) loop and reused for every iteration. Each iteration writes a separate object to the private disk, mutates $import->file_path / ->filesize / ->created_by, and calls $import->save(). Eloquent's save() updates the existing row after the first iteration, so a request with N files writes N storage objects but produces exactly one imports row referencing the Nth file. The N-1 earlier objects have no DB reference and cannot be removed through ImportController::destroy, which deletes by the file_path stored on the row.

Pre-fix shape of Api\ImportController::store:

After the fix, $import = new Import; moves inside the loop so each file receives its own row.

A user with the import permission can issue multi-file requests to the import endpoint and accumulate orphaned files under private_uploads/imports/ that no row references.

From grokability/snipe-it's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Snipe-ITServers and applications · github:grokability/snipe-it
  • Every version before 8.8.1

About Snipe-IT

A free open source IT asset/license management system

From its GitHub repository.
Docker Hub pulls
30,202,208Docker Hub, 29 Nov 2026
GitHub stars
15,283GitHub, 29 Nov 2026
Forks
4,089GitHub, 29 Nov 2026
Latest release
v8.8.4GitHub, 29 Nov 2026
Released
20 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
12 Nov 2013GitHub

References