CVE-2021-21404 Crash due to malformed relay protocol message
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
27 packages: 17 fixed, 10 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/syncthing(Ubuntu 18.04) | = 0.14.36+ds1-1; = 0.14.38+ds1-1; = 0.14.43+ds1-5; = 0.14.43+ds1-6 +1 more | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu 20.04) | = 1.1.4~ds1-4; = 1.1.4~ds1-4ubuntu1; = 1.1.4~ds1-4ubuntu1.1; = 1.1.4~ds1-4ubuntu1.2 +1 more | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu 25.10) | = 1.29.2~ds1-1; = 1.29.5~ds1-2; All versions | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu 26.10) | = 1.29.5~ds1-3; = 1.29.5~ds1-4; All versions | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu Pro 22.04) | = 1.12.1~ds1-4; = 1.18.0~ds1-3; = 1.18.0~ds1-3ubuntu0.1; = 1.18.0~ds1-3ubuntu0.2 +4 more | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu Pro 24.04) | = 1.19.2~ds1-3; = 1.27.2~ds4-1; = 1.27.2~ds4-1ubuntu0.24.04.1; = 1.27.2~ds4-1ubuntu0.24.04.2 +5 more | No fix listed | No fix yet |
| ubuntu/syncthing(Ubuntu Pro 26.04) | = 1.29.5~ds1-2; = 1.29.5~ds1-3; = 1.29.5~ds1-3ubuntu0.26.04.1~esm1; All versions | No fix listed | No fix yet |
| alpine/syncthing(Alpine v3.13) | < 1.12.1-r1 | 1.12.1-r1 | Fixed |
| alpine/syncthing(Alpine v3.14) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.15) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.16) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.17) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.18) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.19) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.20) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.21) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.22) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.23) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| alpine/syncthing(Alpine v3.24) | < 1.15.1-r0 | 1.15.1-r0 | Fixed |
| debian/syncthing(Debian 12) | < 1.12.1~ds1-3 | 1.12.1~ds1-3 | Fixed |
| debian/syncthing(Debian 13) | < 1.12.1~ds1-3 | 1.12.1~ds1-3 | Fixed |
| debian/syncthing(Debian 14) | < 1.12.1~ds1-3 | 1.12.1~ds1-3 | Fixed |
| syncthing github.com/syncthing/syncthing | < 1.15.0; = < 1.15.0 | 1.15.0 | Fixed |
| syncthing github.com/syncthing/syncthing(Go) | < 1.15.0 | 1.15.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| syncthing github.com/syncthing/syncthing(Go) | < 1.15.0 | 1.15.0 |
| debian/syncthing(Debian:12) | < 1.12.1~ds1-3 | 1.12.1~ds1-3 |
| debian/syncthing(Debian:13) | < 1.12.1~ds1-3 | 1.12.1~ds1-3 |
| debian/syncthing(Debian:14) | < 1.12.1~ds1-3 | 1.12.1~ds1-3 |
| ubuntu/syncthing(Ubuntu:22.04) | All versions | No fix listed |
| syncthing github.com/syncthing/syncthing | < 1.15.0 | 1.15.0 |
| alpine/syncthing(Alpine:v3.13) | < 1.12.1-r1 | 1.12.1-r1 |
| alpine/syncthing(Alpine:v3.14) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.15) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.16) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.17) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.18) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.19) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.20) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.21) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.22) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.23) | < 1.15.1-r0 | 1.15.1-r0 |
| alpine/syncthing(Alpine:v3.24) | < 1.15.1-r0 | 1.15.1-r0 |
| ubuntu/syncthing(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:26.04) | All versions | No fix listed |
| syncthing github.com/syncthing/syncthing | = < 1.15.0 | No fix listed |
| ubuntu/syncthing(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:18.04) | = 0.14.36+ds1-1 | No fix listed |
| ubuntu/syncthing(Ubuntu:18.04) | = 0.14.38+ds1-1 | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/syncthing(Ubuntu:18.04) | = 0.14.43+ds1-5 | No fix listed |
| ubuntu/syncthing(Ubuntu:18.04) | = 0.14.43+ds1-6 | No fix listed |
| ubuntu/syncthing(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:20.04) | = 1.1.4~ds1-4 | No fix listed |
| ubuntu/syncthing(Ubuntu:20.04) | = 1.1.4~ds1-4ubuntu1 | No fix listed |
| ubuntu/syncthing(Ubuntu:20.04) | = 1.1.4~ds1-4ubuntu1.1 | No fix listed |
| ubuntu/syncthing(Ubuntu:20.04) | = 1.1.4~ds1-4ubuntu1.2 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | = 1.12.1~ds1-4 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | = 1.18.0~ds1-3 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | = 1.18.0~ds1-3ubuntu0.1 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | = 1.18.0~ds1-3ubuntu0.2 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | = 1.18.0~ds1-3ubuntu0.3 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | = 1.18.0~ds1-3ubuntu0.3+esm1 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:22.04) | = 1.18.0~ds1-3ubuntu0.3+esm2 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.19.2~ds1-3 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.27.2~ds4-1 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.27.2~ds4-1ubuntu0.24.04.1 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.27.2~ds4-1ubuntu0.24.04.2 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.27.2~ds4-1ubuntu0.24.04.2+esm1 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.27.2~ds4-1ubuntu0.24.04.3 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.27.2~ds4-1ubuntu0.24.04.3+esm1 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:24.04) | = 1.27.2~ds4-1ubuntu0.24.04.3+esm2 | No fix listed |
| ubuntu/syncthing(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:25.10) | = 1.29.2~ds1-1 | No fix listed |
| ubuntu/syncthing(Ubuntu:25.10) | = 1.29.5~ds1-2 | No fix listed |
| ubuntu/syncthing(Ubuntu:26.10) | = 1.29.5~ds1-3 | No fix listed |
| ubuntu/syncthing(Ubuntu:26.10) | = 1.29.5~ds1-4 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:26.04) | All versions | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:26.04) | = 1.29.5~ds1-2 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:26.04) | = 1.29.5~ds1-3 | No fix listed |
| ubuntu/syncthing(Ubuntu:Pro:26.04) | = 1.29.5~ds1-3ubuntu0.26.04.1~esm1 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- pkg.go.dev issue-tracking product third-party-advisory
- github.com
- Debian Security Tracker CVE-2021-21404 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking