---
id: CVE-2026-86733
title: >-
  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 su…
summary: >-
  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 su…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: snipeitapp
product: snipe-it
affected:
  - snipe-it < 8.7.0
patched:
  - snipe-it 8.7.0
published: '2026-09-08'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T13:57:28.367'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86733'
references:
  - url: >-
      https://github.com/grokability/snipe-it/security/advisories/GHSA-x53f-48vj-c5fc
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/snipe-it-before-8.7.0-remote-code-execution-via-backup-restore
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-08T15:30:53.166459Z'
ingestedAt: '2026-09-08T15:33:26.987Z'
epss: 0.00579
epssPercentile: 0.45222
---

## Overview

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.

## Affected

- `snipe-it < 8.7.0`

## Remediation

Upgrade past the affected range:

- `snipe-it 8.7.0`
