{"id":"CVE-2021-21404","published":"2021-04-06T20:00:15Z","modified":"2024-08-03T18:09:16Z","title":"Crash due to malformed relay protocol message","vendor":"syncthing","product":"syncthing","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0197,"percentile":0.80937,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/syncthing/syncthing/security/advisories/GHSA-x462-89pf-6r5h","tags":["x_refsource_CONFIRM"]},{"url":"https://pkg.go.dev/github.com/syncthing/syncthing","tags":["x_refsource_MISC"]},{"url":"https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97","tags":["x_refsource_MISC"]},{"url":"https://github.com/syncthing/syncthing/releases/tag/v1.15.0","tags":["x_refsource_MISC"]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":16.19},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"syncthing","affectedVersions":[{"vendor":"syncthing","product":"syncthing","versions":["< 1.15.0"]}],"affected":[{"ecosystem":"Go","package":"github.com/syncthing/syncthing","vulnerableRanges":["<1.15.0"],"patched":["1.15.0"],"from":["GHSA-x462-89pf-6r5h","GO-2022-0888"],"provenance":"source"}],"summary":{"text":"The Syncthing relay server (strelaysrv) and the Syncthing client itself, in releases before 1.15.0, fail to properly validate relay protocol messages, so a message containing a negative length field crashes the process. An unauthenticated attacker with network access can trigger the relay server crash by sending such a message, and a malicious relay server can crash a Syncthing client that attempts to join it, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:05:07Z"},"euvd":{"id":"EUVD-2021-1226","exploited":false,"provenance":"source"}}