{"id":"CVE-2023-39349","published":"2023-08-07T18:27:12Z","modified":"2024-10-04T19:12:12Z","title":"Sentry vulnerable to privilege escalation via ApiTokensEndpoint","vendor":"getsentry","product":"sentry","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01056,"percentile":0.65252,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getsentry/sentry/pull/53850","tags":["x_refsource_MISC"]},{"url":"https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083","tags":["x_refsource_MISC"]},{"url":"https://github.com/getsentry/self-hosted/releases/tag/23.7.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/getsentry/sentry/releases/tag/23.7.2","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":13.05},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"getsentry","affectedVersions":[{"vendor":"getsentry","product":"sentry","versions":[">= 22.1.0, < 23.7.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-10-04T18:24:29.865480Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"sentry","vulnerableRanges":[">=22.1.0, <23.7.2"],"patched":["23.7.2"],"from":["GHSA-9jcq-jf57-c62c","PYSEC-2026-1912"],"provenance":"source"}],"summary":{"text":"The flaw lies in the API tokens endpoint (ApiTokensEndpoint, reached at /api/0/api-tokens/) of getsentry's Sentry error tracking and performance monitoring platform. An attacker who holds a token with few or no scopes can use that endpoint to list all tokens created by a user, including ones with broader scopes, and then use those tokens in other requests; exploitation requires only network access and a low-privilege authenticated token, with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:48Z"},"euvd":{"id":"EUVD-2023-2258","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-23485","published":"2022-12-10","fixed":"22.11.0","kev":false},{"cve":"CVE-2023-36826","published":"2023-07-25","fixed":"23.5.2","kev":false},{"cve":"CVE-2023-36829","published":"2023-07-06","fixed":"23.6.2","kev":false,"link":{"from":"CVE-2023-36829","to":"CVE-2023-39349","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:sentry","fromFixed":"23.6.2","toFixed":"23.7.2","daysApart":32}]}},{"cve":"CVE-2023-39349","published":"2023-08-07","fixed":"23.7.2","kev":false},{"cve":"CVE-2023-39531","published":"2023-08-09","fixed":"23.7.2","kev":false},{"cve":"CVE-2024-32474","published":"2024-04-18","fixed":"24.4.1","kev":false},{"cve":"CVE-2024-35196","published":"2024-05-31","fixed":"24.5.0","kev":false}],"package":"PyPI:sentry"}}