github.com/dadrus/heimdall
Affected
- introduced
0, fixed0.17.14(semver)
Fixed versions
0.17.14
Fix
- Fixed version
0.17.14go get github.com/dadrus/[email protected]
Advisory
Also known as: CVE-2026-42273, GO-2026-5200
Heimdall: Case-sensitive host matching may lead to policy bypass
Summary
Heimdall performs host matching in a case-sensitive manner, while HTTP hostnames are case-insensitive. This discrepancy can result in heimdall failing to match a rule for a request host that differs only in letter casing, potentially causing the request to be classified differently than intended.
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
This vulnerability can potentially be exploited by an adversary if rule matching relies on the request host.
For example, consider the following rule:
id: rule-1
match:
hosts:
- type: exact
value: admin.example.com
execute: # configured to require authentication and authorization
# ...
If an adversary now sends a request with the Host header set to Admin.Example.Com, rule-1 will not be matched, and the following will happen instead:
404 Not Found)Impact
Bypass of access control policies enforced by heimdall may lead to the following consequences:
Workarounds
--insecure or the --insecure-skip-secure-default-rule-enforcement flags.regex type for host matching, expressions shall be defined in a case-insensitive manner (e.g. (?i)^admin\.example\.com$)High Basis: The source's own band: HIGH
0, fixed 0.17.14 (semver)0.17.14
0.17.14go get github.com/dadrus/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0