Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-14946
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 19:51 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 19 Dec 2025, 13:02 UTC

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.

osv:CVE-2025-14946
Complete source record
{
  "id": "42b7c55f220157282e20838698c7b2bf645f29916da85b4adf9baa19228ca080",
  "url": "https://osv.dev/vulnerability/CVE-2025-14946",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Libnbd: libnbd: arbitrary code execution via ssh argument injection through a malicious uri",
    "summary": "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.",
    "evidence": "osv:CVE-2025-14946",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-14946",
      "aliases": [
        "CVE-2025-14946"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/nbdkit/libnbd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2dcf73fa25ae6bbf062fa5959d0fca29b3b6ab9f"
                },
                {
                  "fixed": "90c016d69cb169fe200f6a860d06634c9d792279"
                },
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6182a590ced685694574b74884c9cec53668f879"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.22.0"
                      },
                      {
                        "fixed": "1.22.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.23.0"
                      },
                      {
                        "fixed": "1.23.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.23.8",
            "v1.22.4",
            "v1.23.7",
            "v1.22.3",
            "v1.23.6",
            "v1.23.4",
            "v1.22.2",
            "v1.23.3",
            "v1.23.2",
            "v1.23.1",
            "v1.22.1",
            "v1.22.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-14946.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.005638123Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/downloads/content/package-browser/",
        "https://libguestfs.org/libnbd-release-notes-1.24.1.html#Security",
        "https://access.redhat.com/security/cve/CVE-2025-14946",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14946.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-14946",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2423789",
        "https://gitlab.com/nbdkit/libnbd"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-88"
        ],
        "cna_assigner": "redhat",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/14xxx/CVE-2025-14946.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-14946",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 516007,
  "published_at": "2025-12-19T13:02:38.342+00:00"
}