CVE-2026-32811: Heimdall Path Received Vulnerability

HIGH
Advisory Identifier: GHSA-r8x2-fhmf-6mxp
CVSS 8.2
CWE-116 CWE-863
Published
Advisory Summary

CVE-2026-32811 is a HIGH (CVSS 8.2) path received vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Heimdall libraries in the Go ecosystem. The issue involves path received via envoy grpc corrupted when containing query string. Remediation is available by upgrading affected packages to version 0.17.11.

CVE-2026-32811 at a Glance

CVE Identifier CVE-2026-32811
GHSA Identifier GHSA-r8x2-fhmf-6mxp
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Heimdall
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-32811

To remediate this vulnerability, upgrade all affected Heimdall 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/dadrus/heimdall fixed: 0.17.11
Upgrade github.com/dadrus/heimdall to 0.17.11
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/dadrus/heimdall

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-32811, inspect your project dependencies for Heimdall:

inspect dependencies for github.com/dadrus/heimdall

Analyze the terminal output to locate any version of Heimdall in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.11), 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Heimdall, 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 When using heimdall in envoy gRPC decision API mode, wrong encoding of the query URL string allows rules with non-wildcard path expressions to be bypassed. The HTTP based decision API is NOT affected, and proxy mode is NOT affected either. **Note:** The issue can only lead to unintended access if heimdall is configured with an "allow all" default rule. Since v0.16.0, heimdall enforces secure defaults and refuses to start with such a configuration unless this enforcement is explicitly disabled, e.g. via `--insecure-skip-secure-default-rule-enforcement` or the broader `--insecure` flag. ### Details Envoy splits the requested URL into parts, and sends the parts individually to heimdall. Although `query` and `path` are present in the API, the `query` field is documented to be always empty and the URL query is included in the `path` field [1]. The implementation uses go's url library to reconstruct the url which automatically encodes special characters in the path. https://github.com/dadrus/heimdall/blob/1faba9e4160bd7ab3240cf6aa418e21bfef3401a/internal/handler/envoyextauth/grpcv3/request_context.go#L109-L115 As a consequence, a parameter like `/mypath?foo=bar` to `Path` is escaped into `/mypath%3Ffoo=bar`. Subsequently, a rule matching `/mypath` no longer matches and is bypassed. ### PoC Using the example docker compose setup, the `demo:public` rule is bypassed when adding a query parameter. > docker compose -f docker-compose-envoy-grpc.yaml -f docker-compose.yaml up ``` curl http://127.0.0.1:9090/public Hostname: 80201fead1c7 IP: 127.0.0.1 IP: ::1 IP: 172.23.0.3 RemoteAddr: 172.23.0.5:37056 GET /public HTTP/1.1 Host: 127.0.0.1:9090 User-Agent: curl/8.19.0 Accept: */* X-Envoy-Expected-Rq-Timeout-Ms: 15000 X-Forwarded-Proto: http X-Request-Id: 0a1f0f06-75ef-4f14-92af-16162ea1d9e5 curl -v http://127.0.0.1:9090/public?bypass * Trying 127.0.0.1:9090... * Established connection to 127.0.0.1 (127.0.0.1 port 9090) from 127.0.0.1 port 47876 * using HTTP/1.x > GET /public?hallo HTTP/1.1 > Host: 127.0.0.1:9090 > User-Agent: curl/8.19.0 > Accept: */* > * Request completely sent off < HTTP/1.1 401 Unauthorized < date: Sat, 14 Mar 2026 16:34:17 GMT < server: envoy < content-length: 0 < * Connection #0 to host 127.0.0.1:9090 left intact ``` When using the HTTP decision API variant, the second request is matched by the rule as well: > docker compose -f docker-compose-envoy-http.yaml -f docker-compose.yaml up ``` curl http://127.0.0.1:9090/public?bypass Hostname: 80201fead1c7 IP: 127.0.0.1 IP: ::1 IP: 172.23.0.4 RemoteAddr: 172.23.0.2:38044 GET /public?hallo HTTP/1.1 Host: 127.0.0.1:9090 User-Agent: curl/8.19.0 Accept: */* X-Envoy-Expected-Rq-Timeout-Ms: 15000 X-Forwarded-Proto: http X-Request-Id: 5c961bc6-ad03-4a44-982b-abe04566fdd2 ``` ### Impact Everyone using heimdall with the envoy gRPC API may be affected. Users who configured a deny list in heimdall (with an allow-all default rule) are affected, as attackers can potentially circumvent a specific block rule by adding query parameters. [1] https://github.com/envoyproxy/envoy/blob/105b4acd422d67fcff908ec38d91c7676d079939/api/envoy/service/auth/v3/attribute_context.proto#L146-L147

CVE-2026-32811 Affected Heimdall Versions

1 component(s)
Fixed Versions:
0.17.11
Product / Package Ecosystem Affected Versions Fixed Version
github.com/dadrus/heimdall
Go
≥ 0.7.0-alpha
< 0.17.11
0.17.11

References

Frequently Asked Questions

