CVE-2025-53942
authentik has an insufficient check for account active status during OAuth/SAML authentication
描述
authentik is an open-source Identity Provider that emphasizes flexibility and versatility, with support for a wide set of protocols. In versions 2025.4.4 and earlier, as well as versions 2025.6.0 through 2025.6.3, deactivated users who registered through OAuth/SAML or linked their accounts to OAuth/SAML providers can still retain partial access to the system despite their accounts being deactivated. They end up in a half-authenticated state where they cannot access the API but crucially they can authorize applications if they know the URL of the application. To workaround this issue, developers can add an expression policy to the user login stage on the respective authentication flow with the expression of return request.context["pending_user"].is_active. This modification ensures that the return statement only activates the user login stage when the user is active. This issue is fixed in versions authentik 2025.4.4 and 2025.6.4.
如何修補 CVE-2025-53942
要修補 CVE-2025-53942,請將受影響套件升級到下列已修補版本。
- —升級至 2025.4.4 或更新版本
- —升級至 0.0.0-20250722122105-7a4c6b9b50f8 或更新版本
- —未列出修補版本
CVE-2025-53942 正在被利用嗎?
低 — EPSS 為 0.5%,目前沒有觀察到大規模利用活動。
受影響套件(3)
- from 0, < 2025.4.4, >= 2025.6.0, < 2025.6.4
- from 0, < 0.0.0-20250722122105-7a4c6b9b50f8
- from 0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |