#VU127135 Incorrect Regular Expression in authentik - CVE-2024-52289

 

#VU127135 Incorrect Regular Expression in authentik - CVE-2024-52289

Published: November 21, 2024 / Updated: April 23, 2026


Vulnerability identifier: #VU127135
Vulnerability risk: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2024-52289
CWE-ID: CWE-185
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
authentik
Software vendor:
Authentik Security Inc

Description

The vulnerability allows a remote attacker to redirect OAuth2 flows to an attacker-controlled domain.

The vulnerability exists due to incorrect regular expression handling in the OAuth2 provider redirect URI validation when processing redirect_uri values. A remote attacker can register a crafted domain or supply a specially crafted redirect URI to redirect OAuth2 flows to an attacker-controlled domain.

When no redirect URIs are configured, the first received redirect_uri value is automatically accepted without escaping regular expression metacharacters.


Remediation

Install security update from vendor's website.

External links