CVEfocus › CVE database › CVE-2021-21404

CVE-2021-21404Crash due to malformed relay protocol message

CVSS 7.5 HighEPSS 2.0% (higher than 81% of CVEs)Published 2021-04-06Updated 2024-08-03Assigner: GitHub_M

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.

CWE-20

What to do

Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
4Fix pending
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10syncthingFix pendingUBUNTU-CVE-2021-21404
Ubuntu 26.04syncthingFix pendingUBUNTU-CVE-2021-21404
Ubuntu 25.10syncthingWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-21404
Ubuntu 24.04syncthingFix pendingUBUNTU-CVE-2021-21404
Ubuntu 22.04syncthingFix pendingUBUNTU-CVE-2021-21404
Ubuntu 20.04syncthingWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-21404
Ubuntu 18.04syncthingWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-21404
Debian 14syncthingFixed1.12.1~ds1-3DEBIAN-CVE-2021-21404
Debian 13syncthingFixed1.12.1~ds1-3DEBIAN-CVE-2021-21404
Debian 12syncthingFixed1.12.1~ds1-3DEBIAN-CVE-2021-21404
Alpine Linux 3.24syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.23syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.22syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.21syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.20syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.19syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.18syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.17syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.16syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.15syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.14syncthingFixed1.15.1-r0ALPINE-CVE-2021-21404
Alpine Linux 3.13syncthingFixed1.12.1-r1ALPINE-CVE-2021-21404
Go librarygithub.com/syncthing/syncthingFixed1.15.0GO-2022-0888

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.