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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.97%, higher than 81% of CVEs (2026-12-01)
- Published: 2021-04-06T20:00:15.000Z
- Modified: 2026-09-08T08:48:10.759Z
- Also known as: GHSA-x462-89pf-6r5h, BIT-SYNCTHING-2021-21404, GO-2022-0888
- Weaknesses: CWE-20
- 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.

(As written by CVE List.)

## Affected

- syncthing syncthing: < 1.15.0; before 1.15.0
- github.com/syncthing/syncthing (Go): before 1.15.0
- syncthing (Bitnami): before 1.15.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/syncthing/syncthing/security/advisories/GHSA-x462-89pf-6r5h> (advisory, third-party-advisory, web)
- <https://pkg.go.dev/github.com/syncthing/syncthing> (advisory, product, third-party-advisory, web)
- <https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97> (advisory, fix, patch, third-party-advisory, web)
- <https://github.com/syncthing/syncthing/releases/tag/v1.15.0> (advisory, release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21404> (advisory, web)

## Sources

- CVE List: [CVE-2021-21404](https://www.cve.org/CVERecord?id=CVE-2021-21404), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-x462-89pf-6r5h](https://github.com/advisories/GHSA-x462-89pf-6r5h), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0888](https://pkg.go.dev/vuln/GO-2022-0888), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-21404](https://nvd.nist.gov/vuln/detail/CVE-2021-21404), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYNCTHING-2021-21404](https://osv.dev/vulnerability/BIT-SYNCTHING-2021-21404), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-21404 · Whole record: https://cve.day/CVE-2021-21404.json · Rebuilt by cve.day 2026-11-25T22:58:00.654Z
