CVEfocus › CVE database › CVE-2025-14946

CVE-2025-14946Libnbd: libnbd: arbitrary code execution via ssh argument injection through a malicious…

CVSS 4.8 MediumEPSS 0.2% (higher than 8% of CVEs)Published 2025-12-19Updated 2026-11-24Assigner: redhat

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.

CWE-88

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

1Fixed
9Fix pending
3Under investigation
1Will not fix
14Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libnbdUnder investigationUBUNTU-CVE-2025-14946
Ubuntu 25.10libnbdWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-14946
Ubuntu 24.04libnbdUnder investigationUBUNTU-CVE-2025-14946
Ubuntu 22.04libnbdUnder investigationUBUNTU-CVE-2025-14946
Ubuntu 20.04libnbdFix pendingUBUNTU-CVE-2025-14946
Debian 14libnbdFixed1.22.5-1DEBIAN-CVE-2025-14946
Debian 13libnbdFix pendingDEBIAN-CVE-2025-14946
Red Hat Enterprise Linux 10libnbdFix pending
Affected
Red Hat Enterprise Linux 10libnbd-bash-completionFix pending
Affected
Red Hat Enterprise Linux 10libnbd-develFix pending
Affected
Red Hat Enterprise Linux 10nbdfuseFix pending
Affected
Red Hat Enterprise Linux 10ocaml-libnbdFix pending
Affected
Red Hat Enterprise Linux 10ocaml-libnbd-develFix pending
Affected
Red Hat Enterprise Linux 10python3-libnbdFix pending
Affected
Red Hat Enterprise Linux 9libnbdNot affected
Red Hat Enterprise Linux 9libnbd-bash-completionNot affected
Red Hat Enterprise Linux 9libnbd-develNot affected
Red Hat Enterprise Linux 9nbdfuseNot affected
Red Hat Enterprise Linux 9ocaml-libnbdNot affected
Red Hat Enterprise Linux 9ocaml-libnbd-develNot affected
Red Hat Enterprise Linux 9python3-libnbdNot affected
Red Hat Enterprise Linux 8libnbdNot affected
Red Hat Enterprise Linux 8libnbd-bash-completionNot affected
Red Hat Enterprise Linux 8libnbd-develNot affected
Red Hat Enterprise Linux 8nbdfuseNot affected
Red Hat Enterprise Linux 8ocaml-libnbdNot affected
Red Hat Enterprise Linux 8ocaml-libnbd-develNot affected
Red Hat Enterprise Linux 8python3-libnbdNot 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.

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

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.