CRITICAL🇵🇱 Wersja polska

CVE-2024-47070

CVSS 9.0v3.1pub. 2024-09-27upd. 2025-08-21

authentik is an open-source identity provider. A vulnerability that exists in versions prior to 2024.8.3 and 2024.6.5 allows bypassing password login by adding X-Forwarded-For header with an unparsable IP address, e.g. `a`. This results in a possibility of logging into any account with a known login or email address. The vulnerability requires the authentik instance to trust X-Forwarded-For header provided by the attacker, thus it is not reproducible from external hosts on a properly configured environment. The issue occurs due to the password stage having a policy bound to it, which skips the password stage if the Identification stage is setup to also contain a password stage. Due to the invalid X-Forwarded-For header, which does not get validated to be an IP Address early enough, the exception happens later and the policy fails. The default blueprint doesn't correctly set `failure_result` to `True` on the policy binding meaning that due to this exception the policy returns false and the password stage is skipped. Versions 2024.8.3 and 2024.6.5 fix this issue.

🤖 AI Analysis
How it works

The password stage verification has an assigned policy that skips this stage if the Identification stage is configured to handle passwords. When an attacker sends an X-Forwarded-For header with an invalid value (e.g., the letter 'a'), IP address validation does not occur early enough — an exception is thrown later, causing a policy execution error. Because the default blueprint incorrectly sets the failure_result parameter to False instead of True in the policy binding, the unhandled exception results in returning false and completely bypassing the password verification stage. The attack is only possible when the authentik instance is configured to trust the X-Forwarded-For header from the attacker.

Impact

An attacker knowing a user's login or email address can log into their account without knowing the password, leading to complete account takeover and breach of confidentiality, integrity, and availability of resources protected by authentik.

Mitigation & patch

Update authentik to version 2024.8.3 or 2024.6.5 (depending on the branch used), which contain the fix for this vulnerability. Additionally, as a preventive measure, ensure that the authentik instance does not trust the X-Forwarded-For header from untrusted external sources.

Who is affected

authentik (Goauthentik) in versions earlier than 2024.8.3 and earlier than 2024.6.5

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Goauthentik Authentik

    APP
    Goauthentik
    < 2024.6.52024.8.0 – 2024.8.3 (excl.)
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Auth Bypass
CWE
References

Related vulnerabilities

CVE-2026-42849CRITICAL9.3PL ✓same product

XSS w AutosubmitStage komponentu SFE w Goauthentik Authentik

CVE-2026-49448CRITICAL9.8PL ✓same product

Pominięcie etapu uwierzytelniania (Source Stage) w Goauthentik Authentik

CVE-2026-25227CRITICAL9.1PL ✓same product

RCE w authentik przez endpoint testowy mapowania właściwości

CVE-2023-46249CRITICAL9.6PL ✓same product

authentik — pominięcie uwierzytelnienia przy resetowaniu hasła admina

CVE-2023-26481CRITICAL9.1PL ✓same product

Authentik: przejęcie konta przez nieprawidłową walidację tokenu odzyskiwania