Detection-only triage for Synology DSM CVE-2026-76954 (9.8 pre-auth SQLi, Auth API) and CVE-2026-85101 (8.6 rsync auth bypass) — grades DSM builds against the SA-26:19 fixed releases
# `synology-dsm-scanner`
Detection-only triage for Synology DSM `SA-26:19`: `CVE-2026-76954` (9.8, pre-auth SQLi in the Auth API) and `CVE-2026-85101` (8.6, rsync auth bypass). Grades your DSM build against Synology's fixed releases. No payloads, no exploit traffic, no network probes.
## `What it checks`
* `CVE-2026-76954` — SQL injection in the DSM Auth API. `CVSS 9.8`, `CWE-89`. Remote, no login, no user interaction. Synology lists no workaround: patching is the only fix.
* `CVE-2026-85101` — authentication bypass in rsync, alternate path. `CVSS 8.6`, `CWE-288`. Same fixed builds.
Fixed builds, per `Synology-SA-26:19` (2026-11-10):
| `DSM train` | `Upgrade to` |
| --- | --- |
| `7.4` | `7.4.1-90080-1` |
| `7.3` | `7.3.2-86009-5` |
| `7.2.2` | `7.2.2-72806-10` |
| `7.2.1` | `7.2.1-69057-13` |
## `Usage`
```bash
# on the NAS itself (SSH), reads /etc/VERSION
python3 synology_dsm_scanner.py --local
# a version string from your inventory
python3 synology_dsm_scanner.py --version 7.2.2-72806-9
python3 synology_dsm_scanner.py --version "7.2.2-72806 Update 10"
# a saved /etc/VERSION, or any file holding a version string
python3 synology_dsm_scanner.py --version-file /path/to/VERSION
# a whole fleet at once
python3 synology_dsm_scanner.py --inventory-json fleet.json
# rsync is disabled on this box, so CVE-2026-85101 has nothing to reach
python3 synology_dsm_scanner.py --local --no-rsync
# machine output / the fixed-build table
python3 synology_dsm_scanner.py --version 7.2.2-72806-10 --json
python3 synology_dsm_scanner.py --list
```
`fleet.json` is a list of `{"host": "nas-a", "version": "7.2.2-72806-10"}` objects. Entries can use `"version_file"` instead of `"version"` to point at a saved `/etc/VERSION`.
Exit codes: `0` patched or not exposed, `1` vulnerable, `2` unknown, `3` usage error.
## `The traps`
* `The bare build trap` — `7.2.2-72806` with no Update number looks patched. It is not. The fix is Update 10, and a bare build grades `VULNERABLE`.
* `The c