All vulnerabilities

Servers and applications

GHSA-r84c-6xf8-6wmg

Quadratic duplicate-header check in CSV import lets an import-permissioned user occupy a PHP worker

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)Inefficient algorithmic complexity (CWE-407)
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 ran its duplicate-header check with two full linear scans of the header array for every header. For N headers the loop did roughly N × N string comparisons even when no duplicates existed. The reporter measured ~10 seconds of CPU occupation on a single ~111 KB CSV with 8,000 columns. A user holding the import permission could repeatedly submit such CSVs and tie up PHP-FPM workers for a disproportionate amount of time relative to the request size.

Pre-fix:

The in_array check is always true, because the current header is always present somewhere in the header array. The real work was the array_search + > combination used to avoid double-reporting of duplicate pairs. Both in_array and array_search scan the array values from the beginning on every call, and both ran once per header, so the overall shape was N × N work for N headers.

The reporter's bounded test measured, with unique column names:

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