CVE-2025-59836: Github.com/siderolabs/omni Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-4p3p-cr38-v5xp
CVSS 5.3
CWE-476
Published
Advisory Summary

CVE-2025-59836 is a MODERATE (CVSS 5.3) remote code execution vulnerability (CWE-476: NULL Pointer Dereference) affecting Github.com/siderolabs/omni libraries in the Go ecosystem. The issue involves omni is vulnerable to dos via empty create/update resource requests. Remediation is available by upgrading affected packages to version 1.1.5, 1.0.2.

CVE-2025-59836 at a Glance

CVE Identifier CVE-2025-59836
GHSA Identifier GHSA-4p3p-cr38-v5xp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-476: NULL Pointer Dereference
Affected Product Github.com/siderolabs/omni
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-59836

To remediate this vulnerability, upgrade all affected Github.com/siderolabs/omni dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/siderolabs/omni fixed: 1.1.5
Upgrade github.com/siderolabs/omni to 1.1.5
github.com/siderolabs/omni fixed: 1.0.2
Upgrade github.com/siderolabs/omni to 1.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/siderolabs/omni

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-59836, inspect your project dependencies for Github.com/siderolabs/omni:

inspect dependencies for github.com/siderolabs/omni

Analyze the terminal output to locate any version of Github.com/siderolabs/omni in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. In Github.com/siderolabs/omni, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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`: ```go func isSensitiveSpec(resource *resapi.Resource) bool { res, err := grpcomni.CreateResource(resource) // No nil check on resource.Metadata if err != nil { return false } // ... rest of function } ``` The `CreateResource` function expects `resource.Metadata` to be non-nil: ```go func CreateResource(resource *resources.Resource) (cosiresource.Resource, error) { if resource.Metadata.Version == "" { // PANIC: nil pointer dereference resource.Metadata.Version = "1" } // ... rest of function } ``` The `UpdateResource` function has the same issue - it also calls `CreateResource` internally and expects `resource.Metadata` to be non-nil: ```go func (s *ResourceServer) Update(ctx context.Context, in *resapi.UpdateRequest) (*resapi.UpdateResponse, error) { // ... validation code ... obj, err := CreateResource(in.Resource) // Same vulnerability here if err != nil { return nil, err } // ... rest of function } ``` ### Affected Endpoints - `resourceServerCreate` - Create Resource API endpoint - `resourceServerUpdate` - 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: ```bash # Create endpoint curl -X POST "https://your-omni-instance/api/omni.resources.ResourceService/Create" \ -H "Content-Type: application/json" \ -d '{}' # Update endpoint curl -X POST "https://your-omni-instance/api/omni.resources.ResourceService/Update" \ -H "Content-Type: application/json" \ -d '{}' ``` **Expected Result**: Server panic with segmentation fault: ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x293d970] goroutine 3305 [running]: github.com/siderolabs/omni/internal/backend/grpc.CreateResource(0x3495420?) /src/internal/backend/grpc/resource.go:364 +0x20 ``` ## 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: ```go func isSensitiveSpec(resource *resapi.Resource) bool { if resource == nil || resource.Metadata == nil { return false } res, err := grpcomni.CreateResource(resource) if err != nil { return false } // ... rest of function } ``` ## Credits - @1c3t0rm - @nicomda

CVE-2025-59836 Affected Github.com/siderolabs/omni Versions

2 component(s)
Fixed Versions:
1.1.51.0.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/siderolabs/omni
Go
≥ 1.1.0-beta.0
< 1.1.5
1.1.5
github.com/siderolabs/omni
Go
< 1.0.2
1.0.2

References

Frequently Asked Questions

What is CVE-2025-59836?
CVE-2025-59836 is a security vulnerability in Github.com/siderolabs/omni involving Omni is Vulnerable to DoS via Empty Create/Update Resource Requests under CWE-476: NULL Pointer Dereference.
Which Github.com/siderolabs/omni versions are affected?
Affected versions include releases prior to 1.1.5, 1.0.2 across affected packages: github.com/siderolabs/omni.
What version fixes CVE-2025-59836?
Upgrading to 1.1.5, 1.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/siderolabs/omni affected?
Yes, github.com/siderolabs/omni is affected in releases prior to 1.1.5, 1.0.2. Upgrade your dependency to 1.1.5, 1.0.2 or later.
What is the CVSS score of CVE-2025-59836?
CVE-2025-59836 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-59836?
CVE-2025-59836 is classified under CWE-476: NULL Pointer Dereference (The product dereferences a pointer that it expects to be valid but is NULL.).
How can I check Go dependencies for CVE-2025-59836?
Run the dependency tree command: 'inspect dependencies for github.com/siderolabs/omni'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4p3p-cr38-v5xp",
  "modified" : "2025-11-05T22:07:29Z",
  "published" : "2025-10-13T19:59:17Z",
  "aliases" : [ "CVE-2025-59836" ],
  "summary" : "Omni is Vulnerable to DoS via Empty Create/Update Resource Requests",
  "details" : "## 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",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/siderolabs/omni"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0-beta.0"
      }, {
        "fixed" : "1.1.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.1.4"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/siderolabs/omni"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.0.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/siderolabs/omni/security/advisories/GHSA-4p3p-cr38-v5xp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59836"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/siderolabs/omni/commit/1396083f766a1b0380e9949968d7fc17b7afecaa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/siderolabs/omni/commit/1fd954af64985a8b3dbf5b11deddbf7cd953f5ae"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/siderolabs/omni"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-4021"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-476" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-13T19:59:17Z",
    "nvd_published_at" : "2025-10-13T21:15:34Z"
  }
}