Advisory

GHSA-qxqc-27pr-wgc8

Also known as: BIT-authentik-2024-42490, CVE-2024-42490, GO-2024-3085

Summary

GoAuthentik vulnerable to Insufficient Authorization for several API endpoints

Details

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:

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-08-22 16:39 UTC
Modified
2026-04-17 04:57 UTC

Affected packages and fixes

goauthentik.io

Go · All systems

Affected

  • introduced 2024.6.0-rc1, fixed 2024.6.4 (semver)

Fixed versions

2024.6.4

Fix

goauthentik.io

Go · All systems

Affected

  • introduced 0, fixed 2024.4.4 (semver)

Fixed versions

2024.4.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences