CVE-2024-42490: authentik has Insufficient Authorization for several API endpoints

Published Aug 22, 2024
·
Updated

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

4 affected componentsFixes available
go/goauthentik.io<2024.4.4
2024.4.4
go/goauthentik.io>=2024.6.0-rc1<2024.6.4
2024.6.4
goauthentik Authentik<2024.4.4
goauthentik Authentik>=2024.6.0<2024.6.4

Event History

Aug 22, 2024
CVE Published
via MITRE·03:34 PM
Data Sourced
via MITRE·03:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyAffected Software
Advisory Published
via GitHub·04:39 PM

Frequently Asked Questions

1

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.

2

How do I fix CVE-2024-42490?

To mitigate CVE-2024-42490, upgrade to goauthentik.io versions 2024.4.4 or 2024.6.4.

3

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/`.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203