/

CVE-2026-122224

Severity:

HIGH RISK

(8.1)

Missing Authorization (CWE-862) in WebVirtCloud APIs

CVE-2026-122224

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Unauthorized Virtual-Machine Operations and Resource Creation

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

WebVirtCloud has API endpoints for migration and instance creation that lack explicit permission checks. An authenticated low-privileged user may be able to perform virtual-machine operations on other users' machines and create volumes or domains on compute hosts.

WebVirtCloud has API endpoints for migration and instance creation that lack explicit permission checks. An authenticated low-privileged user may be able to perform virtual-machine operations on other users' machines and create volumes or domains on compute hosts.

Affected context

The issue affects WebVirtCloud API routes handled by MigrateViewSet and CreateInstanceViewSet. These views do not declare permission_classes, so Django REST Framework may apply its AllowAny default unless a stricter global permission policy is configured. The risk depends on the effective API configuration and the compute resources reachable by the application.

The issue affects WebVirtCloud API routes handled by MigrateViewSet and CreateInstanceViewSet. These views do not declare permission_classes, so Django REST Framework may apply its AllowAny default unless a stricter global permission policy is configured. The risk depends on the effective API configuration and the compute resources reachable by the application.

Exploit preconditions

  • Attack surface: The API routes for migration and instance creation must be reachable.
  • Required access: The reported scenario involves a low-privileged authenticated user; effective global permissions and deployment controls may affect access.
  • Trigger point: Requests handled by /api/v1/migrate/ or the compute instance creation endpoint.
  • Why exploitation is possible: The views lack explicit authorization checks, potentially allowing requests without verifying that the user is permitted to act on the targeted virtual machines or compute resources.
  • Attack surface: The API routes for migration and instance creation must be reachable.
  • Required access: The reported scenario involves a low-privileged authenticated user; effective global permissions and deployment controls may affect access.
  • Trigger point: Requests handled by /api/v1/migrate/ or the compute instance creation endpoint.
  • Why exploitation is possible: The views lack explicit authorization checks, potentially allowing requests without verifying that the user is permitted to act on the targeted virtual machines or compute resources.

Why this happens

The views omit access-control declarations that would restrict which users can invoke sensitive operations. When no view-level permission policy is set, Django REST Framework can fall back to its configured default, which may be AllowAny. This is a missing authorization weakness, mapped to CWE-862, because the application does not adequately verify a caller's permission before performing protected actions.

The views omit access-control declarations that would restrict which users can invoke sensitive operations. When no view-level permission policy is set, Django REST Framework can fall back to its configured default, which may be AllowAny. This is a missing authorization weakness, mapped to CWE-862, because the application does not adequately verify a caller's permission before performing protected actions.

Potential impact

  • Users may be able to migrate or undefine virtual machines belonging to others.
  • Attackers could create volumes or domains on compute hosts.
  • Unauthorized operations may disrupt workloads or consume infrastructure resources.
  • Virtual-machine management actions could affect the confidentiality, integrity, or availability of tenant environments.
  • Users may be able to migrate or undefine virtual machines belonging to others.
  • Attackers could create volumes or domains on compute hosts.
  • Unauthorized operations may disrupt workloads or consume infrastructure resources.
  • Virtual-machine management actions could affect the confidentiality, integrity, or availability of tenant environments.

General mitigation guidance

Defensive patterns focus on enforcing authorization at every sensitive API boundary:

  • Apply explicit, deny-by-default permission policies to views that perform privileged operations.
  • Check ownership and resource-level permissions before acting on a virtual machine or compute host.
  • Reduce trust in client-supplied resource identifiers and derive permitted scope from the authenticated user's context.
  • Limit the privileges of the application account and its access to compute infrastructure.
  • Use centralized policy enforcement so endpoint-specific checks cannot be omitted silently.

Defensive patterns focus on enforcing authorization at every sensitive API boundary:

  • Apply explicit, deny-by-default permission policies to views that perform privileged operations.
  • Check ownership and resource-level permissions before acting on a virtual machine or compute host.
  • Reduce trust in client-supplied resource identifiers and derive permitted scope from the authenticated user's context.
  • Limit the privileges of the application account and its access to compute infrastructure.
  • Use centralized policy enforcement so endpoint-specific checks cannot be omitted silently.

How teams detect issues like this

Review API views that perform migrations, instance creation, or other state-changing operations for missing permission declarations and object-level authorization checks. Static analysis and code review can flag sensitive views without explicit access-control policies, while API tests can verify that users with different roles receive only the operations and resources they are authorized to access. Policy enforcement can require explicit permissions for all sensitive endpoints.

Review API views that perform migrations, instance creation, or other state-changing operations for missing permission declarations and object-level authorization checks. Static analysis and code review can flag sensitive views without explicit access-control policies, while API tests can verify that users with different roles receive only the operations and resources they are authorized to access. Policy enforcement can require explicit permissions for all sensitive endpoints.

Sources

SourceLink
github.comgithub.com/catborise/webvirtcloud/commit/1227674d8f5a5230e5c654267773aca4ebc5c717
github.comgithub.com/retspen/webvirtcloud
github.comgithub.com/retspen/webvirtcloud/blob/bb920b0a7ffdf00c09e994dc2e45f05bc9ec1bb3/instances/api/viewsets.py#L125-L162
github.comgithub.com/retspen/webvirtcloud/blob/bb920b0a7ffdf00c09e994dc2e45f05bc9ec1bb3/instances/api/viewsets.py#L174-L183
github.comgithub.com/retspen/webvirtcloud/issues/689
hackmd.iohackmd.io/@hieuPenguinnn/webvirtcloud-api-missing-authz-migrate-create
vulncheck.comvulncheck.com/advisories/webvirtcloud-through-commit-bb920b0-missing-authorization-in-rest-api-migrate-and-create-endpoints

Frequently asked

questions

The affected API routes are the attack surface, so exposure depends on network reachability and deployment configuration.

The reported scenario involves a low-privileged authenticated user. Effective global permissions and other deployment controls may change which callers can reach the views.

Use explicit, deny-by-default permissions and verify authorization for each targeted virtual machine and compute resource before performing an operation.

Require explicit access-control policies for sensitive endpoints, add role- and ownership-based API tests, and review state-changing views for object-level authorization checks.

The affected API routes are the attack surface, so exposure depends on network reachability and deployment configuration.

The reported scenario involves a low-privileged authenticated user. Effective global permissions and other deployment controls may change which callers can reach the views.

Use explicit, deny-by-default permissions and verify authorization for each targeted virtual machine and compute resource before performing an operation.

Require explicit access-control policies for sensitive endpoints, add role- and ownership-based API tests, and review state-changing views for object-level authorization checks.

Find out what's already
exploitable in your codebase.