CVE-2026-15268: Libvirt: local privilege escalation via nested ext uri

Published Dec 1, 2026
·
Updated

A flaw was found in libvirt. An unprivileged local user with access to a read-only socket can execute arbitrary commands by submitting a crafted nested Uniform Resource Identifier (URI). Because the privileged daemon executes external helper binaries during connection setup prior to applying read-only access restrictions, an attacker can exploit this issue to achieve local privilege escalation.

Other sources

An unprivileged local user who can reach a libvirt read-only Unix socket can send a nested URI through REMOTEPROCCONNECTOPEN that selects the ext transport. The daemon forces VIRCONNECTRO, but it still opens the attacker-controlled nested URI inside the privileged daemon process.

For +ext URIs, the attacker-controlled command= value is used as the external helper binary passed to virNetClientNewExternal(). The helper is started during connection setup, before later read-only API restrictions can prevent side effects.

The attacker needs: 1. A local unprivileged account. 2. Access to a libvirt read-only Unix socket. 3. The ability to place an executable helper at a path visible to the daemon.

The attack path is: read-only socket client -> REMOTEPROCCONNECTOPEN with nested storage+ext:// URI -> privileged daemon calls virConnectOpenAuth() -> remote driver extracts attacker-controlled command= -> virNetClientNewExternal() starts the helper -> helper runs with the daemon uid (root)

The issue is in the remote connection setup path used by privileged libvirt daemons: - src/remote/remotedaemondispatch.c (remoteDispatchConnectOpen, remoteOpenConn) - src/remote/remotedriver.c (doRemoteOpenExtractURIArgs, doRemoteOpen) - src/rpc/virnetclient.c (virNetClientNewExternal) - src/rpc/virnetsocket.c (virNetSocketNewConnectExternal)

The validated service was virtstoraged reached through its read-only socket. This is a daemon/library issue; virsh is only one client that can exercise the affected API.

Upstream fix: https://gitlab.com/libvirt/libvirt/-/commit/f74495c7a157618e3df6fa61079678084c4cc685

The fix adds remoteCheckPermittedConnURI() which rejects any URI whose scheme contains a transport component (+ character), blocking all transports (+ext, +ssh, +tls, +unix, etc.) in nested CONNECTOPEN URIs unconditionally.

— Red Hat

Affected Software

1 affected component
libvirt libvirt

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch f74495c7a157618e3df6fa61079678084c4cc685

Event History

Dec 1, 2026
Data Sourced
via Red Hat·03:05 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·04:42 PM
Data Sourced
via MITRE·04:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Systems are exposed when an unprivileged local user can access a libvirt read-only Unix socket and can place an executable helper at a path visible to the privileged libvirt daemon. Remote-only access is not described as an attack path.

2

What does an attacker need to exploit it?

The attacker needs a local unprivileged account, access to a libvirt read-only Unix socket, and the ability to place an executable helper binary where the daemon can access it. They submit a crafted nested URI through REMOTE_PROC_CONNECT_OPEN that selects the ext transport and supplies the helper through the command= value.

3

Why does read-only socket access still permit privilege escalation?

The privileged daemon opens the attacker-controlled nested URI and starts the external helper during connection setup. This occurs before later read-only API restrictions are applied, so those restrictions do not prevent the helper's side effects.

4

What can be done if patching is not immediately possible?

Restrict unprivileged local users' access to libvirt read-only Unix sockets. Also prevent such users from placing or controlling executable files at paths visible to the privileged libvirt daemon.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203