CVE-2024-52307: authentik allows a timing attack due to missing constant time comparison for metrics view
Vulnerability summary
CVE-2024-52307 is a medium (CVSS 6.3) Observable Timing Discrepancy vulnerability in goauthentik authentik. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 46.2% of scored vulnerabilities.
Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 21-11-2024PublishedVulnerability first disclosed.
- 27-11-2024Last modifiedVulnerability information updated.
Description
authentik is an open-source identity provider. Due to the usage of a non-constant time comparison for the /-/metrics/ endpoint it was possible to brute-force the SECRET_KEY, which is used to authenticate the endpoint. The /-/metrics/ endpoint returns Prometheus metrics and is not intended to be accessed directly, as the Go proxy running in the authentik server container fetches data from this endpoint and serves it on a separate port (9300 by default), which can be scraped by Prometheus without being exposed publicly. authentik 2024.8.5 and 2024.10.3 fix this issue. Since the /-/metrics/ endpoint is not intended to be accessed publicly, requests to the endpoint can be blocked by the reverse proxy/load balancer used in conjunction with authentik.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST6.3MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.55%
Chance of exploitation in the next 30 days
Percentile
46%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.55% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Goauthentik1 product
- authentik≥ 2024.10.0-rc1, < 2024.10.3 | < 2024.8.5 | ≥ 2024.10.0, < 2024.10.3
1 vendor · 1 product
References
3 links- github.com/goauthentik/authentik/security/advisories/GHSA-2xrw-5f2x-m56jX Refsource CONFIRMMitigationVendor Advisory
- github.com/goauthentik/authentik/commit/5ea4580884f99369f0ccfe484c04cb03a66e65b8X Refsource MISCPatch
- www.openwall.com/lists/oss-security/2024/11/27/1Mailing List