{"id":"CVE-2026-48599","aliases":["GHSA-mwr4-5g34-j5cq"],"title":"gRPC Erlang package's path bindings are overridable by query string and request body","summary":"gRPC Erlang package's path bindings are overridable by query string and request body","severity":"high","cwe":["CWE-639"],"vendor":"grpc","product":"grpc","ecosystem":"erlang","affected":["grpc >= 0.8.0, < 1.0.0"],"patched":["grpc 1.0.0"],"published":"2026-08-25","updated":"2026-08-25","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-mwr4-5g34-j5cq","references":[{"url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-mwr4-5g34-j5cq"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48599"},{"url":"https://github.com/elixir-grpc/grpc/pull/541"},{"url":"https://github.com/elixir-grpc/grpc/commit/33b6a095dbc91c6dee3c7b90893d7d74952e82e4"},{"url":"https://cna.erlef.org/cves/CVE-2026-48599.html"},{"url":"https://github.com/elixir-grpc/grpc/releases/tag/v1.0.0"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-48599"},{"url":"https://github.com/advisories/GHSA-mwr4-5g34-j5cq"}],"tags":["ghsa","erlang"],"epss":0.00273,"epssPercentile":0.19893,"ingestedAt":"2026-08-25T18:30:21.273Z","slug":"CVE-2026-48599","body":"## Overview\n\n### Summary\n\nIn the HTTP-to-gRPC transcoding layer of the `grpc` Hex package, query-string and request-body parameters can silently overwrite path-bound fields when building the decoded protobuf request struct. An authenticated attacker who can reach a transcoded endpoint can substitute any path-bound identifier (e.g. `user_id` from `/users/{user_id}/profile`) with an arbitrary value, bypassing authorization, multi-tenancy, and ownership checks that rely on the path-derived field.\n\n### Details\n\nAll three clauses of `GRPC.Server.Transcode.map_request/5` (`grpc_server/lib/grpc/server/transcode.ex`) use `Map.merge/2` with path bindings as the first argument, giving them the lowest merge precedence. Path bindings are extracted by the router from the matched URL template and should be the authoritative resource identifiers, but query-string and body parameters overwrite them. The decoded protobuf struct handed to the handler carries the attacker's value instead of the router's.\n\n### PoC\n\n1. Deploy a transcoded gRPC service with a route like `GET /users/{user_id}/profile` where the handler authorizes access based on `request.user_id`.\n2. Send: `GET /users/me/profile?user_id=victim`\n3. The decoded request struct has `user_id = \"victim\"` — the authorization check passes for the victim's resource, not the caller's.\n4. Alternatively, for a `POST` with `body: \"*\"`: send `{\"user_id\": \"victim\"}` in the JSON body.\n\n### Impact\n\nAffects applications using `grpc` ≥ 0.8.0 with HTTP transcoding enabled that rely on path-bound fields for authorization or tenant isolation. Fixed in 1.0.0. An authenticated attacker can read or modify any other user's resources exposed via transcoded endpoints.\n\n### References\n\n* Introduction commit: https://github.com/elixir-grpc/grpc/commit/8aaf3d3a8c4c7b08ac65e9c6f254e0d24da1d048\n* Patch commit: https://github.com/elixir-grpc/grpc/commit/33b6a095dbc91c6dee3c7b90893d7d74952e82e4\n\n## Affected packages\n\n- `grpc >= 0.8.0, < 1.0.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `grpc 1.0.0`","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}