Skip to content
OpenAdvisories
Medium · 4.8 CVE-2025-14946 EUVD-2025-204536GHSA-mcgc-vc2p-cf7x

Libnbd: libnbd: arbitrary code execution via ssh argument injection through a malicious uri

Published Dec 19, 2025 · Updated Nov 5, 2026 · Assigned by redhat

Description

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.

Affected products

VendorProductAffectedFixed
Red Hat libnbd 1.22.0 – < 1.22.5, 1.23.0 – < 1.23.9 1.22.5
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat OpenShift Virtualization 4 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libnbd 1.22.5-1 —
Debian 13 libnbd No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libnbd No fix yet —
Ubuntu 25.10 libnbd No fix yet —
Ubuntu 24.04 LTS libnbd No fix yet —
Ubuntu 22.04 LTS libnbd No fix yet —
Ubuntu 20.04 LTS libnbd No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libnbd 1.24.0-2.1 openSUSE-SU-2025:15842-1

Advisories 1

References