# CVE-2024-7383: Libnbd: nbd server improper certificate validation

> Improper certificate validation in libnbd allows man-in-the-middle attacks on NBD traffic, enabling data interception or modification.

- **Severity:** High 7.4 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 5 Aug 2024
- **Updated:** 25 Feb 2026
- **Also known as:** ALSA-2024:6757, AZL-47428, AZL-47436, CLSA-2025-1764772736, DEBIAN-CVE-2024-7383, GHSA-rqmr-f8r9-69wq, RHSA-2024:6757, RLSA-2024:6757, SUSE-SU-2024:2789-1, SUSE-SU-2024:2813-1, UBUNTU-CVE-2024-7383, openSUSE-SU-2024:14240-1

## What is CVE-2024-7383?

CVE-2024-7383 is a high-severity vulnerability in Red Hat Enterprise Linux 10, published on 5 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A flaw was found in libnbd. The client did not always correctly verify the NBD server's certificate when using TLS to connect to an NBD server. This issue allows a man-in-the-middle attack on NBD traffic.

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2024-7383?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libnbd` | AlmaLinux:9 | All versions | 1.18.1-4.el9_4 |
| `libnbd-bash-completion` | AlmaLinux:9 | All versions | 1.18.1-4.el9_4 |
| `libnbd-devel` | AlmaLinux:9 | All versions | 1.18.1-4.el9_4 |
| `nbdfuse` | AlmaLinux:9 | All versions | 1.18.1-4.el9_4 |
| `ocaml-libnbd` | AlmaLinux:9 | All versions | 1.18.1-4.el9_4 |
| `ocaml-libnbd-devel` | AlmaLinux:9 | All versions | 1.18.1-4.el9_4 |
| `python3-libnbd` | AlmaLinux:9 | All versions | 1.18.1-4.el9_4 |
| `libnbd` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `libnbd-bash-completion` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `libnbd-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `libnbd-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `nbdfuse` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `nbdfuse-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `ocaml-libnbd-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `python3-libnbd` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `python3-libnbd-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.18.1-4.el9_4 |
| `libnbd-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `libnbd-debugsource` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `libnbd-devel` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `nbdfuse-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `ocaml-libnbd` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `ocaml-libnbd-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `ocaml-libnbd-devel` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `python3-libnbd-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:1.18.1-4.el9_4 |
| `libnbd` | Rocky Linux:9 | All versions | 0:1.18.1-4.el9_4 |
| `libnbd` | SUSE:Linux Enterprise Module for Server Applications 15 SP6 | All versions | 1.18.5-150600.18.3.1 |
| `libnbd` | openSUSE:Leap 15.5 | All versions | 1.18.5-150300.8.21.1 |
| `libnbd` | openSUSE:Leap 15.6 | All versions | 1.18.5-150600.18.3.1 |
| `libnbd` | openSUSE:Tumbleweed | All versions | 1.20.2-1.1 |

## How do I fix CVE-2024-7383?

Apply the vendor's patch.

## Is CVE-2024-7383 being exploited?

There is no known exploitation of CVE-2024-7383 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-7383 and fix it if it is affected.

What it is: CVE-2024-7383 is a high-severity vulnerability in Red Hat Enterprise Linux 10, published on 5 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-7383 in the wild and no public exploit code.

Affected product: Red Hat Enterprise Linux 10. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-7383/ (Markdown: https://insights.sbomify.com/CVE-2024-7383/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-7383
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-7383
- OSV: https://osv.dev/vulnerability/CVE-2024-7383

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-7383/
Summaries are generated and may contain mistakes; the official description above is the record.
