The real vulnerability in CVE-2026-86733 isn't a missing --binary-mode flag in the mysql client invocation—it's that Snipe-IT shipped with SQL sanitization disabled by default. The --binary-mode patch in 8.7.0 is the surface fix; the deeper issue is that DB_SANITIZE_BY_DEFAULT existed as a configuration knob pointing the wrong direction from day one. This transforms the analysis from 'missing security control' to 'security deliberately made opt-in.'

When DB_SANITIZE_BY_DEFAULT defaults to false, every Snipe-IT deployment that restored a backup was implicitly treating uploaded SQL files as untrusted input capable of triggering shell execution through the mysql client's ! escape sequence. The knob's existence tells you someone anticipated this risk, added mitigation logic, then shipped it disabled—likely for compatibility with valid mysql client syntax in backups. That's a documented trade-off, not an oversight.

Assess the superadministrator prerequisite carefully in your threat model. While this does require authenticated superadmin access, account compromise is a frequent initial foothold in real attacks, and turning backup restore into remote code execution dramatically changes the severity of account takeover. A superadmin already has access to every credential the application holds—APP_KEY, database credentials, integration tokens—and the backup restore path is the mechanism that converts that application-layer access into OS-level execution. The blast radius extends beyond the host: APP_KEY exposure means every encrypted token, session artifact, and sensitive field in the database becomes readable.

Your priority actions: verify you are running 8.7.0 or later, confirm DB_SANITIZE_BY_DEFAULT is explicitly set to true in your configuration if the option persists, and audit who holds superadmin accounts—those credentials now carry OS-level execution potential. The --binary-mode fix is correct, but the configuration knob that made sanitization optional remains in the codebase; treat it as a reminder that security defaults matter more than security options.