What is CVE-2026-32811?
CVE-2026-32811 is a security vulnerability in Heimdall involving Path received via Envoy gRPC corrupted when containing query string under CWE-116: Improper Encoding or Escaping of Output.
Which Heimdall versions are affected?
Affected versions include releases prior to 0.17.11 across affected packages: github.com/dadrus/heimdall.
What version fixes CVE-2026-32811?
Upgrading to 0.17.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/dadrus/heimdall affected?
Yes, github.com/dadrus/heimdall is affected in releases prior to 0.17.11. Upgrade your dependency to 0.17.11 or later.
What is the CVSS score of CVE-2026-32811?
CVE-2026-32811 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N.
What CWE is associated with CVE-2026-32811?
CVE-2026-32811 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check Go dependencies for CVE-2026-32811?
Run the dependency tree command: 'inspect dependencies for github.com/dadrus/heimdall'. 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-r8x2-fhmf-6mxp",
  "modified" : "2026-04-27T15:22:43Z",
  "published" : "2026-03-18T13:00:56Z",
  "aliases" : [ "CVE-2026-32811" ],
  "summary" : "Heimdall: Path received via Envoy gRPC corrupted when containing query string",
  "details" : "### Summary\nWhen using heimdall in envoy gRPC decision API mode, wrong encoding of the query URL string allows rules with non-wildcard path expressions to be bypassed.\n\nThe HTTP based decision API is NOT affected, and proxy mode is NOT affected either.\n\n**Note:** The issue can only lead to unintended access if heimdall is configured with an \"allow all\" default rule. Since v0.16.0, heimdall enforces secure defaults and refuses to start with such a configuration unless this enforcement is explicitly disabled, e.g. via `--insecure-skip-secure-default-rule-enforcement` or the broader `--insecure` flag.\n\n### Details\nEnvoy splits the requested URL into parts, and sends the parts individually to heimdall. Although `query` and `path` are present in the API, the `query` field is documented to be always empty and the URL query is included in the `path` field [1].\n\nThe implementation uses go's url library to reconstruct the url which automatically encodes special characters in the path. \n\n https://github.com/dadrus/heimdall/blob/1faba9e4160bd7ab3240cf6aa418e21bfef3401a/internal/handler/envoyextauth/grpcv3/request_context.go#L109-L115\n\nAs a consequence, a parameter like `/mypath?foo=bar` to `Path`  is escaped into  `/mypath%3Ffoo=bar`. Subsequently, a rule matching `/mypath` no longer matches and is bypassed.\n\n\n### PoC\n\nUsing the example docker compose setup, the `demo:public` rule is bypassed when adding a query parameter.\n\n> docker compose -f docker-compose-envoy-grpc.yaml -f docker-compose.yaml up\n\n```\ncurl http://127.0.0.1:9090/public\nHostname: 80201fead1c7\nIP: 127.0.0.1\nIP: ::1\nIP: 172.23.0.3\nRemoteAddr: 172.23.0.5:37056\nGET /public HTTP/1.1\nHost: 127.0.0.1:9090\nUser-Agent: curl/8.19.0\nAccept: */*\nX-Envoy-Expected-Rq-Timeout-Ms: 15000\nX-Forwarded-Proto: http\nX-Request-Id: 0a1f0f06-75ef-4f14-92af-16162ea1d9e5\n\ncurl -v http://127.0.0.1:9090/public?bypass\n*   Trying 127.0.0.1:9090...\n* Established connection to 127.0.0.1 (127.0.0.1 port 9090) from 127.0.0.1 port 47876 \n* using HTTP/1.x\n> GET /public?hallo HTTP/1.1\n> Host: 127.0.0.1:9090\n> User-Agent: curl/8.19.0\n> Accept: */*\n> \n* Request completely sent off\n< HTTP/1.1 401 Unauthorized\n< date: Sat, 14 Mar 2026 16:34:17 GMT\n< server: envoy\n< content-length: 0\n< \n* Connection #0 to host 127.0.0.1:9090 left intact\n```\n\nWhen using the HTTP decision API variant, the second request is matched by the rule as well:\n\n> docker compose -f docker-compose-envoy-http.yaml -f docker-compose.yaml up\n\n```\ncurl http://127.0.0.1:9090/public?bypass\nHostname: 80201fead1c7\nIP: 127.0.0.1\nIP: ::1\nIP: 172.23.0.4\nRemoteAddr: 172.23.0.2:38044\nGET /public?hallo HTTP/1.1\nHost: 127.0.0.1:9090\nUser-Agent: curl/8.19.0\nAccept: */*\nX-Envoy-Expected-Rq-Timeout-Ms: 15000\nX-Forwarded-Proto: http\nX-Request-Id: 5c961bc6-ad03-4a44-982b-abe04566fdd2\n```\n\n### Impact\n\nEveryone using heimdall with the envoy gRPC API may be affected. Users who configured a deny list in heimdall (with an allow-all default rule) are affected, as attackers can potentially circumvent a specific block rule by adding query parameters.\n\n[1] https://github.com/envoyproxy/envoy/blob/105b4acd422d67fcff908ec38d91c7676d079939/api/envoy/service/auth/v3/attribute_context.proto#L146-L147",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/dadrus/heimdall"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.7.0-alpha"
      }, {
        "fixed" : "0.17.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.17.10"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dadrus/heimdall/security/advisories/GHSA-r8x2-fhmf-6mxp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32811"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dadrus/heimdall/pull/3106"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dadrus/heimdall/commit/50321b3007db1ccafdc6b1cfd6bdc3689c19a502"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dadrus/heimdall"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/envoyproxy/envoy/blob/105b4acd422d67fcff908ec38d91c7676d079939/api/envoy/service/auth/v3/attribute_context.proto#L146-L147"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-18T13:00:56Z",
    "nvd_published_at" : "2026-03-20T02:16:34Z"
  }
}