CVE-2026-86733
largeOS Command Injection in Snipe-IT Backup Restore
Snipe-IT before 8.7.0 is vulnerable to OS command injection (CWE-78): when restoring an uploaded backup, the application streams the archive's SQL directly into the MySQL/MariaDB command-line client without the --binary-mode flag, so lines beginning with backslash commands such as \! are interpreted and executed as local shell commands. An authenticated superadministrator triggers it by uploading a crafted ZIP backup (POST /admin/backups/upload) and then restoring it (POST /admin/backups/restore/{filename}) without the optional 'clean' sanitizer parameter, which is not applied by default because DB_SANITIZE_BY_DEFAULT is false. Successful exploitation yields arbitrary OS command execution as the web application's operating-system user, exposing application secrets such as database credentials and the APP_KEY and allowing modification of application-writable files and data. Anyone running Snipe-IT earlier than 8.7.0 — typically self-hosted on Docker or bare metal — is affected. No public proof-of-concept or confirmed in-the-wild exploitation is known; EPSS estimates the 30-day exploitation probability at about 0.3% and the flaw is not in the CISA KEV catalog.
What to do: Upgrade to Snipe-IT 8.7.0 or later, which adds the --binary-mode flag to the MySQL/MariaDB client invocation. Until patched, limit superadministrator access to trusted admins and ensure restores run with the 'clean' sanitizer (or set DB_SANITIZE_BY_DEFAULT=true) to sanitize the backup stream. If compromise is suspected, rotate the APP_KEY and database credentials and review application-writable files and data for tampering.
| snipeitapp Snipe-IT | all versions before 8.7.0 (< 8.7.0) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Snipe-IT before 8.7.0 streams the SQL entry from an uploaded backup archive directly into the MySQL/MariaDB command-line client (`mysql`) without the --binary-mode flag, so the client interprets lines beginning with backslash commands such as `\!` as local shell commands. An authenticated superadministrator who uploads a crafted ZIP backup (POST /admin/backups/upload) and triggers a restore (POST /admin/backups/restore/{filename}) without the optional `clean` sanitizer parameter — which is not applied by default because DB_SANITIZE_BY_DEFAULT is false — can execute arbitrary OS commands as the web application's operating-system user, exposing application secrets (including database credentials and APP_KEY) and allowing modification of application-writable files and data. Version 8.7.0 adds the --binary-mode flag to the client invocation.
- Vendors
- snipeitapp
- Products
- snipe-it
- Weakness
- CWE-78
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.