Vulnerability · Published Apr 6, 2021 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity improper input validation in syncthing from syncthing. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)2.0%top 19.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20syncthing1.15.1-r0ALPINE-CVE-2021-21404
Alpine:v3.21syncthing1.15.1-r0ALPINE-CVE-2021-21404
Alpine:v3.22syncthing1.15.1-r0ALPINE-CVE-2021-21404
Alpine:v3.23syncthing1.15.1-r0ALPINE-CVE-2021-21404
Alpine:v3.24syncthing1.15.1-r0ALPINE-CVE-2021-21404
Debian:12syncthing1.12.1~ds1-3DEBIAN-CVE-2021-21404
Debian:13syncthing1.12.1~ds1-3DEBIAN-CVE-2021-21404
Debian:14syncthing1.12.1~ds1-3DEBIAN-CVE-2021-21404
Gogithub.com/syncthing/syncthing1.15.0GO-2022-0888
Gogithub.com/syncthing/syncthing1.15.0GHSA-x462-89pf-6r5h
Ubuntu:25.10syncthingno fix listedUBUNTU-CVE-2021-21404
Ubuntu:26.10syncthingno fix listedUBUNTU-CVE-2021-21404

Affected products (as reported)

VendorProductVersions
syncthing syncthing < 1.15.0

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References