Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

hashicorp/go-plugin
main @ 2d71c1b
5
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Denial of Service: 3 prior fixes. Scrutinize any change in this area.
internal/cmdrunner: most-fixed (2 issues). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Misconfiguration in the AutoMTLS handshake allowed connections without complete bidirectional validation due to missing RootCAs and ServerName properties on the server's TLS config. This permits arbitrary clients to bypass authorization when connecting to the server.
Denial of Service: Resource handle leaks in the process aliveness checks ('_pidAlive') on both POSIX (pidfd leak via os.FindProcess) and Windows (handle leak via OpenProcess) systems can lead to file descriptor exhaustion and subsequent process crashes.
Auth Bypass: A lack of strict cryptographic orchestration allows unauthorized processes to access the plugin's RPC interface. Proper automatic mTLS negotiation must be enforced on all client-plugin RPC connections.