CVE-2021-21404Syncthing
High 7.5 No auth needed
Follow: this CVE · Syncthing · Syncthing We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Apr 6, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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
- Apply the vendor's security update for Syncthing.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/syncthing/syncthing |
< 1.15.0 |
1.15.0 |
go get github.com/syncthing/syncthing@v1.15.0 |
| Go | github.com/syncthing/syncthing |
< 1.15.0 |
1.15.0 |
go get github.com/syncthing/syncthing@v1.15.0 |
Per OSV / GitHub Advisories (GHSA-x462-89pf-6r5h, GO-2022-0888). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| syncthing | syncthing | < 1.15.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory
- pkg.go.dev Product Third Party Advisory