Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify target Authelia deployment with ordered wildcard ACL rules and permissive fallback
-
DeliveryVerify proxy does not canonicalize Host header (e.g., test with mixed-case request)
-
ExploitCraft URL with uppercase second domain segment matching more-specific wildcard rule (e.g., `https://a.B.example.com`)
-
InstallSubmit authenticated request through non-normalizing proxy
-
C2Case-sensitive suffix match fails on restrictive `*.b.example.com` rule
-
ExecutePermissive fallback rule `*.example.com
-
Impactbypass` matched
-
Step 8Unauthorized access to restricted resource granted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
|
| Exploitation Conditions | Exploitation requires all eight of the following conditions simultaneously: (1) the target resource uses the forwarded authorization integration (not Envoy ExtAuthz); (2) the requested domain has exactly two more segments than the configured session domain (e.g., |
| Impact | Real-world risk is very low. The CVSS 4.0 base score of 1.3 (AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N) accurately reflects the attack surface: network reachable but with high complexity (AC:H) and specific attack target preconditions (AT:P). All eight enumerated conditions must be satisfied simultaneously - including a discouraged ACL ordering pattern (bypass as fallback to a restrictive rule), exact domain depth relative to the session domain, absence of Envoy ExtAuthz, and a proxy that does not lowercase the Host header. EPSS data was not provided in the input; exploitation probability should be considered very low given the configuration specificity. The CVSS 4.0 supplemental metric E:P signals that proof-of-concept exploitation is theoretically achievable but this is distinct from confirmed active exploitation - no CISA KEV listing exists. The Authelia advisory explicitly notes that the triggering configuration pattern has been strongly discouraged for a long time, further narrowing the real-world population of vulnerable deployments. No conflicting signals exist between data sources; all indicators consistently point to a low-priority, configuration-dependent issue. |
| Exploit ScenarioDerived | An authenticated attacker targeting a service at |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Authorization bypass in Authelia 4.36.0-4.39.19 allows an attacker to circumvent access control rules under an extremely narrow set of eight simultaneous conditions involving mixed-case domain requests, wildcard rule ordering, and a non-canonicalizing proxy. The flaw occurs because Go's case-sensitive strings.HasSuffix was used for wildcard domain matching: a crafted URL such as https://a.B.example.com causes the suffix check against *.b.example.com to fail silently, causing the authorization engine to fall through to a more permissive rule (e.g., *.example.com → bypass). No confirmed active exploitation has been identified and no CISA KEV listing exists; the CVSS 4.0 score of 1.3 with E:P reflects that proof-of-concept exploitation is plausible in theory but real-world exposure is extremely limited by the configuration prerequisites.
RemediationAI
Upgrade to Authelia 4.39.20, which is the vendor-released patch resolving this issue via commit b6d1d60baa02f216fdb19f5dfeaf2e805829508a (replacing case-sensitive strings.HasSuffix with the case-insensitive StringHasSuffixFold utility across all domain-matching branches). See the advisory at https://github.com/authelia/authelia/security/advisories/GHSA-j748-h363-wqj8. If immediate upgrade is not feasible, three specific compensating controls can reduce exposure: (1) configure the upstream proxy to lowercase the Host header before forwarding to Authelia's authorization endpoint - this eliminates the mixed-case domain condition entirely, though it may affect logging fidelity; (2) restructure ACL rules to avoid the discouraged pattern of ordering a more specific restrictive wildcard rule before a less specific bypass rule - eliminate bypass as a fallback to a restrictive rule, since Authelia's own documentation has long flagged this as insecure regardless of this CVE; or (3) replace wildcard domain rules with explicit exact-match domain entries where operationally feasible, which removes the inexact match condition entirely. Rule reordering and restructuring carry the risk of unintended access changes and must be tested thoroughly before deployment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-178 (Improper Handling of Case Sensitivity). Authelia's access control engine in internal/authorization/access_control_domain.go used Go's built-in strings.HasSuffix for suffix-matching wildcard domain rules. Because this function is case-sensitive, a domain segment containing uppercase letters (e.g., B in a.B.example.com) does not match the lowercase pattern b.example.com, causing the first ACL rule to silently fail to match and evaluation to fall through to the next, potentially less restrictive rule. The fix in commit b6d1d60 introduces utils.StringHasSuffixFold, a new utility wrapping strings.EqualFold(s[len(s)-len(suffix):], suffix), and replaces all three case-sensitive strings.HasSuffix calls in the domain matcher (covering wildcard, user-wildcard, and group-wildcard branches). The affected CPE is cpe:2.3:a:authelia:authelia:*:*:*:*:*:*:*:*, versions 4.36.0 through 4.39.19, using the forwarded authorization proxy integration (excluding Envoy ExtAuthz).
Know when Authelia gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:P
Network vector; AC:H for eight simultaneous preconditions; PR:L for authenticated access; scope change as bypass affects the downstream protected application; no integrity or availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Authelia is an open-source authentication and authorization server providing two-factor authentication and single sign-on (SSO) for applications via a web portal. In versions 4.36.0 through 4.39.19, due to lack of canonicalization of domains in very specific edge cases, an access control rule may be skipped when it should match a request. The specific conditions that could lead to a security issue for vulnerability are: 1. The specific target resource of the attack must be using the forwarded authorization integration; 2. The requested domain must have two additional segments compared to a session domain i.e. a.b.example.com is requested, but the session domain is example.com; 3. There access control rules must specify two separate rules which both contain inexact domain matches such as *.b.example.com and *.example.com i.e. wildcards, username matches, group matches; 4. The rules must be in order of most specific domain to least specific domain; 5. The second rule must be more permissive than the first rule; 6. The attacker must specifically request a URL for the more specific domain, with the second part containing one or more capitalized letters i.e. https://a.B.example.com and no other segment with capitalized letters; 7. The integration used must not be the Envoy ExtAuthz integration; and 8. The proxy must not canonicalize the requested host name in the relevant header before sending it to the relevant authorization endpoint. The kind of configuration used to produce this issue and result in a bypass rule being matched has long been highly discouraged. Essentially hosts which should be bypassed entirely should not be secured by having the proxy check them with the authorization handlers. Upgrade to 4.39.20 to receive a patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Authelia is a a single sign-on multi-factor portal for web apps. Rated critical severity (CVSS 10.0), this vulnerability
Authelia is an open-source authentication and authorization server providing 2-factor authentication and single sign-on
EUVD-2026-38083
GHSA-j748-h363-wqj8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB