{"id":"CVE-2025-59836","aliases":["CVE-2025-59836","GHSA-4p3p-cr38-v5xp","GO-2025-4021"],"related":[],"kind":"vulnerability","state":"published","title":"Omni is Vulnerable to DoS via Empty Create/Update Resource Requests","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nA 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.\n\n## Details\n\nThe 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.\n\n### Vulnerable Code\n\nThe `isSensitiveSpec` function in `/src/internal/backend/server.go`:\n\n```go\nfunc isSensitiveSpec(resource *resapi.Resource) bool {\n    res, err := grpcomni.CreateResource(resource)  // No nil check on resource.Metadata\n    if err != nil {\n        return false\n    }\n    // ... rest of function\n}\n```\n\nThe `CreateResource` function expects `resource.Metadata` to be non-nil:\n\n```go\nfunc CreateResource(resource *resources.Resource) (cosiresource.Resource, error) {\n    if resource.Metadata.Version == \"\" {  // PANIC: nil pointer dereference\n        resource.Metadata.Version = \"1\"\n    }\n    // ... rest of function\n}\n```\n\nThe `UpdateResource` function has the same issue - it also calls `CreateResource` internally and expects `resource.Metadata` to be non-nil:\n\n```go\nfunc (s *ResourceServer) Update(ctx context.Context, in *resapi.UpdateRequest) (*resapi.UpdateResponse, error) {\n    // ... validation code ...\n    obj, err := CreateResource(in.Resource)  // Same vulnerability here\n    if err != nil {\n        return nil, err\n    }\n    // ... rest of function\n}\n```\n\n### Affected Endpoints\n\n- `resourceServerCreate` - Create Resource API endpoint\n- `resourceServerUpdate` - Update Resource API endpoint\n\nBoth endpoints call `isSensitiveSpec` which triggers the vulnerability when processing empty resources.\n\n## PoC\n\nSend empty resource requests to the affected API endpoints:\n\n```bash\n# Create endpoint\ncurl -X POST \"https://your-omni-instance/api/omni.resources.ResourceService/Create\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{}'\n\n# Update endpoint  \ncurl -X POST \"https://your-omni-instance/api/omni.resources.ResourceService/Update\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{}'\n```\n\n**Expected Result**: Server panic with segmentation fault:\n\n```\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x293d970]\n\ngoroutine 3305 [running]:\ngithub.com/siderolabs/omni/internal/backend/grpc.CreateResource(0x3495420?)\n        /src/internal/backend/grpc/resource.go:364 +0x20\n```\n\n## Impact\n\n- **Vulnerability Type**: Denial of Service (DoS)\n- **Severity**: High - Complete API server crash requiring manual restart if no restart policy is applied.\n- **Authentication**: None required (unauthenticated)\n- **Complexity**: Low (simple HTTP request)\n\n## Mitigation\n\nAdd nil checks in the `isSensitiveSpec` function:\n\n```go\nfunc isSensitiveSpec(resource *resapi.Resource) bool {\n    if resource == nil || resource.Metadata == nil {\n        return false\n    }\n    res, err := grpcomni.CreateResource(resource)\n    if err != nil {\n        return false\n    }\n    // ... rest of function\n}\n```\n\n## Credits\n- @1c3t0rm\n- @nicomda","format":"markdown","source":"ghsa"},{"lang":"en","text":"Omni is Vulnerable to DoS via Empty Create/Update Resource Requests in github.com/siderolabs/omni","format":"markdown","source":"go"},{"lang":"es","text":"Omni gestiona Kubernetes en metal desnudo, máquinas virtuales o en una nube. Antes de las versiones 1.1.5 y 1.0.2, existe una vulnerabilidad de desreferencia de puntero nulo en el Servicio de Recursos de Omni que permite a usuarios no autenticados causar un pánico del servidor y denegación de servicio enviando solicitudes de creación/actualización de recursos vacías a través de los puntos finales de la API. La vulnerabilidad existe en la función isSensitiveSpec, que llama a grpcomni.CreateResource sin verificar si el campo de metadatos del recurso es nulo. Cuando se crea un recurso con un campo de Metadatos vacío, la función CreateResource intenta acceder a resource.Metadata.Version, causando un fallo de segmentación. Esta vulnerabilidad está corregida en las versiones 1.1.5 y 1.0.2.","source":"nvd"}],"published":"2025-10-13T19:59:17.000Z","modified":"2026-10-08T12:10:00.217Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-476","CWE-703"],"affected":[{"ranges":[{"version":">= 1.1.0-beta.0, < 1.1.5","status":"affected"},{"version":"< 1.0.2","status":"affected"}],"vendor":"siderolabs","product":"omni","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.1.0-beta.0","status":"affected","fixed":"1.1.5"}],"ecosystem":"Go","package":"github.com/siderolabs/omni","purl":"pkg:golang/github.com/siderolabs/omni","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.2"}],"ecosystem":"Go","package":"github.com/siderolabs/omni","purl":"pkg:golang/github.com/siderolabs/omni","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.2"},{"type":"semver","introduced":"1.1.0-beta.0","status":"affected","fixed":"1.1.5"}],"ecosystem":"Go","package":"github.com/siderolabs/omni","purl":"pkg:golang/github.com/siderolabs/omni","source":"go"},{"ranges":[{"status":"affected","fixed":"1.0.2"},{"status":"affected","introduced":"1.1.0","fixed":"1.1.5"}],"vendor":"siderolabs","product":"omni","cpe":"cpe:2.3:a:siderolabs:omni:*:*:*:*:*:kubernetes:*:*","source":"nvd"}],"references":[{"url":"https://github.com/siderolabs/omni/security/advisories/GHSA-4p3p-cr38-v5xp","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/siderolabs/omni/commit/1396083f766a1b0380e9949968d7fc17b7afecaa","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/siderolabs/omni/commit/1fd954af64985a8b3dbf5b11deddbf7cd953f5ae","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59836","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/siderolabs/omni","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-4021","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-10-14T14:28:04.746Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59836","url":"https://www.cve.org/CVERecord?id=CVE-2025-59836","licence":"CVE Terms of Use","modified":"2025-10-14T14:28:17.108Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4p3p-cr38-v5xp","url":"https://github.com/advisories/GHSA-4p3p-cr38-v5xp","licence":"CC-BY-4.0","modified":"2025-11-05T22:07:29.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4021","url":"https://pkg.go.dev/vuln/GO-2025-4021","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:59.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59836","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59836","licence":"Public domain","modified":"2026-10-08T12:10:00.217Z"}],"updatedAt":"2026-11-25T22:59:05.923Z","epss":{"score":0.00582,"percentile":0.49157,"date":"2026-12-01T12:00:22.000Z"}}