CVE-2026-53541: Github.com/OliveTin/OliveTin OliveTin Has Unvalidated `ot_`-prefixed Arguments Vulnerability

MODERATE
Advisory Identifier: GHSA-prj9-97mp-mwh2
CVSS 4.3
CWE-20
Published
Advisory Summary

CVE-2026-53541 is a MODERATE (CVSS 4.3) olivetin has unvalidated `ot_`-prefixed arguments vulnerability (CWE-20: Improper Input Validation) affecting Github.com/OliveTin/OliveTin libraries in the Go ecosystem. The issue involves olivetin has unvalidated `ot_`-prefixed arguments that bypass input filtering. Remediation is available by upgrading affected packages to version 0.0.0-20260531214440-ebffd9f040f7.

CVE-2026-53541 at a Glance

CVE Identifier CVE-2026-53541
GHSA Identifier GHSA-prj9-97mp-mwh2
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/OliveTin/OliveTin
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-53541

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-20260531214440-ebffd9f040f7
Upgrade github.com/OliveTin/OliveTin to 0.0.0-20260531214440-ebffd9f040f7
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-53541, 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-20260531214440-ebffd9f040f7), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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

### Description The `filterToDefinedArgumentsOnly` function in the executor is intended to discard any arguments not explicitly defined in the action's configuration. However, a special case allows any argument whose name starts with `ot_` to bypass this filter. While two system arguments (`ot_executionTrackingId` and `ot_username`) are injected by OliveTin and overridden, all other `ot_`-prefixed arguments supplied by the user pass through unmodified. These bypassed arguments are: 1. **Not type-checked** — the validation loop only iterates over the action's defined arguments, so `ot_`-prefixed arguments skip all type safety checks entirely. 2. **Set as environment variables** — via `buildEnv()`, with completely unvalidated values, and passed to the executed command. 3. **Included in the template context** — available as `.Arguments.ot_*` in template rendering. ### Affected Code **Filter bypass — `service/internal/executor/executor.go` (lines 728–731):** ```go func keepArgument(name string, definedNames map[string]struct{}) bool { _, ok := definedNames[name] return ok || strings.HasPrefix(name, "ot_") } ``` **System args only override two keys — `service/internal/executor/executor.go` (lines 742–745):** ```go func injectSystemArgs(req *ExecutionRequest) { req.Arguments["ot_executionTrackingId"] = req.TrackingID req.Arguments["ot_username"] = req.AuthenticatedUser.Username } ``` Any other `ot_`-prefixed argument (e.g., `ot_malicious`) survives both functions. **Unvalidated values become environment variables — `service/internal/executor/executor.go` (lines 867–882):** ```go func buildEnv(args map[string]string) []string { ret := append(os.Environ(), "OLIVETIN=1") for k, v := range args { varName := fmt.Sprintf("%v", strings.TrimSpace(strings.ToUpper(k))) if varName == "" { continue } ret = append(ret, fmt.Sprintf("%v=%v", varName, v)) } return ret } ``` The value `v` is never validated. It can contain newlines, shell metacharacters, null bytes, or any arbitrary data. ### Proof of Concept An attacker sends a `StartAction` request with extra `ot_`-prefixed arguments: ```json { "bindingId": "<any-action-id>", "arguments": [ { "name": "ot_custom_var", "value": "arbitrary unvalidated content \n with newlines" }, { "name": "ot_another", "value": "$(whoami)" } ] } ``` These arguments: - Pass through `filterToDefinedArgumentsOnly` (the `ot_` prefix exempts them). - Are never type-checked (not in the action's argument definitions). - Become environment variables `OT_CUSTOM_VAR` and `OT_ANOTHER` in the executed command's environment. - Are available in the template rendering context as `.Arguments.ot_custom_var` and `.Arguments.ot_another`. ### Impact - **Environment variable pollution** — attacker can set arbitrary environment variables (with `OT_` uppercased prefix) in the execution environment of any action they can trigger. Scripts or programs that read custom environment variables could be influenced. - **Potential for secondary exploitation** — if any executed script or command reads `OT_`-prefixed environment variables, the unvalidated content could cause unexpected behavior. - **Template context pollution** — although Go's `text/template` does not recursively evaluate data values (mitigating direct template injection), the extra arguments are accessible in the template context and could interact unexpectedly with custom template logic. ### Suggested Fix Remove the `ot_` prefix exception from `keepArgument`, or restrict it to only the two known system arguments: ```go var systemArgs = map[string]struct{}{ "ot_executionTrackingId": {}, "ot_username": {}, } func keepArgument(name string, definedNames map[string]struct{}) bool { _, isDefined := definedNames[name] _, isSystem := systemArgs[name] return isDefined || isSystem } ``` --- ## Discovery Methodology Both vulnerabilities were identified through manual source code review of the OliveTin repository, focusing on: - Input validation boundaries (API request fields flowing into file system operations and execution contexts) - Argument filtering and type-checking logic in the executor - File path construction in the log persistence feature No automated scanners or fuzzing tools were used. The review was conducted against the current `main` branch source code. ---

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

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

References

Frequently Asked Questions

