CVE-2021-3716: Low severity nbdkit vulnerability

Published Aug 17, 2021
·
Updated

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 NBDOPTSTRUCTUREDREPLY 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.

Other sources

https://nostarttls.secvuln.info/ pointed out a common implementation flaw in various SMTP and IMAP servers with regards to improperly caching plaintext state across the STARTTLS encryption boundary. It turns out that nbdkit has the same vulnerability in regards to the NBD protocol: an attacker is able to inject a plaintext NBDOPTSTRUCTUREDREPLY before proxying everything else a client sends to the server; if the server then acts on that plaintext request (as nbdkit did before this patch), then the server ends up sending structured replies to at least NBDCMDREAD, even though the client was not expecting them. The NBD spec has been recently tightened to declare the nbdkit behavior to be a security hole.

Depending on how the client handles unexpected structured replies, the attacker can use this to form a denial of service attack on the client, distinct from a trivial protocol downgrade attack. Please refer to the upstream announcement (comment#10) for additional details.

Red Hat

Affected Software

9 affected componentsFixes available
redhat/nbdkit<1.24.6
1.24.6
redhat/nbdkit<1.26.5
1.26.5
redhat/nbdkit<1.27.6
1.27.6
Nbdkit Project Nbdkit>=1.11.8<1.24.6
Nbdkit Project Nbdkit>=1.25.1<1.26.5
Nbdkit Project Nbdkit>=1.27.1<1.27.6
redhat Enterprise Linux=8.0
redhat Enterprise Linux=8.0
Microsoft cbl2 nbdkit

Event History

Mar 2, 2022
CVE Published
via MITRE·10:19 PM
Data Sourced
via MITRE·10:19 PM
DescriptionWeakness
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Updated
via Microsoft·11:11 PM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-3716?

CVE-2021-3716 is a vulnerability found in nbdkit that allows a MitM attacker to inject a plaintext NBD_OPT_STRUCTURED_REPLY before proxying client requests to the server.

2

How does CVE-2021-3716 affect nbdkit?

CVE-2021-3716 affects nbdkit by improperly caching plaintext state across the STARTTLS encryption boundary, leading to potential termination of client connections.

3

What is the severity of CVE-2021-3716?

CVE-2021-3716 has a severity rating of 3.1 (low).

4

How can I fix CVE-2021-3716?

To fix CVE-2021-3716, upgrade nbdkit to version 1.24.6 or higher.

5

Where can I find more information about CVE-2021-3716?

You can find more information about CVE-2021-3716 at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203