{
  "id": "CVE-2026-22812",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-22812",
  "published_at": "2026-01-12T22:49:18.325Z",
  "title": "OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution",
  "vendor": "anomalyco",
  "product": "opencode",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-01-16T11:15:04Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 3.5,
    "repo": "Udyz/CVE-2026-22812-Exp",
    "source": "github"
  },
  "poc_repo_count": 8,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-306",
  "cpes": [
    "cpe:2.3:a:anoma:opencode:*:*:*:*:*:-:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "Udyz/CVE-2026-22812-Exp",
      "url": "https://github.com/Udyz/CVE-2026-22812-Exp",
      "created_at": "2026-01-16T11:15:04Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-05-27T14:03:20Z"
    },
    {
      "repo": "rohmatariow/CVE-2026-22812-exploit",
      "url": "https://github.com/rohmatariow/CVE-2026-22812-exploit",
      "created_at": "2026-01-16T12:25:16Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 34,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-02-14T16:26:55Z"
    },
    {
      "repo": "mad12wader/CVE-2026-22812",
      "url": "https://github.com/mad12wader/CVE-2026-22812",
      "created_at": "2026-01-18T09:11:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-11-03T06:34:37Z"
    },
    {
      "repo": "barrersoftware/opencode-secure",
      "url": "https://github.com/barrersoftware/opencode-secure",
      "created_at": "2026-01-19T04:52:22Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 6,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2025-10-20T07:02:59Z"
    },
    {
      "repo": "0xgh057r3c0n/CVE-2026-22812",
      "url": "https://github.com/0xgh057r3c0n/CVE-2026-22812",
      "created_at": "2026-01-19T21:20:41Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-05T03:10:16Z"
    },
    {
      "repo": "CayberMods/CVE-2026-22812-POC",
      "url": "https://github.com/CayberMods/CVE-2026-22812-POC",
      "created_at": "2026-01-20T12:29:32Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-19T05:15:53Z"
    },
    {
      "repo": "HodgeLuke/ai-agent-security-research",
      "url": "https://github.com/HodgeLuke/ai-agent-security-research",
      "created_at": "2026-03-29T11:19:22Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-07-14T21:03:53Z"
    },
    {
      "repo": "0xBlackash/CVE-2026-22812",
      "url": "https://github.com/0xBlackash/CVE-2026-22812",
      "created_at": "2026-04-06T07:22:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "0xredash/CVE-2026-22812",
      "url": "https://github.com/0xredash/CVE-2026-22812",
      "created_at": "2026-04-06T07:22:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "ashrafzaryouh/CVE-2026-22812",
      "url": "https://github.com/ashrafzaryouh/CVE-2026-22812",
      "created_at": "2026-04-06T07:22:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "Hex-Neo/CVE-2026-22812-OpenCode-RCE-exp",
      "url": "https://github.com/Hex-Neo/CVE-2026-22812-OpenCode-RCE-exp",
      "created_at": "2026-04-27T01:38:45Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-06-01T05:43:01Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "anomalyco",
        "product": "opencode",
        "ranges": [
          "\u003c 1.0.216"
        ],
        "fixed_in": [
          "1.0.216"
        ]
      }
    ],
    "upgrade": [
      "Upgrade opencode to 1.0.216 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-22812.yaml",
      "source": "nuclei",
      "title": "nuclei template: OpenCode \u003c 1.0.216 - Unauthenticated Remote Code Execution",
      "published_at": "2026-01-27T18:01:04Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/session",
      "headers": [
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
          "name": "Accept-Language",
          "value": "en-US;q=0.6,en;q=0.5,zh-CN;q=0.4,zh;q=0.3,fa;q=0.2"
        },
        {
          "name": "Cache-Control",
          "value": "no-cache"
        },
        {
          "name": "Pragma",
          "value": "no-cache"
        },
        {
          "name": "Upgrade-Insecure-Requests",
          "value": "1"
        }
      ],
      "body_markers": [
        "\"agent\":\"build\"",
        "\"command\"",
        "\"test\":\"scanner\""
      ],
      "content_type": "application/json",
      "ports": [
        4096,
        8080
      ],
      "user_agents": [
        "Mozilla/5.0 (OpenCode/CVE-2026-22812-Exp)",
        "Mozilla/5.0 (X11; Linux x86_64)"
      ],
      "protocol": "https",
      "repos": [
        "0xBlackash/CVE-2026-22812",
        "0xgh057r3c0n/CVE-2026-22812",
        "0xredash/CVE-2026-22812",
        "CayberMods/CVE-2026-22812-POC",
        "Udyz/CVE-2026-22812-Exp",
        "ashrafzaryouh/CVE-2026-22812",
        "mad12wader/CVE-2026-22812",
        "rohmatariow/CVE-2026-22812-exploit"
      ],
      "repo_count": 8,
      "confidence": 0.85,
      "evidence": [
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.py:93",
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.py:114",
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.py:140",
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.yaml:35",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.py:93",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.py:114",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.py:140",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.yaml:35",
        "0xredash/CVE-2026-22812/CVE-2026-22812.py:93",
        "0xredash/CVE-2026-22812/CVE-2026-22812.py:114",
        "0xredash/CVE-2026-22812/CVE-2026-22812.py:140",
        "0xredash/CVE-2026-22812/CVE-2026-22812.yaml:35",
        "CayberMods/CVE-2026-22812-POC/CVE-2026-22812-detect.yaml:36",
        "CayberMods/CVE-2026-22812-POC/rce.py:44",
        "Udyz/CVE-2026-22812-Exp/CVE-2026-22812.py:16",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.py:93",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.py:114",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.py:140",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.yaml:35",
        "mad12wader/CVE-2026-22812/CVE-2026-22812.yaml:13",
        "mad12wader/CVE-2026-22812/README.md:8",
        "rohmatariow/CVE-2026-22812-exploit/exploit.py:102",
        "rohmatariow/CVE-2026-22812-exploit/exploit.py:143",
        "rohmatariow/CVE-2026-22812-exploit/exploit.py:177"
      ]
    },
    {
      "method": "POST",
      "path_template": "/session/{var}/shell",
      "headers": [
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
        },
        {
          "name": "Accept-Language",
          "value": "en-US;q=0.6,en;q=0.5,zh-CN;q=0.4,zh;q=0.3,fa;q=0.2"
        },
        {
          "name": "Cache-Control",
          "value": "no-cache"
        },
        {
          "name": "Pragma",
          "value": "no-cache"
        },
        {
          "name": "Upgrade-Insecure-Requests",
          "value": "1"
        }
      ],
      "body_markers": [
        "\"agent\":\"build\"",
        "\"command\":\"echo CVE202622812VULN\"",
        "\"command\"",
        "\"command\":\"touch /tmp/grass\"",
        "\"command\":\"id\""
      ],
      "content_type": "application/json",
      "ports": [
        4096,
        8080
      ],
      "user_agents": [
        "Mozilla/5.0 (OpenCode/CVE-2026-22812-Exp)",
        "Mozilla/5.0 (X11; Linux x86_64)"
      ],
      "protocol": "https",
      "repos": [
        "0xBlackash/CVE-2026-22812",
        "0xgh057r3c0n/CVE-2026-22812",
        "0xredash/CVE-2026-22812",
        "CayberMods/CVE-2026-22812-POC",
        "Udyz/CVE-2026-22812-Exp",
        "ashrafzaryouh/CVE-2026-22812",
        "mad12wader/CVE-2026-22812"
      ],
      "repo_count": 7,
      "confidence": 0.85,
      "evidence": [
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.yaml:42",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.yaml:42",
        "0xredash/CVE-2026-22812/CVE-2026-22812.yaml:42",
        "CayberMods/CVE-2026-22812-POC/rce.py:58",
        "Udyz/CVE-2026-22812-Exp/CVE-2026-22812.py:30",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.yaml:42",
        "mad12wader/CVE-2026-22812/CVE-2026-22812.yaml:31"
      ]
    },
    {
      "method": "GET",
      "path_template": "/file/content",
      "query_markers": [
        "path=/etc/hostname",
        "path="
      ],
      "ports": [
        4096,
        8080
      ],
      "protocol": "https",
      "repos": [
        "0xBlackash/CVE-2026-22812",
        "0xgh057r3c0n/CVE-2026-22812",
        "0xredash/CVE-2026-22812",
        "CayberMods/CVE-2026-22812-POC",
        "ashrafzaryouh/CVE-2026-22812"
      ],
      "repo_count": 5,
      "confidence": 0.85,
      "evidence": [
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.yaml:56",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.yaml:56",
        "0xredash/CVE-2026-22812/CVE-2026-22812.yaml:56",
        "CayberMods/CVE-2026-22812-POC/rce.py:71",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.yaml:56"
      ]
    },
    {
      "method": "GET",
      "path_template": "/session",
      "query_markers": [
        "path="
      ],
      "ports": [
        4096,
        8080
      ],
      "protocol": "https",
      "repos": [
        "0xBlackash/CVE-2026-22812",
        "0xgh057r3c0n/CVE-2026-22812",
        "0xredash/CVE-2026-22812",
        "ashrafzaryouh/CVE-2026-22812",
        "rohmatariow/CVE-2026-22812-exploit"
      ],
      "repo_count": 5,
      "confidence": 0.7,
      "evidence": [
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.py:168",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.py:168",
        "0xredash/CVE-2026-22812/CVE-2026-22812.py:168",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.py:168",
        "rohmatariow/CVE-2026-22812-exploit/exploit.py:211"
      ]
    },
    {
      "method": "POST",
      "path_template": "/pty",
      "content_type": "application/json",
      "ports": [
        4096,
        8080
      ],
      "protocol": "https",
      "repos": [
        "0xBlackash/CVE-2026-22812",
        "0xgh057r3c0n/CVE-2026-22812",
        "0xredash/CVE-2026-22812",
        "ashrafzaryouh/CVE-2026-22812"
      ],
      "repo_count": 4,
      "confidence": 0.85,
      "evidence": [
        "0xBlackash/CVE-2026-22812/CVE-2026-22812.yaml:49",
        "0xgh057r3c0n/CVE-2026-22812/CVE-2026-22812.yaml:49",
        "0xredash/CVE-2026-22812/CVE-2026-22812.yaml:49",
        "ashrafzaryouh/CVE-2026-22812/CVE-2026-22812.yaml:49"
      ]
    },
    {
      "method": "POST",
      "path_template": "/session/\"id\"/shell",
      "body_markers": [
        "\"agent\":\"build\"",
        "\"command\":\"id\""
      ],
      "content_type": "application/json",
      "user_agents": [
        "Mozilla/5.0 (X11; Linux x86_64)"
      ],
      "protocol": "http",
      "repos": [
        "mad12wader/CVE-2026-22812"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "mad12wader/CVE-2026-22812/README.md:18"
      ]
    }
  ],
  "rules": []
}
