CVE-2021-21404
HIGH 7.5CVSS 3.1Crash 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.
- Published
- 6 Apr 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- BIT-syncthing-2021-21404GHSA-x462-89pf-6r5hGO-2022-0888
- Sources
- NVDJSONOSV GHSA-x462-89pf-6r5hJSONOSV GO-2022-0888JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | syncthing | syncthingcpe:2.3:a:syncthing:syncthing:*:*:*:*:*:*:*:* |
< 1.15.0 | 1.15.0 |
| OSV | Go | github.com/syncthing/syncthing | < 1.15.0 | 1.15.0 |
References
- https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/syncthing/syncthing/releases/tag/v1.15.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/syncthing/syncthing/security/advisories/GHSA-x462-89pf-6r5h · Third Party Advisory, WEB, ADVISORY
- https://pkg.go.dev/github.com/syncthing/syncthing · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21404 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 6 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 May 2021)