CVE-2024-42490: authentik has Insufficient Authorization for several API endpoints
Summary
Several API endpoints can be accessed by users without correct authentication/authorization.
The main API endpoints affected by this:
- /api/v3/crypto/certificatekeypairs/<uuid>/viewcertificate/ - /api/v3/crypto/certificatekeypairs/<uuid>/viewprivatekey/ - /api/v3/.../usedby/
Note that all of the affected API endpoints require the knowledge of the ID of an object, which especially for certificates is not accessible to an unprivileged user. Additionally the IDs for most objects are UUIDv4, meaning they are not easily guessable/enumerable.
Patches
authentik 2024.4.4, 2024.6.4 and 2024.8.0 fix this issue.
Workarounds
Access to the API endpoints can be blocked at a Reverse-proxy/Load balancer level to prevent this issue from being exploited.
For more information
If you have any questions or comments about this advisory:
- Email us at security@goauthentik.io
Other sources
authentik is an open-source Identity Provider. Several API endpoints can be accessed by users without correct authentication/authorization. The main API endpoints affected by this are /api/v3/crypto/certificatekeypairs/<uuid>/viewcertificate/, /api/v3/crypto/certificatekeypairs/<uuid>/viewprivatekey/, and /api/v3/.../usedby/. Note that all of the affected API endpoints require the knowledge of the ID of an object, which especially for certificates is not accessible to an unprivileged user. Additionally the IDs for most objects are UUIDv4, meaning they are not easily guessable/enumerable. authentik 2024.4.4, 2024.6.4 and 2024.8.0 fix this issue.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-42490?
CVE-2024-42490 is classified as a high-severity vulnerability due to improper authentication and authorization on several API endpoints.
How do I fix CVE-2024-42490?
To mitigate CVE-2024-42490, upgrade to goauthentik.io versions 2024.4.4 or 2024.6.4.
Which API endpoints are affected by CVE-2024-42490?
The affected API endpoints include `/api/v3/crypto/certificatekeypairs/<uuid>/view_certificate/` and `/api/v3/crypto/certificatekeypairs/<uuid>/view_private_key/`.
What software versions are vulnerable to CVE-2024-42490?
Versions of goauthentik.io prior to 2024.4.4 and between 2024.6.0-rc1 and 2024.6.4 are vulnerable to CVE-2024-42490.
Is user data at risk with CVE-2024-42490?
Yes, due to the lack of proper authentication, user data accessed through the affected API endpoints is at risk with CVE-2024-42490.