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
- Not specified
- Fixed versions
- 1.12.1~ds1-3
- CVEs
- CVE-2021-21404
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:33 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:DEBIAN-CVE-2021-21404
syncthing
Fixed versions: 1.12.1~ds1-3
syncthing
Fixed versions: 1.12.1~ds1-3
syncthing
Fixed versions: 1.12.1~ds1-3
Complete source record
{
"id": "2de1e6c254c8f0f09608d31839c739780b9132864ad1bcf96d3f9d8f733e2847",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-21404",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-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:DEBIAN-CVE-2021-21404",
"products": [
{
"name": {
"value": "syncthing",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.12.1~ds1-3",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.12.1~ds1-3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "syncthing",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.12.1~ds1-3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-21404",
"aliases": [
"DEBIAN-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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.1~ds1-3"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/debian/syncthing?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21404.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.1~ds1-3"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/debian/syncthing?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21404.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12.1~ds1-3"
}
]
}
],
"package": {
"name": "syncthing",
"purl": "pkg:deb/debian/syncthing?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21404.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:25.307352181Z",
"provider": "osv",
"upstream": [
"CVE-2021-21404"
],
"references": [
"https://security-tracker.debian.org/tracker/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": 421451,
"published_at": "2021-04-06T20:15:13.49+00:00"
}