CVE-2025-64708: authentik invitation expiry is delayed by at least 5 minutes
Summary
In previous authentik versions, invitations were considered valid regardless if they are expired or not, thus relying on background tasks to clean up expired ones. In a normal scenario this can take up to 5 minutes because the cleanup of expired objects is scheduled to run every 5 minutes. However, with a large amount of tasks in the backlog, this might take longer.
Patches
authentik 2025.8.5 and 2025.10.2 fix this issue; for other versions the workaround below can be used.
Workarounds
Users can create a policy that explicitly checks whether the invitation is still valid, and then bind it to the invitation stage on your invitation flow, and deny access if the invitation is not valid.
python return not context['flowplan'].context['invitation'].isexpired
For more information
If users have any questions or comments about this advisory:
- Email the authentik team at security@goauthentik.io.
Other sources
authentik is an open-source Identity Provider. Prior to versions 2025.8.5 and 2025.10.2, in previous authentik versions, invitations were considered valid regardless if they are expired or not, thus relying on background tasks to clean up expired ones. In a normal scenario this can take up to 5 minutes because the cleanup of expired objects is scheduled to run every 5 minutes. However, with a large amount of tasks in the backlog, this might take longer. authentik versions 2025.8.5 and 2025.10.2 fix this issue. A workaround involves creating a policy that explicitly checks whether the invitation is still valid, and then bind it to the invitation stage on the invitation flow, and denying access if the invitation is not valid.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-64708?
CVE-2025-64708 has a medium severity rating due to improper handling of expired invitations.
How do I fix CVE-2025-64708?
To fix CVE-2025-64708, update authentik to version 2025.8.5 or later, and 2025.10.2 or later.
What versions of authentik are affected by CVE-2025-64708?
Versions of authentik prior to 2025.8.5 and 2025.10.2 are affected by CVE-2025-64708.
What type of vulnerability is CVE-2025-64708?
CVE-2025-64708 is a credential management vulnerability related to the handling of invitation validity.
What risks are associated with CVE-2025-64708?
The risks associated with CVE-2025-64708 include unauthorized access due to acceptance of expired invitations.