CVE-2025-14946Libnbd: libnbd: arbitrary code execution via ssh argument injection through a malicious…
A flaw was found in libnbd. A malicious actor could exploit this by convincing libnbd to open a specially crafted Uniform Resource Identifier (URI). This vulnerability arises because non-standard hostnames starting with '-o' are incorrectly interpreted as arguments to the Secure Shell (SSH) process, rather than as hostnames. This could lead to arbitrary code execution with the privileges of the user running libnbd.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libnbd | Under investigation | UBUNTU-CVE-2025-14946 | |
| Ubuntu 25.10 | libnbd | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-14946 | |
| Ubuntu 24.04 | libnbd | Under investigation | UBUNTU-CVE-2025-14946 | |
| Ubuntu 22.04 | libnbd | Under investigation | UBUNTU-CVE-2025-14946 | |
| Ubuntu 20.04 | libnbd | Fix pending | UBUNTU-CVE-2025-14946 | |
| Debian 14 | libnbd | Fixed | 1.22.5-1 | DEBIAN-CVE-2025-14946 |
| Debian 13 | libnbd | Fix pending | DEBIAN-CVE-2025-14946 | |
| Red Hat Enterprise Linux 10 | libnbd | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | libnbd-bash-completion | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | libnbd-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | nbdfuse | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | ocaml-libnbd | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | ocaml-libnbd-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | python3-libnbd | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | libnbd | Not affected | ||
| Red Hat Enterprise Linux 9 | libnbd-bash-completion | Not affected | ||
| Red Hat Enterprise Linux 9 | libnbd-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | nbdfuse | Not affected | ||
| Red Hat Enterprise Linux 9 | ocaml-libnbd | Not affected | ||
| Red Hat Enterprise Linux 9 | ocaml-libnbd-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-libnbd | Not affected | ||
| Red Hat Enterprise Linux 8 | libnbd | Not affected | ||
| Red Hat Enterprise Linux 8 | libnbd-bash-completion | Not affected | ||
| Red Hat Enterprise Linux 8 | libnbd-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | nbdfuse | Not affected | ||
| Red Hat Enterprise Linux 8 | ocaml-libnbd | Not affected | ||
| Red Hat Enterprise Linux 8 | ocaml-libnbd-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-libnbd | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat libnbd: affected: 1.22.0 to before 1.22.5, 1.23.0 to before 1.23.9; fixed in
1.22.5,1.23.9 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Virtualization 4
Workaround: To mitigate this issue, ensure that applications utilizing libnbd do not process Uniform Resource Identifiers (URIs) from untrusted or unverified sources. This vulnerability requires a malicious actor to convince libnbd to open a specially crafted URI, therefore restricting the sources of URIs processed by libnbd can reduce exposure.
References
- https://access.redhat.com/security/cve/CVE-2025-14946
- https://bugzilla.redhat.com/show_bug.cgi?id=2423789
- https://libguestfs.org/libnbd-release-notes-1.24.1.html#Security
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.