What is CVE-2026-53541?
CVE-2026-53541 is a security vulnerability in Github.com/OliveTin/OliveTin involving OliveTin has Unvalidated `ot_`-prefixed Arguments that Bypass Input Filtering under CWE-20: Improper Input Validation.
Which Github.com/OliveTin/OliveTin versions are affected?
Affected versions include releases prior to 0.0.0-20260531214440-ebffd9f040f7 across affected packages: github.com/OliveTin/OliveTin.
What version fixes CVE-2026-53541?
Upgrading to 0.0.0-20260531214440-ebffd9f040f7 (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-20260531214440-ebffd9f040f7. Upgrade your dependency to 0.0.0-20260531214440-ebffd9f040f7 or later.
What is the CVSS score of CVE-2026-53541?
CVE-2026-53541 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2026-53541?
CVE-2026-53541 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2026-53541?
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-prj9-97mp-mwh2",
  "modified" : "2026-06-24T17:43:50Z",
  "published" : "2026-06-24T17:43:50Z",
  "aliases" : [ "CVE-2026-53541" ],
  "summary" : "OliveTin has Unvalidated `ot_`-prefixed Arguments that Bypass Input Filtering",
  "details" : "### Description\n\nThe `filterToDefinedArgumentsOnly` function in the executor is intended to discard any arguments not explicitly defined in the action's configuration. However, a special case allows any argument whose name starts with `ot_` to bypass this filter. While two system arguments (`ot_executionTrackingId` and `ot_username`) are injected by OliveTin and overridden, all other `ot_`-prefixed arguments supplied by the user pass through unmodified.\n\nThese bypassed arguments are:\n\n1. **Not type-checked** — the validation loop only iterates over the action's defined arguments, so `ot_`-prefixed arguments skip all type safety checks entirely.\n2. **Set as environment variables** — via `buildEnv()`, with completely unvalidated values, and passed to the executed command.\n3. **Included in the template context** — available as `.Arguments.ot_*` in template rendering.\n\n### Affected Code\n\n**Filter bypass — `service/internal/executor/executor.go` (lines 728–731):**\n\n```go\nfunc keepArgument(name string, definedNames map[string]struct{}) bool {\n    _, ok := definedNames[name]\n    return ok || strings.HasPrefix(name, \"ot_\")\n}\n```\n\n**System args only override two keys — `service/internal/executor/executor.go` (lines 742–745):**\n\n```go\nfunc injectSystemArgs(req *ExecutionRequest) {\n    req.Arguments[\"ot_executionTrackingId\"] = req.TrackingID\n    req.Arguments[\"ot_username\"] = req.AuthenticatedUser.Username\n}\n```\n\nAny other `ot_`-prefixed argument (e.g., `ot_malicious`) survives both functions.\n\n**Unvalidated values become environment variables — `service/internal/executor/executor.go` (lines 867–882):**\n\n```go\nfunc buildEnv(args map[string]string) []string {\n    ret := append(os.Environ(), \"OLIVETIN=1\")\n    for k, v := range args {\n        varName := fmt.Sprintf(\"%v\", strings.TrimSpace(strings.ToUpper(k)))\n        if varName == \"\" { continue }\n        ret = append(ret, fmt.Sprintf(\"%v=%v\", varName, v))\n    }\n    return ret\n}\n```\n\nThe value `v` is never validated. It can contain newlines, shell metacharacters, null bytes, or any arbitrary data.\n\n### Proof of Concept\n\nAn attacker sends a `StartAction` request with extra `ot_`-prefixed arguments:\n\n```json\n{\n  \"bindingId\": \"<any-action-id>\",\n  \"arguments\": [\n    { \"name\": \"ot_custom_var\", \"value\": \"arbitrary unvalidated content \\n with newlines\" },\n    { \"name\": \"ot_another\",    \"value\": \"$(whoami)\" }\n  ]\n}\n```\n\nThese arguments:\n\n- Pass through `filterToDefinedArgumentsOnly` (the `ot_` prefix exempts them).\n- Are never type-checked (not in the action's argument definitions).\n- Become environment variables `OT_CUSTOM_VAR` and `OT_ANOTHER` in the executed command's environment.\n- Are available in the template rendering context as `.Arguments.ot_custom_var` and `.Arguments.ot_another`.\n\n### Impact\n\n- **Environment variable pollution** — attacker can set arbitrary environment variables (with `OT_` uppercased prefix) in the execution environment of any action they can trigger. Scripts or programs that read custom environment variables could be influenced.\n- **Potential for secondary exploitation** — if any executed script or command reads `OT_`-prefixed environment variables, the unvalidated content could cause unexpected behavior.\n- **Template context pollution** — although Go's `text/template` does not recursively evaluate data values (mitigating direct template injection), the extra arguments are accessible in the template context and could interact unexpectedly with custom template logic.\n\n### Suggested Fix\n\nRemove the `ot_` prefix exception from `keepArgument`, or restrict it to only the two known system arguments:\n\n```go\nvar systemArgs = map[string]struct{}{\n    \"ot_executionTrackingId\": {},\n    \"ot_username\":            {},\n}\n\nfunc keepArgument(name string, definedNames map[string]struct{}) bool {\n    _, isDefined := definedNames[name]\n    _, isSystem := systemArgs[name]\n    return isDefined || isSystem\n}\n```\n\n---\n\n## Discovery Methodology\n\nBoth vulnerabilities were identified through manual source code review of the OliveTin repository, focusing on:\n\n- Input validation boundaries (API request fields flowing into file system operations and execution contexts)\n- Argument filtering and type-checking logic in the executor\n- File path construction in the log persistence feature\n\nNo automated scanners or fuzzing tools were used. The review was conducted against the current `main` branch source code.\n\n---",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/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-20260531214440-ebffd9f040f7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OliveTin/OliveTin/security/advisories/GHSA-prj9-97mp-mwh2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OliveTin/OliveTin/commit/ebffd9f040f791208aee1db2e5a8aecd1e3e603d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OliveTin/OliveTin"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-24T17:43:50Z",
    "nvd_published_at" : null
  }
}