syncthing — security advisory
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.
- Products
- syncthing
- Affected versions
- 0.14.36+ds1-1, 0.14.38+ds1-1, 0.14.43+ds1-5, 0.14.43+ds1-6, 1.1.4~ds1-4, 1.1.4~ds1-4ubuntu1, 1.1.4~ds1-4ubuntu1.1, 1.1.4~ds1-4ubuntu1.2, 1.12.1~ds1-4, 1.18.0~ds1-3, 1.18.0~ds1-3ubuntu0.1, 1.18.0~ds1-3ubuntu0.2, 1.18.0~ds1-3ubuntu0.3, 1.18.0~ds1-3ubuntu0.3+esm1, 1.18.0~ds1-3ubuntu0.3+esm2, 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, 1.27.2~ds4-1ubuntu0.24.04.2+esm1, 1.27.2~ds4-1ubuntu0.24.04.3, 1.27.2~ds4-1ubuntu0.24.04.3+esm1, 1.27.2~ds4-1ubuntu0.24.04.3+esm2, 1.29.2~ds1-1, 1.29.5~ds1-2, 1.29.5~ds1-3, 1.29.5~ds1-3ubuntu0.26.04.1~esm1, 1.29.5~ds1-4
- Fixed versions
- Not specified
- CVEs
- CVE-2021-21404
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:58 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2021-21404
syncthing
Fixed versions: Not specified
syncthing
Fixed versions: Not specified
syncthing
Fixed versions: Not specified
syncthing
Fixed versions: Not specified
syncthing
Fixed versions: Not specified
syncthing
Fixed versions: Not specified
syncthing
Fixed versions: Not specified
Complete source record
{
"id": "d873c5a04b034a6e56192a8c1ea94b12050ee8abe6995dd94aded93eb7609562",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-21404",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-21404",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2021-21404",
"products": [
{
"name": {
"value": "syncthing",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.14.36+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.14.38+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.14.43+ds1-5",
"evidence": "/affected/0/versions"
},
{
"value": "0.14.43+ds1-6",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.4~ds1-4",
"evidence": "/affected/1/versions"
},
{
"value": "1.1.4~ds1-4ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "1.1.4~ds1-4ubuntu1.1",
"evidence": "/affected/1/versions"
},
{
"value": "1.1.4~ds1-4ubuntu1.2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.1~ds1-4",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.0~ds1-3",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.0~ds1-3ubuntu0.1",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.0~ds1-3ubuntu0.2",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.0~ds1-3ubuntu0.3",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.0~ds1-3ubuntu0.3+esm1",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.0~ds1-3ubuntu0.3+esm2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.19.2~ds1-3",
"evidence": "/affected/3/versions"
},
{
"value": "1.27.2~ds4-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.27.2~ds4-1ubuntu0.24.04.1",
"evidence": "/affected/3/versions"
},
{
"value": "1.27.2~ds4-1ubuntu0.24.04.2",
"evidence": "/affected/3/versions"
},
{
"value": "1.27.2~ds4-1ubuntu0.24.04.2+esm1",
"evidence": "/affected/3/versions"
},
{
"value": "1.27.2~ds4-1ubuntu0.24.04.3",
"evidence": "/affected/3/versions"
},
{
"value": "1.27.2~ds4-1ubuntu0.24.04.3+esm1",
"evidence": "/affected/3/versions"
},
{
"value": "1.27.2~ds4-1ubuntu0.24.04.3+esm2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.29.2~ds1-1",
"evidence": "/affected/4/versions"
},
{
"value": "1.29.5~ds1-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.29.5~ds1-3",
"evidence": "/affected/5/versions"
},
{
"value": "1.29.5~ds1-4",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.29.5~ds1-2",
"evidence": "/affected/6/versions"
},
{
"value": "1.29.5~ds1-3",
"evidence": "/affected/6/versions"
},
{
"value": "1.29.5~ds1-3ubuntu0.26.04.1~esm1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2021-21404",
"aliases": [
"UBUNTU-CVE-2021-21404"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/ubuntu/syncthing?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.14.36+ds1-1",
"0.14.38+ds1-1",
"0.14.43+ds1-5",
"0.14.43+ds1-6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21404.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-syncthing-syncthing-dev",
"binary_version": "0.14.43+ds1-6"
},
{
"binary_name": "syncthing",
"binary_version": "0.14.43+ds1-6"
},
{
"binary_name": "syncthing-discosrv",
"binary_version": "0.14.43+ds1-6"
},
{
"binary_name": "syncthing-relaysrv",
"binary_version": "0.14.43+ds1-6"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/ubuntu/syncthing?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.1.4~ds1-4",
"1.1.4~ds1-4ubuntu1",
"1.1.4~ds1-4ubuntu1.1",
"1.1.4~ds1-4ubuntu1.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21404.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-syncthing-syncthing-dev",
"binary_version": "1.1.4~ds1-4ubuntu1.2"
},
{
"binary_name": "syncthing",
"binary_version": "1.1.4~ds1-4ubuntu1.2"
},
{
"binary_name": "syncthing-discosrv",
"binary_version": "1.1.4~ds1-4ubuntu1.2"
},
{
"binary_name": "syncthing-relaysrv",
"binary_version": "1.1.4~ds1-4ubuntu1.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/ubuntu/syncthing?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"1.12.1~ds1-4",
"1.18.0~ds1-3",
"1.18.0~ds1-3ubuntu0.1",
"1.18.0~ds1-3ubuntu0.2",
"1.18.0~ds1-3ubuntu0.3",
"1.18.0~ds1-3ubuntu0.3+esm1",
"1.18.0~ds1-3ubuntu0.3+esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21404.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-syncthing-syncthing-dev",
"binary_version": "1.18.0~ds1-3ubuntu0.3+esm2"
},
{
"binary_name": "syncthing",
"binary_version": "1.18.0~ds1-3ubuntu0.3+esm2"
},
{
"binary_name": "syncthing-discosrv",
"binary_version": "1.18.0~ds1-3ubuntu0.3+esm2"
},
{
"binary_name": "syncthing-relaysrv",
"binary_version": "1.18.0~ds1-3ubuntu0.3+esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/ubuntu/syncthing?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"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",
"1.27.2~ds4-1ubuntu0.24.04.2+esm1",
"1.27.2~ds4-1ubuntu0.24.04.3",
"1.27.2~ds4-1ubuntu0.24.04.3+esm1",
"1.27.2~ds4-1ubuntu0.24.04.3+esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21404.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-syncthing-syncthing-dev",
"binary_version": "1.27.2~ds4-1ubuntu0.24.04.3+esm2"
},
{
"binary_name": "syncthing",
"binary_version": "1.27.2~ds4-1ubuntu0.24.04.3+esm2"
},
{
"binary_name": "syncthing-discosrv",
"binary_version": "1.27.2~ds4-1ubuntu0.24.04.3+esm2"
},
{
"binary_name": "syncthing-relaysrv",
"binary_version": "1.27.2~ds4-1ubuntu0.24.04.3+esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/ubuntu/syncthing?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.29.2~ds1-1",
"1.29.5~ds1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21404.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-syncthing-syncthing-dev",
"binary_version": "1.29.5~ds1-2"
},
{
"binary_name": "syncthing",
"binary_version": "1.29.5~ds1-2"
},
{
"binary_name": "syncthing-discosrv",
"binary_version": "1.29.5~ds1-2"
},
{
"binary_name": "syncthing-relaysrv",
"binary_version": "1.29.5~ds1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/ubuntu/syncthing?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.29.5~ds1-3",
"1.29.5~ds1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21404.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-syncthing-syncthing-dev",
"binary_version": "1.29.5~ds1-4"
},
{
"binary_name": "syncthing",
"binary_version": "1.29.5~ds1-4"
},
{
"binary_name": "syncthing-discosrv",
"binary_version": "1.29.5~ds1-4"
},
{
"binary_name": "syncthing-relaysrv",
"binary_version": "1.29.5~ds1-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/ubuntu/syncthing?arch=source&distro=esm-apps%2Fresolute",
"ecosystem": "Ubuntu:Pro:26.04:LTS"
},
"versions": [
"1.29.5~ds1-2",
"1.29.5~ds1-3",
"1.29.5~ds1-3ubuntu0.26.04.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21404.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-syncthing-syncthing-dev",
"binary_version": "1.29.5~ds1-3ubuntu0.26.04.1~esm1"
},
{
"binary_name": "syncthing",
"binary_version": "1.29.5~ds1-3ubuntu0.26.04.1~esm1"
},
{
"binary_name": "syncthing-discosrv",
"binary_version": "1.29.5~ds1-3ubuntu0.26.04.1~esm1"
},
{
"binary_name": "syncthing-relaysrv",
"binary_version": "1.29.5~ds1-3ubuntu0.26.04.1~esm1"
}
]
}
}
],
"modified": "2026-10-17T12:56:19.654248313Z",
"provider": "osv",
"upstream": [
"CVE-2021-21404"
],
"references": [
"https://ubuntu.com/security/CVE-2021-21404",
"https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97",
"https://github.com/syncthing/syncthing/releases/tag/v1.15.0",
"https://github.com/syncthing/syncthing/security/advisories/GHSA-x462-89pf-6r5h",
"https://pkg.go.dev/github.com/syncthing/syncthing",
"https://www.cve.org/CVERecord?id=CVE-2021-21404"
]
},
"related_cves": [
{
"value": "CVE-2021-21404",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355276,
"published_at": "2021-04-06T20:15:00+00:00"
}