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

Medium 4.8 Published Updated

A malicious URI can inject SSH arguments in libnbd, allowing arbitrary code execution with user privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-14946?

CVE-2025-14946 is a medium-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 19 Dec 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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

Weakness: CWE-88

Which versions are affected by CVE-2025-14946?

Linux distribution packages (1)
libnbd openSUSE:TumbleweedAll versions1.24.0-2.1

How do I fix CVE-2025-14946?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-14946 being exploited?

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

Sources

Also known as DEBIAN-CVE-2025-14946, GHSA-mcgc-vc2p-cf7x, UBUNTU-CVE-2025-14946, openSUSE-SU-2025:15842-1.

Is CVE-2025-14946 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free