Skip to main content

Authelia CVE-2026-48794

| EUVDEUVD-2026-38083 LOW
Improper Handling of Case Sensitivity (CWE-178)
2026-06-19 GitHub_M GHSA-j748-h363-wqj8
1.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify target Authelia deployment with ordered wildcard ACL rules and permissive fallback
  2. Delivery
    Verify proxy does not canonicalize Host header (e.g., test with mixed-case request)
  3. Exploit
    Craft URL with uppercase second domain segment matching more-specific wildcard rule (e.g., `https://a.B.example.com`)
  4. Install
    Submit authenticated request through non-normalizing proxy
  5. C2
    Case-sensitive suffix match fails on restrictive `*.b.example.com` rule
  6. Execute
    Permissive fallback rule `*.example.com
  7. Impact
    bypass` matched
  8. Step 8
    Unauthorized 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., a.b.example.com requested when session domain is example.com); (3) two separate ACL rules are present using inexact domain matching - specifically wildcards (*), username wildcards, or group wildcards; (4) those rules are ordered most-specific first (e.g., *.b.example.com precedes *.example.com); (5) the second, less-specific rule is more permissive than the first (e.g., the fallback is a bypass policy); (6) the attacker's requested URL contains the more specific domain segment with one or more capitalized letters and no other segment is capitalized (e.g., https://a.B.example.com); (7) the Envoy ExtAuthz integration is not in use; and (8) the upstream proxy does not canonicalize or lowercase the Host header before forwarding it to Authelia. Exploitation is limited by: the requirement for low-privilege authenticated access (PR:L per CVSS 4.0), the highly specific and explicitly discouraged ACL configuration pattern, and the proxy's lack of host normalization - a non-default behavior for most reverse proxy deployments.

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 https://secure.admin.example.com (protected by the ACL rule *.admin.example.com → two_factor) crafts a request to https://secure.ADMIN.example.com with the second domain segment capitalized. When the upstream nginx proxy (configured without host normalization) forwards the original Host header to Authelia, the case-sensitive suffix check for .admin.example.com fails against ADMIN, skipping that rule and matching the fallback *.example.com → bypass rule instead - granting unauthenticated or single-factor access to a resource that should require two-factor authentication. Proof-of-concept exploitation potential is indicated by the CVSS 4.0 E:P supplemental metric.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

authelia 4.36.0, < 4.39.20

Affected Packages

go github.com/authelia/authelia no fix
go github.com/authelia/authelia/v4 fix: 4.39.20
euvd authelia_4_36_0 fix: 4.39.20

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

Vendor (GitHub_M) PRIMARY 1.3 LOW
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
vuln.today AI 3.5 LOW

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 19, 2026 - 23:17 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 80% exploitable
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

6
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy