Exploit database

Vulnerability

CVE-2026-22812

OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

OpenCode is an open source AI coding agent. Prior to 1.0.216, OpenCode automatically starts an unauthenticated HTTP server that allows any local process (or any website via permissive CORS) to execute arbitrary shell commands with the user's privileges. This vulnerability is fixed in 1.0.216.

CVE Program

Exploit source choices

6 sources
rohmatariow/cve-2026-22812-exploit
GH-f8160ee8899f5e6000fe55a17aaf4638GitHubUnofficial GitHub sourcePreferred

rohmatariow/cve-2026-22812-exploit source repository

2026-01-163 files · 34 stars
barrersoftware/opencode-secure
GH-562a516151f045835c0ee477b90de486GitHubUnofficial GitHub source

Security-hardened fork of OpenCode - Fixes CVE-2026-22812 (CVSS 8.8 RCE) that upstream refuses to patch

2026-01-192,720 files · 6 stars
0xgh057r3c0n/cve-2026-22812
GH-2be04ed004e54484ad34d654490ce751GitHubUnofficial GitHub source

OpenCode < v1.0.216 - Unauthenticated RCE

2026-01-195 files · 2 stars
caybermods/cve-2026-22812-poc
GH-2865e709608f03535ffc52e560c2555fGitHubUnofficial GitHub source

caybermods/cve-2026-22812-poc source repository

2026-01-203 files · 1 stars
udyz/cve-2026-22812-exp
GH-bf14a8e62619e8e91efd93c39e040974GitHubUnofficial GitHub source

CVE-2026-22812 - OpenCode Unauth RCE

2026-01-162 files · 1 stars