NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-42490: GoAuthentik vulnerable to Insufficient Authorization for several API endpoints

criticalCVSS 4.0 9.1 · 3.1 8.7GHSA-qxqc-27pr-wgc8

Summary Several API endpoints can be accessed by users without correct authentication/authorization. The main API endpoints affected by this: - /api/v3/crypto/certificatekeypairs/ /viewcertificate/ - /api/v3/crypto/certificatekeypairs/ /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…

Published Aug 22, 2024 · Updated Nov 18, 2024

Affected packages

goauthentik.io

Ecosystem
Go
Affected
>= 2024.6.0-rc1, < 2024.6.4
Fixed in
2024.6.4
Check
go list -m goauthentik.io

goauthentik.io

Ecosystem
Go
Affected
< 2024.4.4
Fixed in
2024.4.4
Check
go list -m goauthentik.io

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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>/view_certificate/
  • /api/v3/crypto/certificatekeypairs/<uuid>/view_private_key/
  • /api/v3/.../used_by/

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:

Credited to m2a2.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology