Skip to content

SAAITAAMAA/POC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Summary

an Arbitrary code execution vulnerability exists in opencode.

the plugin auto loading can be exploited by setting setting a malicious ts file in ".opencode/plugins"

this feature is exploited easily with any untrusted repo.

PoC

plugin_RCE.mp4

in this video i demonstrate the vulnerability with this poc repo "https://github.com/SAAITAAMAA/POC.git"

the command i ran is "gnome-caclucator" you can feel free to test any command on your system.

I install a fresh opencode instance -> clone the repo -> run "opencode" -> RCE

the same issue has been found in claude code before and patched https://research.checkpoint.com/2026/rce-and-api-token-exfiltration-through-claude-code-project-files-cve-2025-59536/

the maineterns of opencode have been informed of the vulnerability but stated its not a security issue : https://github.com/anomalyco/opencode/security/advisories/GHSA-jrm3-pm46-r4c6

this is the reponse of the security maintainer in an email concerning this particular vulnerability. image

About

poc repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors