CVE-2021-21404
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| arch | fixed | 1.15.1-1 | |
| debian | bookworm | fixed | 1.12.1~ds1-3 |
| debian | bullseye | fixed | 1.12.1~ds1-3 |
| debian | forky | fixed | 1.12.1~ds1-3 |
| debian | sid | fixed | 1.12.1~ds1-3 |
| debian | trixie | fixed | 1.12.1~ds1-3 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Go | github.com/syncthing/syncthing | <1.15.0 | 1.15.0 |
References
- https://github.com/syncthing/syncthing/security/advisories/GHSA-x462-89pf-6r5h
- https://nvd.nist.gov/vuln/detail/CVE-2021-21404
- https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97
- https://github.com/syncthing/syncthing/releases/tag/v1.15.0
- https://pkg.go.dev/github.com/syncthing/syncthing
- https://security-tracker.debian.org/tracker/CVE-2021-21404
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.