CVE-2021-21404Crash due to malformed relay protocol message
Syncthing is a continuous file synchronization program. In Syncthing before version 1.15.0, the relay server `strelaysrv` can be caused to crash and exit by sending a relay message with a negative length field. Similarly, Syncthing itself can crash for the same reason if given a malformed message from a malicious relay server when attempting to join the relay. Relay joins are essentially random (from a subset of low latency relays) and Syncthing will by default restart when crashing, at which point it's likely to pick another non-malicious relay. This flaw is fixed in version 1.15.0.
What to do
Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | syncthing | Fix pending | UBUNTU-CVE-2021-21404 | |
| Ubuntu 26.04 | syncthing | Fix pending | UBUNTU-CVE-2021-21404 | |
| Ubuntu 25.10 | syncthing | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-21404 | |
| Ubuntu 24.04 | syncthing | Fix pending | UBUNTU-CVE-2021-21404 | |
| Ubuntu 22.04 | syncthing | Fix pending | UBUNTU-CVE-2021-21404 | |
| Ubuntu 20.04 | syncthing | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-21404 | |
| Ubuntu 18.04 | syncthing | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-21404 | |
| Debian 14 | syncthing | Fixed | 1.12.1~ds1-3 | DEBIAN-CVE-2021-21404 |
| Debian 13 | syncthing | Fixed | 1.12.1~ds1-3 | DEBIAN-CVE-2021-21404 |
| Debian 12 | syncthing | Fixed | 1.12.1~ds1-3 | DEBIAN-CVE-2021-21404 |
| Alpine Linux 3.24 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.23 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.22 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.21 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.20 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.19 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.18 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.17 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.16 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.15 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.14 | syncthing | Fixed | 1.15.1-r0 | ALPINE-CVE-2021-21404 |
| Alpine Linux 3.13 | syncthing | Fixed | 1.12.1-r1 | ALPINE-CVE-2021-21404 |
| Go library | github.com/syncthing/syncthing | Fixed | 1.15.0 | GO-2022-0888 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- syncthing: affected: < 1.15.0
References
- https://github.com/syncthing/syncthing/security/advisories/GHSA-x462-89pf-6r5h
- https://pkg.go.dev/github.com/syncthing/syncthing
- https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97
- https://github.com/syncthing/syncthing/releases/tag/v1.15.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.