Skip to content
OpenAdvisories
High · 7.5 CVE-2021-21404 BIT-syncthing-2021-21404EUVD-2021-1226GHSA-x462-89pf-6r5hGO-2022-0888

Crash due to malformed relay protocol message

Published Apr 6, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
syncthing syncthing < 1.15.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 syncthing 1.12.1~ds1-3 —
Debian 13 syncthing 1.12.1~ds1-3 —
Debian 12 syncthing 1.12.1~ds1-3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 syncthing No fix yet —
Ubuntu 25.10 syncthing No fix yet —
Ubuntu 20.04 LTS syncthing No fix yet —
Ubuntu 18.04 LTS syncthing No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS syncthing No fix yet —
Ubuntu Pro 24.04 LTS syncthing No fix yet —
Ubuntu Pro 22.04 LTS syncthing No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP2 syncthing 1.15.1-bp152.2.3.1 openSUSE-SU-2021:0713-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed syncthing 1.18.2-2.1 openSUSE-SU-2024:11417-1
openSUSE Leap 15.2 syncthing 1.15.1-lp152.2.3.1 openSUSE-SU-2021:0688-1
ReleasePackageFixed inAdvisory
Alpine v3.24 syncthing 1.15.1-r0 —
Alpine v3.23 syncthing 1.15.1-r0 —
Alpine v3.22 syncthing 1.15.1-r0 —
Alpine v3.21 syncthing 1.15.1-r0 —
Alpine v3.20 syncthing 1.15.1-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 syncthing 1.15.1-r0 —
Alpine v3.18 syncthing 1.15.1-r0 —
Alpine v3.17 syncthing 1.15.1-r0 —
Alpine v3.16 syncthing 1.15.1-r0 —
Alpine v3.15 syncthing 1.15.1-r0 —
Alpine v3.14 syncthing 1.15.1-r0 —
Alpine v3.13 syncthing 1.12.1-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/syncthing/syncthing < 1.15.0 1.15.0 GHSA-x462-89pf-6r5h

Advisories 3

References