nbdkit — security advisory
A flaw was found in nbdkit due to to improperly caching plaintext state across the STARTTLS encryption boundary. A MitM attacker could use this flaw to inject a plaintext NBD_OPT_STRUCTURED_REPLY before proxying everything else a client sends to the server, potentially leading the client to terminate the NBD session. The highest threat from this vulnerability is to system availability.
- Products
- nbdkit
- Affected versions
- 1.1.10-1, 1.1.11-1, 1.1.11-1build1, 1.12.4-1, 1.12.4-1build1, 1.14.2-3, 1.16.1-2, 1.16.1-3, 1.16.1-3ubuntu1, 1.16.2-1ubuntu1, 1.16.2-1ubuntu2, 1.16.2-1ubuntu3, 1.24.1-2ubuntu1, 1.24.1-2ubuntu2, 1.24.1-2ubuntu3, 1.24.1-2ubuntu4, 1.34.4-1ubuntu1, 1.36.1-1ubuntu1, 1.36.2-1ubuntu1, 1.36.3-1ubuntu10, 1.36.3-1ubuntu2, 1.36.3-1ubuntu3, 1.36.3-1ubuntu9, 1.42.2-1ubuntu1, 1.42.3-1ubuntu1, 1.42.4-1ubuntu1, 1.42.6-1ubuntu1, 1.42.9-1ubuntu1, 1.42.9-1ubuntu2, 1.46.2-1ubuntu2, 1.46.2-4ubuntu1, 1.46.2-5ubuntu1, 1.46.2-7ubuntu1, 1.48.0-1ubuntu1, 1.48.0-1ubuntu2
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3716
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:37 UTC · Revision 1
Source evidence
A flaw was found in nbdkit due to to improperly caching plaintext state across the STARTTLS encryption boundary. A MitM attacker could use this flaw to inject a plaintext NBD_OPT_STRUCTURED_REPLY before proxying everything else a client sends to the server, potentially leading the client to terminate the NBD session. The highest threat from this vulnerability is to system availability.
osv:UBUNTU-CVE-2021-3716
nbdkit
Fixed versions: Not specified
nbdkit
Fixed versions: Not specified
nbdkit
Fixed versions: Not specified
nbdkit
Fixed versions: Not specified
nbdkit
Fixed versions: Not specified
nbdkit
Fixed versions: Not specified
nbdkit
Fixed versions: Not specified
Complete source record
{
"id": "44262817576f19d2a1c8e235a6b03b53931f9a1931318ee3ee3306f6f73b1947",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3716",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-3716",
"summary": "A flaw was found in nbdkit due to to improperly caching plaintext state across the STARTTLS encryption boundary. A MitM attacker could use this flaw to inject a plaintext NBD_OPT_STRUCTURED_REPLY before proxying everything else a client sends to the server, potentially leading the client to terminate the NBD session. The highest threat from this vulnerability is to system availability.",
"evidence": "osv:UBUNTU-CVE-2021-3716",
"products": [
{
"name": {
"value": "nbdkit",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.10-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.1.11-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.1.11-1build1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "nbdkit",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.4-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.12.4-1build1",
"evidence": "/affected/1/versions"
},
{
"value": "1.14.2-3",
"evidence": "/affected/1/versions"
},
{
"value": "1.16.1-2",
"evidence": "/affected/1/versions"
},
{
"value": "1.16.1-3",
"evidence": "/affected/1/versions"
},
{
"value": "1.16.1-3ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "1.16.2-1ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "1.16.2-1ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "1.16.2-1ubuntu3",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "nbdkit",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.24.1-2ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "1.24.1-2ubuntu2",
"evidence": "/affected/2/versions"
},
{
"value": "1.24.1-2ubuntu3",
"evidence": "/affected/2/versions"
},
{
"value": "1.24.1-2ubuntu4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "nbdkit",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.34.4-1ubuntu1",
"evidence": "/affected/3/versions"
},
{
"value": "1.36.1-1ubuntu1",
"evidence": "/affected/3/versions"
},
{
"value": "1.36.2-1ubuntu1",
"evidence": "/affected/3/versions"
},
{
"value": "1.36.3-1ubuntu2",
"evidence": "/affected/3/versions"
},
{
"value": "1.36.3-1ubuntu3",
"evidence": "/affected/3/versions"
},
{
"value": "1.36.3-1ubuntu9",
"evidence": "/affected/3/versions"
},
{
"value": "1.36.3-1ubuntu10",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "nbdkit",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.42.2-1ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "1.42.3-1ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "1.42.4-1ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "1.42.6-1ubuntu1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "nbdkit",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.46.2-1ubuntu2",
"evidence": "/affected/5/versions"
},
{
"value": "1.46.2-4ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "1.46.2-5ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "1.46.2-7ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "1.48.0-1ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "1.48.0-1ubuntu2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "nbdkit",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.42.6-1ubuntu1",
"evidence": "/affected/6/versions"
},
{
"value": "1.42.9-1ubuntu1",
"evidence": "/affected/6/versions"
},
{
"value": "1.42.9-1ubuntu2",
"evidence": "/affected/6/versions"
},
{
"value": "1.46.2-1ubuntu2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "low",
"structured": {
"id": "UBUNTU-CVE-2021-3716",
"aliases": [
"UBUNTU-CVE-2021-3716"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nbdkit",
"purl": "pkg:deb/ubuntu/nbdkit?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.1.10-1",
"1.1.11-1",
"1.1.11-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3716.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nbdkit",
"binary_version": "1.1.11-1build1"
},
{
"binary_name": "nbdkit-plugin-guestfs",
"binary_version": "1.1.11-1build1"
},
{
"binary_name": "nbdkit-plugin-libvirt",
"binary_version": "1.1.11-1build1"
},
{
"binary_name": "nbdkit-plugin-perl",
"binary_version": "1.1.11-1build1"
},
{
"binary_name": "nbdkit-plugin-python",
"binary_version": "1.1.11-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nbdkit",
"purl": "pkg:deb/ubuntu/nbdkit?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.12.4-1",
"1.12.4-1build1",
"1.14.2-3",
"1.16.1-2",
"1.16.1-3",
"1.16.1-3ubuntu1",
"1.16.2-1ubuntu1",
"1.16.2-1ubuntu2",
"1.16.2-1ubuntu3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3716.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nbdkit",
"binary_version": "1.16.2-1ubuntu3"
},
{
"binary_name": "nbdkit-plugin-guestfs",
"binary_version": "1.16.2-1ubuntu3"
},
{
"binary_name": "nbdkit-plugin-libvirt",
"binary_version": "1.16.2-1ubuntu3"
},
{
"binary_name": "nbdkit-plugin-lua",
"binary_version": "1.16.2-1ubuntu3"
},
{
"binary_name": "nbdkit-plugin-perl",
"binary_version": "1.16.2-1ubuntu3"
},
{
"binary_name": "nbdkit-plugin-python",
"binary_version": "1.16.2-1ubuntu3"
},
{
"binary_name": "nbdkit-plugin-ruby",
"binary_version": "1.16.2-1ubuntu3"
},
{
"binary_name": "nbdkit-plugin-tcl",
"binary_version": "1.16.2-1ubuntu3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nbdkit",
"purl": "pkg:deb/ubuntu/nbdkit?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.24.1-2ubuntu1",
"1.24.1-2ubuntu2",
"1.24.1-2ubuntu3",
"1.24.1-2ubuntu4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3716.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nbdkit",
"binary_version": "1.24.1-2ubuntu4"
},
{
"binary_name": "nbdkit-plugin-guestfs",
"binary_version": "1.24.1-2ubuntu4"
},
{
"binary_name": "nbdkit-plugin-libvirt",
"binary_version": "1.24.1-2ubuntu4"
},
{
"binary_name": "nbdkit-plugin-lua",
"binary_version": "1.24.1-2ubuntu4"
},
{
"binary_name": "nbdkit-plugin-perl",
"binary_version": "1.24.1-2ubuntu4"
},
{
"binary_name": "nbdkit-plugin-python",
"binary_version": "1.24.1-2ubuntu4"
},
{
"binary_name": "nbdkit-plugin-ruby",
"binary_version": "1.24.1-2ubuntu4"
},
{
"binary_name": "nbdkit-plugin-tcl",
"binary_version": "1.24.1-2ubuntu4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nbdkit",
"purl": "pkg:deb/ubuntu/nbdkit?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.34.4-1ubuntu1",
"1.36.1-1ubuntu1",
"1.36.2-1ubuntu1",
"1.36.3-1ubuntu2",
"1.36.3-1ubuntu3",
"1.36.3-1ubuntu9",
"1.36.3-1ubuntu10"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3716.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nbdkit",
"binary_version": "1.36.3-1ubuntu10"
},
{
"binary_name": "nbdkit-plugin-guestfs",
"binary_version": "1.36.3-1ubuntu10"
},
{
"binary_name": "nbdkit-plugin-libvirt",
"binary_version": "1.36.3-1ubuntu10"
},
{
"binary_name": "nbdkit-plugin-lua",
"binary_version": "1.36.3-1ubuntu10"
},
{
"binary_name": "nbdkit-plugin-perl",
"binary_version": "1.36.3-1ubuntu10"
},
{
"binary_name": "nbdkit-plugin-python",
"binary_version": "1.36.3-1ubuntu10"
},
{
"binary_name": "nbdkit-plugin-ruby",
"binary_version": "1.36.3-1ubuntu10"
},
{
"binary_name": "nbdkit-plugin-tcl",
"binary_version": "1.36.3-1ubuntu10"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nbdkit",
"purl": "pkg:deb/ubuntu/nbdkit?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.42.2-1ubuntu1",
"1.42.3-1ubuntu1",
"1.42.4-1ubuntu1",
"1.42.6-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3716.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nbdkit",
"binary_version": "1.42.6-1ubuntu1"
},
{
"binary_name": "nbdkit-plugin-guestfs",
"binary_version": "1.42.6-1ubuntu1"
},
{
"binary_name": "nbdkit-plugin-libvirt",
"binary_version": "1.42.6-1ubuntu1"
},
{
"binary_name": "nbdkit-plugin-lua",
"binary_version": "1.42.6-1ubuntu1"
},
{
"binary_name": "nbdkit-plugin-perl",
"binary_version": "1.42.6-1ubuntu1"
},
{
"binary_name": "nbdkit-plugin-python",
"binary_version": "1.42.6-1ubuntu1"
},
{
"binary_name": "nbdkit-plugin-tcl",
"binary_version": "1.42.6-1ubuntu1"
},
{
"binary_name": "nbdkit-plugin-vddk",
"binary_version": "1.42.6-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nbdkit",
"purl": "pkg:deb/ubuntu/nbdkit?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.46.2-1ubuntu2",
"1.46.2-4ubuntu1",
"1.46.2-5ubuntu1",
"1.46.2-7ubuntu1",
"1.48.0-1ubuntu1",
"1.48.0-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3716.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nbdkit",
"binary_version": "1.48.0-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-guestfs",
"binary_version": "1.48.0-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-libvirt",
"binary_version": "1.48.0-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-lua",
"binary_version": "1.48.0-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-perl",
"binary_version": "1.48.0-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-python",
"binary_version": "1.48.0-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-tcl",
"binary_version": "1.48.0-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-vddk",
"binary_version": "1.48.0-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nbdkit",
"purl": "pkg:deb/ubuntu/nbdkit?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.42.6-1ubuntu1",
"1.42.9-1ubuntu1",
"1.42.9-1ubuntu2",
"1.46.2-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3716.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nbdkit",
"binary_version": "1.46.2-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-guestfs",
"binary_version": "1.46.2-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-libvirt",
"binary_version": "1.46.2-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-lua",
"binary_version": "1.46.2-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-perl",
"binary_version": "1.46.2-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-python",
"binary_version": "1.46.2-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-tcl",
"binary_version": "1.46.2-1ubuntu2"
},
{
"binary_name": "nbdkit-plugin-vddk",
"binary_version": "1.46.2-1ubuntu2"
}
]
}
}
],
"modified": "2026-10-17T12:57:13.451999957Z",
"provider": "osv",
"upstream": [
"CVE-2021-3716"
],
"references": [
"https://ubuntu.com/security/CVE-2021-3716",
"https://access.redhat.com/security/cve/CVE-2021-3716",
"https://listman.redhat.com/archives/libguestfs/2021-August/msg00077.html",
"https://www.cve.org/CVERecord?id=CVE-2021-3716"
]
},
"related_cves": [
{
"value": "CVE-2021-3716",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356944,
"published_at": "2022-03-02T23:15:00+00:00"
}