CVE-2025-64708
authentik's invitation expiry is delayed by at least 5 minutes
Impact
### 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['flow_plan'].context['invitation'].is_expired ``` ### For more information If users have any questions or comments about this advisory: - Email the authentik team at [security@goauthentik.io](mailto:security@goauthentik.io).
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | goauthentik.io | < 0.0.0-20251119135424-6672e6aaa41e | 0.0.0-20251119135424-6672e6aaa41e |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Goauthentik | Authentik | from 2025.8.0 before 2025.8.5 from 2025.10.0 before 2025.10.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/goauthentik/authentik/commit/6672e6aaa41e0f2c9bfb1e4d8b51cf114969e830
- https://github.com/goauthentik/authentik/security/advisories/GHSA-ch7q-53v8-73pc
- https://github.com/advisories/GHSA-ch7q-53v8-73pc
- https://nvd.nist.gov/vuln/detail/CVE-2025-64708