{"id":"CVE-2026-124278","aliases":["CVE-2026-124278","EEF-CVE-2026-124278","GHSA-xc5v-89vq-hv5m"],"related":[],"kind":"vulnerability","state":"published","title":"Path bindings ignored for gRPC Content-Types on transcoded routes in elixir-grpc grpc_server","summary":"Authorization Bypass Through User-Controlled Key vulnerability in elixir-grpc grpc_server and grpc allows an attacker to make a handler act on a resource other than the one named in the URL of an HTTP-transcoded route, via a request with a gRPC Content-Type.\n\nOnly the transcoding clause of GRPC.Server.do_handle_request/4 (grpc_server/lib/grpc/server.ex, and lib/grpc/server.ex before the package split) applies the route's path bindings to the request message. The Cowboy handler picks that clause from the request Content-Type, not from the route. A request to a transcoded URL with application/grpc or application/grpc-web is decoded from the body alone, so every path-bound field takes its value from the body. A gateway, proxy rule or WAF that authorizes on the URL path sees one resource while the handler receives another.\n\nThis issue affects grpc: from 0.8.0 before 1.0.0; grpc_server: from 1.0.0 before 1.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Authorization Bypass Through User-Controlled Key vulnerability in elixir-grpc grpc_server and grpc allows an attacker to make a handler act on a resource other than the one named in the URL of an HTTP-transcoded route, via a request with a gRPC Content-Type.\n\nOnly the transcoding clause of GRPC.Server.do_handle_request/4 (grpc_server/lib/grpc/server.ex, and lib/grpc/server.ex before the package split) applies the route's path bindings to the request message. The Cowboy handler picks that clause from the request Content-Type, not from the route. A request to a transcoded URL with application/grpc or application/grpc-web is decoded from the body alone, so every path-bound field takes its value from the body. A gateway, proxy rule or WAF that authorizes on the URL path sees one resource while the handler receives another.\n\nThis issue affects grpc: from 0.8.0 before 1.0.0; grpc_server: from 1.0.0 before 1.1.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nAuthorization Bypass Through User-Controlled Key vulnerability in elixir-grpc grpc_server and grpc allows an attacker to make a handler act on a resource other than the one named in the URL of an HTTP-transcoded route, via a request with a gRPC Content-Type.\n\nOnly the transcoding clause of `GRPC.Server.do_handle_request/4` (`grpc_server/lib/grpc/server.ex`, and `lib/grpc/server.ex` before the package split) applies the route's path bindings to the request message. The Cowboy handler picks that clause from the request `Content-Type`, not from the route. A request to a transcoded URL with `application/grpc` or `application/grpc-web` is decoded from the body alone, so every path-bound field takes its value from the body. A gateway, proxy rule or WAF that authorizes on the URL path sees one resource while the handler receives another.\n\nThis issue affects grpc: from 0.8.0 before 1.0.0; grpc_server: from 1.0.0 before 1.1.0.\n\n## Details\n\n**1. The header selects the clause**\n\nThe Cowboy handler derives the access mode from the request `Content-Type`. `application/json` selects `:http_transcoding`, `application/grpc` selects `:grpc` and `application/grpc-web+proto` selects `:grpcweb`. The router still matches the transcoded URL template and extracts its path bindings.\n\n**2. Bindings are applied in one clause only**\n\n`GRPC.Server.do_handle_request/4` reads the bindings with `adapter.get_bindings/1` and merges them through `GRPC.Server.Transcode.map_request/5` only in the `:http_transcoding` clause. The unary and request-streaming clauses decode the body alone with the selected codec. `GRPC.Codec.Proto` is in the default codecs of every server, so `application/grpc` is always accepted.\n\n**3. The HTTP/1.1 guard never matches**\n\n`resolve_access_mode/3` has a clause that forces transcoding for HTTP/1.1 requests. It matches the version as the binary `\"HTTP/1.1\"`, while Cowboy stores the version as an atom, so the clause never applies and the request works over plain HTTP/1.1.\n\n**4. Result**\n\nA request to `/v1/messages/alice` with `Content-Type: application/grpc` and a message that sets `name` to `victim` reaches the handler with `name` set to `victim`. With an empty message the field is empty: the path binding is never consulted.\n\n## Proof of concept\n\n1. Start a server with `http_transcode: true` and a transcoded route that binds a field from the path, for example `GET /v1/messages/{name}`.\n2. Build a gRPC frame whose message sets `name` to `victim`.\n3. Send it over HTTP/1.1 as `GET /v1/messages/alice` with `Content-Type: application/grpc`.\n4. Observe that the handler receives `name` set to `victim`, not `alice`.\n\n## Impact\n\nAn attacker whose requests are authorized by URL path can make the handler read or modify a resource the path does not name, such as another tenant's data.\n\n## Configurations\n\nHTTP-to-gRPC transcoding must be enabled with `http_transcode: true`. Access to a resource must be decided from the URL path rather than from the decoded request, for example by an API gateway, proxy rule or WAF in front of the server.","format":"markdown","source":"eef"}],"published":"2026-11-13T15:58:08.134Z","modified":"2026-11-25T17:23:04.007Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.6,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-436","CWE-639"],"affected":[{"ranges":[{"type":"semver","introduced":"0.8.0","fixed":"1.0.0","status":"affected"}],"vendor":"elixir-grpc","product":"grpc","package":"grpc","cpe":"cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-grpc/grpc","source":"cvelist"},{"ranges":[{"type":"git","introduced":"8aaf3d3a8c4c7b08ac65e9c6f254e0d24da1d048","fixed":"0332faae5f5e132314794dbfdae5edecbccea292","status":"affected"}],"vendor":"elixir-grpc","product":"grpc","package":"elixir-grpc/grpc","cpe":"cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-grpc/grpc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","fixed":"1.1.0","status":"affected"}],"vendor":"elixir-grpc","product":"grpc_server","package":"grpc_server","cpe":"cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-grpc/grpc","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0332faae5f5e132314794dbfdae5edecbccea292","fixed":"953ab980d8a127e895d3ab9505fc4b9337bb32f7","status":"affected"}],"vendor":"elixir-grpc","product":"grpc_server","package":"elixir-grpc/grpc","cpe":"cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-grpc/grpc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.8.0","status":"affected","fixed":"1.0.0"}],"ecosystem":"Hex","package":"grpc","purl":"pkg:hex/grpc","source":"eef"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.1.0"}],"ecosystem":"Hex","package":"grpc_server","purl":"pkg:hex/grpc_server","source":"eef"},{"ranges":[{"type":"git","introduced":"8aaf3d3a8c4c7b08ac65e9c6f254e0d24da1d048","status":"affected","fixed":"0332faae5f5e132314794dbfdae5edecbccea292"}],"repo":"https://github.com/elixir-grpc/grpc","source":"eef"},{"ranges":[{"type":"git","introduced":"0332faae5f5e132314794dbfdae5edecbccea292","status":"affected","fixed":"953ab980d8a127e895d3ab9505fc4b9337bb32f7"}],"repo":"https://github.com/elixir-grpc/grpc","source":"eef"}],"references":[{"url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-xc5v-89vq-hv5m","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-124278.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-124278","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/elixir-grpc/grpc/commit/8aaf3d3a8c4c7b08ac65e9c6f254e0d24da1d048","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-grpc/grpc/commit/953ab980d8a127e895d3ab9505fc4b9337bb32f7","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/grpc","tags":["package"],"sources":["eef"]},{"url":"https://hex.pm/packages/grpc_server","tags":["package"],"sources":["eef"]}],"credits":["Eurico Nicacio","Jonatan Männchen / EEF","Peter Ullrich","Paulo Valente"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-16T22:54:41.557Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-124278","url":"https://www.cve.org/CVERecord?id=CVE-2026-124278","licence":"CVE Terms of Use","modified":"2026-11-19T07:01:24.068Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-124278","url":"https://osv.dev/vulnerability/EEF-CVE-2026-124278","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:04.007Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-124278","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124278","licence":"Public domain","modified":"2026-11-23T15:08:56.100Z"}],"updatedAt":"2026-11-25T22:59:50.735Z","epss":{"score":0.00618,"percentile":0.50964,"date":"2026-12-01T12:00:22.000Z"}}