{"id":"CVE-2024-52289","state":"PUBLISHED","title":"authentik has an insecure default configuration for OAuth2 Redirect URIs","description":"authentik is an open-source identity provider. Redirect URIs in the OAuth2 provider in authentik are checked by RegEx comparison.\nWhen no Redirect URIs are configured in a provider, authentik will automatically use the first redirect_uri value received as an allowed redirect URI, without escaping characters that have a special meaning in RegEx. Similarly, the documentation did not take this into consideration either. Given a provider with the Redirect URIs set to https://foo.example.com, an attacker can register a domain fooaexample.com, and it will correctly pass validation. authentik 2024.8.5 and 2024.10.3 fix this issue. As a workaround, When configuring OAuth2 providers, make sure to escape any wildcard characters that are not intended to function as a wildcard, for example replace `.` with `\\.`.","publishedAt":"2024-11-21T17:18:41.161Z","updatedAt":"2025-09-23T18:21:58.900Z","severity":{"score":7.9,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["goauthentik authentik"],"affected":[{"vendor":"goauthentik","product":"authentik","versions":[{"version":"< 2024.8.5","status":"affected"},{"version":">= 2024.10.0-rc1, < 2024.10.3","status":"affected"}]}],"references":["https://github.com/goauthentik/authentik/security/advisories/GHSA-3q5w-6m3x-64gj","https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54","https://www.vicarius.io/vsociety/posts/cve-2024-52289-detect-authentik-vulnerability","https://www.vicarius.io/vsociety/posts/cve-2024-52289-mitigate-authentik-vulnerability"],"weaknesses":["CWE-185"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/52xxx/CVE-2024-52289.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-52289","state":"PUBLISHED","datePublished":"2024-11-21T17:18:41.161Z","dateUpdated":"2025-09-23T18:21:58.900Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-11-06T19:00:26.394Z"},"containers":{"cna":{"title":"authentik has an insecure default configuration for OAuth2 Redirect URIs","descriptions":[{"lang":"en","value":"authentik is an open-source identity provider. Redirect URIs in the OAuth2 provider in authentik are checked by RegEx comparison.\nWhen no Redirect URIs are configured in a provider, authentik will automatically use the first redirect_uri value received as an allowed redirect URI, without escaping characters that have a special meaning in RegEx. Similarly, the documentation did not take this into consideration either. Given a provider with the Redirect URIs set to https://foo.example.com, an attacker can register a domain fooaexample.com, and it will correctly pass validation. authentik 2024.8.5 and 2024.10.3 fix this issue. As a workaround, When configuring OAuth2 providers, make sure to escape any wildcard characters that are not intended to function as a wildcard, for example replace `.` with `\\.`."}],"affected":[{"vendor":"goauthentik","product":"authentik","versions":[{"version":"< 2024.8.5","status":"affected"},{"version":">= 2024.10.0-rc1, < 2024.10.3","status":"affected"}]}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-3q5w-6m3x-64gj","name":"https://github.com/goauthentik/authentik/security/advisories/GHSA-3q5w-6m3x-64gj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54","name":"https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"HIGH","baseScore":7.9,"baseSeverity":"HIGH","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-185","lang":"en","description":"CWE-185: Incorrect Regular Expression","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-11-21T17:18:41.161Z"},"source":{"advisory":"GHSA-3q5w-6m3x-64gj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"goauthentik","product":"authentik","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"2024.8.5","versionType":"custom"},{"version":"2024.10.0-rc1","status":"affected","lessThan":"2024.10.3","versionType":"custom"}],"cpes":["cpe:2.3:a:goauthentik:authentik:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-21T20:44:55.487746Z","id":"CVE-2024-52289","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-21T20:50:00.471Z"}},{"title":"CVE Program Container","references":[{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-52289-detect-authentik-vulnerability"},{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-52289-mitigate-authentik-vulnerability"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-09-23T18:21:58.900Z"},"x_generator":{"engine":"ADPogram 0.0.1"}}]}}}