Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/syncthing/syncthing
  4. ›
  5. CVE-2021-21404

CVE-2021-21404: Improper Input Validation

May 21, 2021

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.

References

  • github.com/advisories/GHSA-x462-89pf-6r5h
  • github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97
  • github.com/syncthing/syncthing/releases/tag/v1.15.0
  • github.com/syncthing/syncthing/security/advisories/GHSA-x462-89pf-6r5h
  • nvd.nist.gov/vuln/detail/CVE-2021-21404
  • pkg.go.dev/github.com/syncthing/syncthing

Code Behaviors & Features

Detect and mitigate CVE-2021-21404 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.15.0

Fixed versions

  • 1.15.0

Solution

Upgrade to version 1.15.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/syncthing/syncthing/CVE-2021-21404.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:51 +0000.