CVE Database›Document archive›CVE-2021-3716

CVE-2021-3716

nbdkit: NBD_OPT_STRUCTURED_REPLY injection on STARTTLS

Loading…

Severity

Low

Red Hat Product Security

3.5

CVSS 3.1

Review impact separately from score.

Published · August 16, 2021

Updated · June 28, 2026

Description

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.

Statement

Red Hat Enterprise Linux 7 is not affected by this flaw as it ships an old version of nbdkit (v1.8.0) that does not include support for NBD Structured Replies.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

In general, it is recommended to use forced TLS (--tls=require) to avoid MitM attacks in the first place. If opportunistic encryption must be used (--tls=yes), ensure that clients that want to use TLS will request structured replies after the encryption is enabled. If this cannot be done, apply network filtering (e.g., firewall, TCP wrappers, etc.) or use a Unix domain socket instead of TCP to ensure that untrusted clients cannot connect to nbdkit as a MitM attacker.

CVSS / CWE

CVSS 3.1 · 3.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

CWE-924 · Improper Enforcement of Message Integrity During Transmission in a Communication Channel