Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Authelia instance with LDAP and Basic Auth enabled
-
DeliveryEnumerate target username from directory or prior recon
-
ExploitCraft Authorization header variants with differing username casing
-
ExecutionSubmit distributed failed attempts across casing variants to separate ban buckets
-
PersistExceed effective aggregate attempt quota without triggering lockout
-
ImpactBrute force target account password
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 of the following conditions to be simultaneously true: (1) Authelia must be configured with the LDAP authentication backend - the file-based backend is not affected; (2) Basic Auth must be enabled on the authz verification endpoint (i.e., the authn_strategies list includes a Basic/Header strategy); (3) the underlying regulation database must use a case-sensitive collation - MySQL deployments using the UTF8MB4_unicode_ci collation Authelia recommends are not affected; (4) IP-based regulation mode must not be configured; (5) no third-party brute force mitigation tool such as CrowdSec or fail2ban must be in place. The first-factor login endpoint (/api/firstfactor) is explicitly not affected. Exploitation is further limited by the absence of clear attacker feedback - there is no signal indicating which username casing variant is being tracked separately, making reliable exploitation considerably harder than a standard brute force scenario. Remote unauthenticated access is required (PR:N, AV:N), but high attack complexity (AC:H) applies due to the configuration prerequisites. |
| Impact | Real-world risk is low despite a network-accessible attack vector. The CVSSv3.1 baseline of 3.7 and CVSSv4 weighted score of 2.9 are consistent with the narrow exploitation prerequisites: Attack Complexity is High (AC:H) because exploitation requires a specific conjunction of LDAP backend, enabled Basic Auth on the authz endpoint, and a case-sensitive database collation. The impact is limited to partial confidentiality loss (VC:L) with no integrity or availability consequences. No CISA KEV listing exists, and no standalone public POC has been confirmed; the E:P modifier in both CVSS vectors indicates partial exploit evidence, likely reflecting that the logic is straightforward to derive from the advisory itself. The vendor's own weighted score of 2.9 explicitly accounts for the absence of observed exploitation and the low attacker feedback problem - an attacker receives no clear signal whether a case variation is being treated as a distinct bucket, making reliable exploitation difficult. Defenders using MySQL with the recommended collation, IP-based regulation, or third-party tools like CrowdSec or fail2ban are not materially impacted. Overall, this is a low-priority finding for most deployments, with moderate priority only for organizations running Authelia with LDAP, basic auth enabled, and a case-sensitive database. |
| Exploit ScenarioDerived | An attacker targeting a user account 'alice' on an Authelia instance backed by LDAP submits repeated Basic Auth credential attempts to the authz verification endpoint, cycling through casing variants - 'alice', 'Alice', 'ALICE', 'aLiCe' - to distribute failed attempts across multiple independent ban buckets. Because each variant is treated as a separate identity by the regulation SQL layer, the effective attempt quota before lockout is multiplied by the number of variants, allowing significantly more password guesses before any single bucket triggers a ban. No public POC has been confirmed; however, the attack logic is straightforward to implement from the advisory description alone. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 29, 2026
Brute force regulation bypass in Authelia's Basic Auth flow (versions 4.38.0-4.39.19) allows unauthenticated remote attackers to partially circumvent account lockout controls by submitting login attempts using case variants of a target username (e.g., 'john', 'John', 'JOHN'). Because Authelia passes the raw Authorization header username to the regulation system without canonicalization, and LDAP backends treat these as the same identity while the regulation SQL queries treat them as distinct, each casing variant occupies a separate ban bucket - multiplying the effective attempt quota before lockout triggers. No public exploit identified at time of analysis, and the CVSSv4 weighted score of 2.9 (Low) reflects the narrow exploitation conditions required and the lack of attacker feedback during exploitation.
RemediationAI
The primary fix is to upgrade Authelia to version 4.39.20, which introduces username canonicalization in the Basic Auth handler and adds a mandatory timing attack delay. The patch commit is available at https://github.com/authelia/authelia/commit/b8985b57b70acdff8f204ed426ff619e763461ad. For deployments that cannot upgrade immediately, the recommended workaround is to explicitly disable Basic Auth on the authz endpoint by restricting authn_strategies to CookieSession only. For Caddy, HAProxy, and Traefik, configure the forward-auth endpoint with only the CookieSession strategy; for nginx, configure the auth-request endpoint similarly; for Envoy, configure the ext-authz endpoint with CookieSession. This workaround eliminates the vulnerable code path entirely with no known functional trade-off for deployments not relying on Basic Auth for proxy authentication. Alternatively, enabling IP-based regulation mode or deploying a third-party brute force tool such as CrowdSec or fail2ban also mitigates the impact without requiring a code change, though neither addresses the root canonicalization defect.
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
Authelia is an open-source authentication and authorization proxy written in Go (CPE: pkg:go/github.com_authelia_authelia_v4). The vulnerability is rooted in CWE-178 (Improper Handling of Case Sensitivity): LDAP directory services are inherently case-insensitive for bind operations, so 'john', 'John', and 'JOHN' resolve to the same directory account. However, Authelia's regulation subsystem - responsible for tracking failed login attempts and enforcing account bans - performs SQL lookups against its own database using the raw username string as supplied in the HTTP Authorization header. On case-sensitive database collations (e.g., PostgreSQL or MySQL without the UTF8MB4_unicode_ci collation Authelia recommends), each casing variant is stored and queried as a distinct identity, giving each its own independent ban counter. The affected code path is the authz verification endpoint's Basic Auth handler; the primary first-factor endpoint (/api/firstfactor) is not affected. The fix (commit b8985b57) refactors basic auth handling to canonicalize usernames and introduces a timing attack delay (NewTimingAttackDelay with a 2-second minimum) to further harden the authentication flow.
Know when Nginx 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:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (https://github.com/authelia/authelia) · only source for this CVE.
CVSS VectorVendor: https://github.com/authelia/authelia
Lifecycle Timeline
1DescriptionCVE.org
Impact
CVSSv4 Baseline Score: Moderate 6.3
CVSSv4 Weighted Score: Low 2.9
The full CVSSv4 Vector for this vulnerability is:
> CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:L/IR:L/AR:L/MAV:N/MAC:H/MAT:N/MPR:N/MUI:N/MVC:L/MVI:N/MVA:N/MSC:N/MSI:N/MSA:N/S:N/AU:Y/R:U/V:D/RE:L/U:Green
CVSSv3.1 Baseline Score: Low 3.7
CVSSv3.1 Overall Score: Medium 4.0
The full CVSSv3.1 Vector equivalent for this vulnerability is:
> CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:X/CR:H/IR:L/AR:L/MAV:N/MAC:H/MPR:N/MUI:N/MS:U/MC:L/MI:N/MA:N
The weighted severity rating is a result of no indication this is currently being exploited being available at the time of the publish date, in addition to the fact it's unlikely that it is being exploited currently.
Due to lack of canonicalization of the basic auth username, the effectiveness of the brute force mechanism when using basic auth is partially degraded.
Most passwords of reasonable length are unlikely to have a meaningful effect due to the fact there is no clear feedback to an attacker that is attempting to exploit this, thus their brute force attempts are significantly more likely to miss a valid password than they are identify a valid one.
Details
When a user authenticates via Basic Auth (i.e via the Authorization header with the Basic scheme) on the authz verification endpoint, Authelia takes the username directly from the Authorization header and passes it as is to the regulation system for ban checking and attempt recording.
LDAP treats usernames case insensitively : john, John, and JOHN all bind as the same user. But the regulation SQL queries treat the lookup of these values in certain scenarios as case sensitive. This allows each variation of a usernames case to have its own ban bucket.
Notable conditions or unaffected configurations:
- The first factor login endpoint (
/api/firstfactor) is not affected - The LDAP authentication backend must be in use.
- If the underlying database is case insensitive (as it should be with the collation we use for MySQL) it is not affected
- Administrators using the recently added IP regulation mode are not affected
- Administrators using a third-party tool such as CrowdSec or fail2ban are not affected
- Administrators that have disabled basic auth are not affected
Patches
Upgrade to 4.39.20.
Commit: https://github.com/authelia/authelia/commit/b8985b57b70acdff8f204ed426ff619e763461ad
Workarounds
Explicitly disable the basic auth mechanism.
Caddy, HAProxy, and Traefik
server:
endpoints:
authz:
forward-auth:
implementation: 'ForwardAuth'
authn_strategies:
- name: 'CookieSession'nginx
server:
endpoints:
authz:
auth-request:
implementation: 'AuthRequest'
authn_strategies:
- name: 'CookieSession'Envoy
server:
endpoints:
authz:
ext-authz:
implementation: 'ExtAuthz'
authn_strategies:
- name: 'CookieSession'References
N/A
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
The ngx_http_parse_chunked function in http/ngx_http_parse.c in nginx 1.3.9 through 1.4.0 allows remote attackers to cau
A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass intended restrictions via an unescap
An issue was discovered on GL.iNet devices before version 4.5.0. Rated critical severity (CVSS 9.8), this vulnerability
Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow vulnerability in nginx range fi
The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to cause a denial of service (invalid
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
Use-after-free in NGINX Plus and NGINX Open Source can crash a worker process handling HTTP/2-proxied requests and, if A
Heap buffer overflow in NGINX Plus and NGINX Open Source when HTTP/2 is enabled lets remote, unauthenticated attackers c
Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
EUVD-2026-38082
GHSA-hjj4-hfjm-fmrj
NVD
CVE.org
EPSS
VulDB
Exploit-DB