CVE-2023-39349: Sentry vulnerable to privilege escalation via ApiTokensEndpoint
Vulnerability summary
CVE-2023-39349 is a high (CVSS 8.1) Improper Access Control vulnerability in getsentry sentry. EPSS estimates a 1.06% chance of exploitation in the next 30 days, higher than 64.4% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 07-08-2023PublishedVulnerability first disclosed.
- 04-10-2024Last modifiedVulnerability information updated.
Description
Sentry is an error tracking and performance monitoring platform. Starting in version 22.1.0 and prior to version 23.7.2, an attacker with access to a token with few or no scopes can query `/api/0/api-tokens/` for a list of all tokens created by a user, including tokens with greater scopes, and use those tokens in other requests. There is no evidence that the issue was exploited on `sentry.io`. For self-hosted users, it is advised to rotate user auth tokens. A fix is available in version 23.7.2 of `sentry` and `self-hosted`. There are no known workarounds.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
1.06%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.06% 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
1 foundSentry
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Getsentry1 product
- sentry≥ 22.1.0, < 23.7.2
PyPI1 product
- sentry≥ 22.1.0, < 23.7.2
Sentry1 product
- sentry≥ 22.1.0, < 23.7.2
3 vendors · 3 products
References
9 links- github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62cX Refsource CONFIRMWEBExploitPatchThird Party Advisory
- github.com/getsentry/sentryPACKAGE
- pypi.org/project/sentryPACKAGE