CVE-2026-75506
## Summary OliveTin's `shellAfterCompleted` post-execution hook injects unsanitized variables — including arbitrary command output (`output`), the authenticated username (`ot_username`), and the exit code (`exitCode`) — directly into a shell command template processed by `sh -c`. Unlike the main action's argument handling, **no `checkShellArgumentSafety` validation is applied** to these variables. An attacker who can influence the output of a command (e.g., via user-supplied arguments that reflect in stdout, or through trusted-header username spoofing) can inject arbitrary OS commands into the post-execution shell. This is a **distinct** finding from CVE-2026-27626 (OS command injection via `password` type in webhooks). That CVE addressed argument types bypassing shell safety checks in the primary execution step. This vulnerability exists in the **post-execution step** (`stepExecAfter`), which has **zero** safety checks on any of its template variables. ## Affected Versions - All versions containing `shellAfterCompleted` functionality (current codebase through latest) ## Details ### Vulnerable Code Path In `service/internal/executor/executor.go`, the `stepExecAfter` function handles post-execution commands: ```go func stepExecAfter(req *ExecutionRequest) bool { if req.Binding.Action.ShellAfterCompleted == "" { return true } // These variables are injected WITHOUT any type checking or sanitization args := map[string]string{ "output": req.logEntry.Output, // Arbitrary command stdout/stderr "exitCode": fmt.Sprintf("%v", req.logEntry.ExitCode), "ot_executionTrackingId": req.TrackingID, "ot_username": req.AuthenticatedUser.Username, // User-controlled via trusted headers } // Template rendered with unsanitized args finalParsedCommand, err := tpl.ParseTemplateWithActionContext( req.Binding.Action.ShellAfterCompleted, req.Binding.
Properties
- Summary
- OliveTin: Second-Order OS Command Injection via shellAfterCompleted
- Severity
- medium
- Nvd fetched at
- 2026-11-19T03:31:17.617109+00:00
- Cvss score
- 6.6
- Cvss severity
- MEDIUM
- Retrieved at
- 2026-11-19T03:32:39+00:00
- Ghsa published
- 2026-11-18T21:55:09Z
- Source url
- https://github.com/advisories/GHSA-vc6p-m6vx-6cwq
- Ghsa updated
- 2026-11-18T21:55:10Z
- Ghsa id
- GHSA-vc6p-m6vx-6cwq
- Last source
- GitHub Advisory Database
- Score
- 6.6
- Cvss version
- 3.1
- Cve id
- CVE-2026-75506
- Cvss vector
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- First seen by Signal
- 2026-11-18T23:15:15+00:00
- Name
- CVE-2026-75506
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- Published at
- 2026-11-18T21:18:02.260
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph