Описание
Omni is Vulnerable to DoS via Empty Create/Update Resource Requests
Summary
A nil pointer dereference vulnerability in the Omni Resource Service allows unauthenticated users to cause a server panic and denial of service by sending empty create/update resource requests through the API endpoints.
Details
The vulnerability exists in the isSensitiveSpec function which calls grpcomni.CreateResource without checking if the resource's metadata field is nil. When a resource is created with an empty Metadata field, the CreateResource function attempts to access resource.Metadata.Version causing a segmentation fault.
Vulnerable Code
The isSensitiveSpec function in /src/internal/backend/server.go:
The CreateResource function expects resource.Metadata to be non-nil:
The UpdateResource function has the same issue - it also calls CreateResource internally and expects resource.Metadata to be non-nil:
Affected Endpoints
resourceServerCreate- Create Resource API endpointresourceServerUpdate- Update Resource API endpoint
Both endpoints call isSensitiveSpec which triggers the vulnerability when processing empty resources.
PoC
Send empty resource requests to the affected API endpoints:
Expected Result: Server panic with segmentation fault:
Impact
- Vulnerability Type: Denial of Service (DoS)
- Severity: High - Complete API server crash requiring manual restart if no restart policy is applied.
- Authentication: None required (unauthenticated)
- Complexity: Low (simple HTTP request)
Mitigation
Add nil checks in the isSensitiveSpec function:
Credits
- @1c3t0rm
- @nicomda
Ссылки
- https://github.com/siderolabs/omni/security/advisories/GHSA-4p3p-cr38-v5xp
- https://nvd.nist.gov/vuln/detail/CVE-2025-59836
- https://github.com/siderolabs/omni/commit/1396083f766a1b0380e9949968d7fc17b7afecaa
- https://github.com/siderolabs/omni/commit/1fd954af64985a8b3dbf5b11deddbf7cd953f5ae
- https://pkg.go.dev/vuln/GO-2025-4021
Пакеты
github.com/siderolabs/omni
>= 1.1.0-beta.0, <= 1.1.4
1.1.5
github.com/siderolabs/omni
<= 1.0.1
1.0.2
Связанные уязвимости
Omni manages Kubernetes on bare metal, virtual machines, or in a cloud. Prior to 1.1.5 and 1.0.2, there is a nil pointer dereference vulnerability in the Omni Resource Service allows unauthenticated users to cause a server panic and denial of service by sending empty create/update resource requests through the API endpoints. The vulnerability exists in the isSensitiveSpec function which calls grpcomni.CreateResource without checking if the resource's metadata field is nil. When a resource is created with an empty Metadata field, the CreateResource function attempts to access resource.Metadata.Version causing a segmentation fault. This vulnerability is fixed in 1.1.5 and 1.0.2.