{"id":"CVE-2024-52289","published":"2024-11-21T17:18:41Z","modified":"2025-09-23T18:21:58Z","title":"authentik has an insecure default configuration for OAuth2 Redirect URIs","vendor":"goauthentik","product":"authentik","tier":"tail","description":{"text":"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 `\\.`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.9,"severity":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01091,"percentile":0.66234,"provenance":"source"},"cwes":[{"id":"CWE-185","name":"Incorrect Regular Expression"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-3q5w-6m3x-64gj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54","tags":["x_refsource_MISC"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-52289-detect-authentik-vulnerability","tags":[]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2024-52289-mitigate-authentik-vulnerability","tags":[]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":13.25},{"name":"CVSS severity","points":5.53}]},"vendorSlug":"goauthentik","affectedVersions":[{"vendor":"goauthentik","product":"authentik","versions":["< 2024.8.5",">= 2024.10.0-rc1, < 2024.10.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-11-21T20:44:55.487746Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-45991","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-goauthentik-authentik-cve-2023-48228","parents":[{"from":"CVE-2023-48228","to":"CVE-2024-52289","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["authentik/providers/oauth2/views/token.py"],"commits":["https://github.com/goauthentik/authentik/commit/3af77ab3821fe9c7df8055ba5eade3d1ecea03a6","https://github.com/goauthentik/authentik/commit/6b9afed21f7c39f171a4a445654cfe415bba37d5","https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54"],"basis":"shared function","functions":["__post_init_code"]}]},{"from":"CVE-2024-23647","to":"CVE-2024-52289","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["authentik/providers/oauth2/views/token.py"],"commits":["https://github.com/goauthentik/authentik/commit/38e04ae12720e5d81b4f7ac77997eb8d1275d31a","https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54"],"basis":"shared function","functions":["__post_init_code"]}]},{"from":"CVE-2024-42490","to":"CVE-2024-52289","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["authentik/crypto/tests.py"],"commits":["https://github.com/goauthentik/authentik/commit/19318d4c00bb02c4ec3c4f8f15ac2e1dbe8d846c","https://github.com/goauthentik/authentik/commit/359b343f51524342a5ca03828e7c975a1d654b11","https://github.com/goauthentik/authentik/commit/85bb638243c8d7ea42ddd3b15b3f51a90d2b8c54"],"basis":"shared function","functions":["test_used_by"]}]}]}}