Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32811: CWE-116: Improper Encoding or Escaping of Output in dadrus heimdall

0
High
VulnerabilityCVE-2026-32811cvecve-2026-32811cwe-116cwe-863
Published: Fri Mar 20 2026 (03/20/2026, 01:52:08 UTC)
Source: CVE Database V5
Vendor/Project: dadrus
Product: heimdall

Description

Heimdall is a cloud native Identity Aware Proxy and Access Control Decision service. When using Heimdall in envoy gRPC decision API mode with versions 0.7.0-alpha through 0.17.10, wrong encoding of the query URL string allows rules with non-wildcard path expressions to be bypassed. 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. The implementation uses go's url library to reconstruct the url which automatically encodes special characters in the path. 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. 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. This issue has been fixed in version 0.17.11.

AI-Powered Analysis

AILast updated: 03/20/2026, 02:38:45 UTC

Technical Analysis

Heimdall is a cloud-native Identity Aware Proxy and Access Control Decision service that integrates with Envoy via a gRPC decision API. In versions 0.7.0-alpha through 0.17.10, a vulnerability (CVE-2026-32811) exists due to improper encoding or escaping of output (CWE-116) affecting how URL paths are processed. Envoy splits the requested URL into components and sends them to Heimdall, where the query string is expected to be empty and the entire URL including the query is passed in the path field. Heimdall uses Go's URL library to reconstruct the URL path, which automatically percent-encodes special characters such as the question mark ('?'). For example, a path like '/mypath?foo=bar' becomes '/mypath%3Ffoo=bar'. This encoding causes path-based access control rules that match '/mypath' to fail, effectively bypassing those rules. However, this bypass only results in unintended access if Heimdall is configured with an 'allow all' default rule, which is insecure and disallowed by default since version 0.16.0 unless the enforcement is explicitly disabled via flags like --insecure-skip-secure-default-rule-enforcement or --insecure. The vulnerability has a CVSS 3.1 score of 8.2 (high severity), reflecting its network attack vector, low attack complexity, no privileges or user interaction required, and impact mainly on confidentiality and integrity. The issue was fixed in version 0.17.11 by correcting the URL handling logic to prevent rule bypass. No public exploits are known at this time.

Potential Impact

This vulnerability can lead to unauthorized access to protected resources by bypassing path-based access control rules in Heimdall deployments using vulnerable versions. The primary impact is on confidentiality and integrity, as attackers may gain access to sensitive data or perform unauthorized actions by exploiting the URL encoding flaw. Availability is not affected. The risk is heightened in environments where Heimdall is misconfigured with an insecure 'allow all' default rule, which is discouraged and disabled by default in recent versions. Organizations relying on Heimdall for identity-aware proxying and access control, especially in cloud-native and microservices architectures, could face data exposure or privilege escalation if vulnerable versions are deployed with insecure configurations. Since no authentication or user interaction is required, remote attackers can exploit this vulnerability over the network, increasing the threat surface. Although no known exploits exist in the wild yet, the high CVSS score and ease of exploitation warrant prompt remediation.

Mitigation Recommendations

Organizations should immediately upgrade Heimdall to version 0.17.11 or later, where the vulnerability is fixed. Until upgrading, ensure that Heimdall is not configured with an 'allow all' default rule; verify that secure default rule enforcement is enabled and that flags like --insecure or --insecure-skip-secure-default-rule-enforcement are not used. Review and audit access control policies to confirm that path-based rules are correctly defined and enforced. Implement network-level protections such as firewall rules and API gateway filters to restrict access to Heimdall services. Monitor logs for anomalous access patterns that may indicate attempts to exploit URL encoding bypasses. Consider deploying Web Application Firewalls (WAFs) capable of detecting suspicious URL encodings. Finally, incorporate this vulnerability into vulnerability management and patching workflows to ensure timely updates of Heimdall and related components.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-16T17:35:36.696Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69bcafd6e32a4fbe5f174c28

Added to database: 3/20/2026, 2:24:22 AM

Last enriched: 3/20/2026, 2:38:45 AM

Last updated: 3/20/2026, 5:57:20 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses