{"id":"CVE-2026-42274","aliases":["CVE-2026-42274","GHSA-3q34-rx83-r6mq","GO-2026-5097"],"related":[],"kind":"vulnerability","state":"published","title":"Heimdall: Authorization bypass via path normalization mismatch","summary":"Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. Prior to version 0.17.14, Heimdall performs rule matching on the raw (non-normalized) request path, while downstream components may normalize dot-segments according to RFC 3986, Section 6.2.2.3. This discrepancy can result in heimdall authorizing a request for one path (e.g., /user/../admin, or URL-encoded variants such as /user/%2e%2e/admin or /user/%2e%2e%2fadmin. The latter would require the allow_encoded_slashes option to be set to on or no_decode.) while the downstream ultimately processes a different, normalized path (/admin). This issue has been patched in version 0.17.14.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. Prior to version 0.17.14, Heimdall performs rule matching on the raw (non-normalized) request path, while downstream components may normalize dot-segments according to RFC 3986, Section 6.2.2.3. This discrepancy can result in heimdall authorizing a request for one path (e.g., /user/../admin, or URL-encoded variants such as /user/%2e%2e/admin or /user/%2e%2e%2fadmin. The latter would require the allow_encoded_slashes option to be set to on or no_decode.) while the downstream ultimately processes a different, normalized path (/admin). This issue has been patched in version 0.17.14.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nHeimdall performs rule matching on the raw (non-normalized) request path, while downstream components may normalize dot-segments according to [RFC 3986, Section 6.2.2.3](https://www.rfc-editor.org/rfc/rfc3986#section-6.2.2.3). This discrepancy can result in heimdall authorizing a request for one path (e.g., `/user/../admin`, or URL-encoded variants such as `/user/%2e%2e/admin` or `/user/%2e%2e%2fadmin`. The latter would require the `allow_encoded_slashes` option to be set to `on` or `no_decode`.) while the downstream ultimately processes a different, normalized path (`/admin`).\n\n### Details\n\nThis vulnerability can be exploited by an adversary if rule matching is performed using free (named or unnamed) wildcards without further constraints, as shown in the example snippets below.\n\n```yaml\nid: rule-1\nmatch:\n  routes:\n    - path: /user/**\nexecute: # configured to require authentication and authorization\n  # ...\n```\n\n```yaml\nid: rule-2\nmatch:\n  routes:\n    - path: /public/**\nexecute: # configured to allow anonymous access\n  # ...\n```\n\nIf an adversary sends a request to `/public/../user/whatever`, rule-2 will be matched and executed. The downstream service may, however, normalize the request path and interpret it as `/user/whatever`.\n\n### Impact\n\nBypass of access control policies enforced by heimdall may lead to the following consequences:\n\n* Access to or modification of data that should be restricted\n* Invocation of functionality that is expected to require authentication or authorization\n* In certain configurations, escalation of privileges depending on the exposed functionality\n\n### Workarounds\n\n* Normalize HTTP paths or reject HTTP paths containing relative path expressions in the layers in front of Heimdall - this is good practice anyway. Some proxies do that by default, such as Traefik; others, such as Envoy, require additional configuration (for Envoy see [`normalize_path`](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-field-extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-normalize-path)).\n* Include the ID of the rule expected to be executed in the JWT issued by heimdall and check that value in the consuming project's service.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Heimdall has an authorization bypass via path normalization mismatch in github.com/dadrus/heimdall","format":"markdown","source":"go"},{"lang":"es","text":"Heimdall es un servicio nativo de la nube de Proxy consciente de la identidad y de decisión de control de acceso. Antes de la versión 0.17.14, Heimdall realiza la coincidencia de reglas en la ruta de solicitud cruda (no normalizada), mientras que los componentes posteriores pueden normalizar los segmentos de puntos según la RFC 3986, Sección 6.2.2.3. Esta discrepancia puede resultar en que Heimdall autorice una solicitud para una ruta (por ejemplo, /user/.. / admin, o variantes codificadas en URL como /user/%2e%2e/admin o /user/%2e%2e%2fadmin. Esto último requeriría que la opción allow_encoded_slashes se establezca en ’on’ o ’no_decode’.) mientras que el componente posterior finalmente procesa una ruta diferente y normalizada (/admin). Este problema ha sido parcheado en la versión 0.17.14.","source":"nvd"}],"published":"2026-04-25T23:30:46.000Z","modified":"2026-10-26T20:10:00.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","rating":"HIGH"}],"cwes":["CWE-35","CWE-436"],"affected":[{"ranges":[{"version":"< 0.17.14","status":"affected"}],"vendor":"dadrus","product":"heimdall","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.17.14"}],"ecosystem":"Go","package":"github.com/dadrus/heimdall","purl":"pkg:golang/github.com/dadrus/heimdall","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.17.14"}],"ecosystem":"Go","package":"github.com/dadrus/heimdall","purl":"pkg:golang/github.com/dadrus/heimdall","source":"go"}],"references":[{"url":"https://github.com/dadrus/heimdall/security/advisories/GHSA-3q34-rx83-r6mq","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dadrus/heimdall/pull/3209","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dadrus/heimdall/commit/b5dfa484b7a8c2ce6d8691c026f9da867719947a","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dadrus/heimdall/releases/tag/v0.17.14","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42274","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/dadrus/heimdall","tags":["package"],"sources":["ghsa"]},{"url":"https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-field-extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-normalize-path","tags":["web"],"sources":["ghsa","go"]},{"url":"https://www.rfc-editor.org/rfc/rfc3986#section-6.2.2.3","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-11T18:19:37.764Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42274","url":"https://www.cve.org/CVERecord?id=CVE-2026-42274","licence":"CVE Terms of Use","modified":"2026-05-11T18:20:15.059Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3q34-rx83-r6mq","url":"https://github.com/advisories/GHSA-3q34-rx83-r6mq","licence":"CC-BY-4.0","modified":"2026-06-25T18:56:30.200Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5097","url":"https://pkg.go.dev/vuln/GO-2026-5097","licence":"CC-BY-4.0","modified":"2026-06-25T18:45:20.857Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42274","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42274","licence":"Public domain","modified":"2026-10-26T20:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:20.952Z","epss":{"score":0.0054,"percentile":0.39008,"date":"2026-11-30T12:00:22.000Z"}}