CVE-2021-21404
Syncthing vulnerability analysis and mitigation

Overview

Syncthing, a continuous file synchronization program, was found to contain a vulnerability (CVE-2021-21404) affecting versions before 1.15.0. The vulnerability was discovered and disclosed in April 2021, affecting both the main Syncthing application and its relay server component (strelaysrv) (GitHub Advisory).

Technical details

The vulnerability stems from improper handling of relay protocol messages. Specifically, when processing relay messages with a negative length field, both the main Syncthing application and the relay server could be caused to crash and exit. This vulnerability was addressed by implementing proper length field validation in the protocol handling code (GitHub Release).

Impact

The vulnerability could cause both Syncthing and the relay server (strelaysrv) to crash and exit when receiving malformed relay protocol messages. However, no sensitive data was exposed or liable to be altered due to this issue. Sensitive data was never exposed to relay operators (GitHub Advisory).

Exploitability

For exploitation, Syncthing would need to be lured to connect to a malicious relay server. The vulnerability could be triggered by sending a relay message with a negative length field. The issue was particularly relevant in environments where Syncthing communicated with unknown relays (GitHub Advisory).

Mitigation and workarounds

The vulnerability was fixed in Syncthing version 1.15.0. For users unable to upgrade, Syncthing could be configured to not use relays or to only use specific, trusted relays. In closed environments or with relaying disabled, where Syncthing did not communicate with unknown relays, the system was not vulnerable. No known workaround was available for strelaysrv (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

syncthing: 1.15.1-r0

Fixed

v3.18

syncthing: 1.15.1-r0

Fixed

v3.19

syncthing: 1.15.1-r0

Fixed

v3.20

syncthing: 1.15.1-r0

Fixed

v3.21

syncthing: 1.15.1-r0

Fixed

v3.22

syncthing: 1.15.1-r0

Fixed

v3.23

syncthing: 1.15.1-r0

Fixed

Arch Linux

Fixed

rolling

syncthing: 1.15.1-1

Fixed

SourceThis report was generated using AI

Related Syncthing vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56852HIGH7.5
  • cAdvisor logocAdvisor
  • perl-Text-Reform.src
NoYesJul 21, 2026
CVE-2026-40898HIGH7.5
  • Prometheus logoPrometheus
  • buf
NoYesJun 04, 2026
CVE-2026-27145MEDIUM6.5
  • Go logoGo
  • crossplane-provider-aws-opensearchserverless
NoYesJun 02, 2026
CVE-2026-42505MEDIUM5.3
  • Go logoGo
  • aws-ebs-csi-driver-fips-1.61
NoYesJul 08, 2026
CVE-2026-42507MEDIUM5.3
  • Go logoGo
  • crossplane-provider-aws-macie2-fips
NoYesJun 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management