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

High 7.5 Published Updated

Unauthenticated users can access sensitive certificate and object data via API endpoints if they possess the specific UUID.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42490?

CVE-2024-42490 is a high-severity missing authorization vulnerability in goauthentik authentik, published on 22 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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>/view_certificate/, /api/v3/crypto/certificatekeypairs/<uuid>/view_private_key/, and /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. authentik 2024.4.4, 2024.6.4 and 2024.8.0 fix this issue.

Weakness: CWE-285

Which versions are affected by CVE-2024-42490?

6 open source packages ship an affected version, including goauthentik.io and authentik. It affects 1 product.

PackageAffectedFixed in
goauthentik.io GoAll versionsNone
goauthentik.io GoAll versions2024.4.4
goauthentik.io GoAll versions2024.4.4
goauthentik.io GoFrom 2024.6.0-rc12024.6.4
goauthentik.io GoFrom 2024.6.0-rc12024.6.4
authentik BitnamiAll versions2024.4.4, 2024.6.4

Products include Goauthentik Authentik.

How do I fix CVE-2024-42490?

Upgrade goauthentik.io to a fixed version for your release line: 2024.4.4 or 2024.6.4.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-42490 being exploited?

There is no known exploitation of CVE-2024-42490 in the wild and no public exploit code.

Sources

Also known as BIT-authentik-2024-42490, GHSA-qxqc-27pr-wgc8, GO-2024-3085.

Is CVE-2024-42490 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free