{"id":"CVE-2023-39349","aliases":["CVE-2023-39349","GHSA-9jcq-jf57-c62c","PYSEC-2026-1912"],"related":[],"kind":"vulnerability","state":"published","title":"Sentry vulnerable to privilege escalation via ApiTokensEndpoint","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAn 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.\n\nThere is no evidence that the issue was exploited on https://sentry.io. For self-hosted users, it is advised to rotate user auth tokens via `https://your-self-hosted-sentry-installation/settings/account/api/auth-tokens/`.\n\n### Patches\nThe issue was fixed in https://github.com/getsentry/sentry/pull/53850 and is available in the release 23.7.2 of [sentry](https://github.com/getsentry/sentry/releases/tag/23.7.2) and [self-hosted](https://github.com/getsentry/self-hosted/releases/tag/23.7.2).\n\n### Workarounds\nThere are no known workarounds.","format":"markdown","source":"ghsa"}],"published":"2023-08-07T18:27:12.396Z","modified":"2026-07-07T17:57:26.373Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-284","CWE-287"],"affected":[{"ranges":[{"version":">= 22.1.0, < 23.7.2","status":"affected"}],"vendor":"getsentry","product":"sentry","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"22.1.0","fixed":"23.7.2","status":"affected"}],"vendor":"getsentry","product":"sentry","cpe":"cpe:2.3:a:getsentry:sentry:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"22.1.0","status":"affected","fixed":"23.7.2"}],"ecosystem":"PyPI","package":"sentry","purl":"pkg:pypi/sentry","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"22.1.0","fixed":"23.7.2"}],"vendor":"sentry","product":"sentry","cpe":"cpe:2.3:a:sentry:sentry:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"22.1.0","status":"affected","fixed":"23.7.2"}],"ecosystem":"PyPI","package":"sentry","purl":"pkg:pypi/sentry","source":"pysec"}],"references":[{"url":"https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/getsentry/sentry/pull/53850","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/getsentry/self-hosted/releases/tag/23.7.2","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/getsentry/sentry/releases/tag/23.7.2","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39349","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/getsentry/sentry","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/sentry","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-9jcq-jf57-c62c","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-10-04T18:24:29.865Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-39349","url":"https://www.cve.org/CVERecord?id=CVE-2023-39349","licence":"CVE Terms of Use","modified":"2024-10-04T19:12:12.595Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9jcq-jf57-c62c","url":"https://github.com/advisories/GHSA-9jcq-jf57-c62c","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:26.373Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-39349","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39349","licence":"Public domain","modified":"2026-06-17T06:12:06.940Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1912","url":"https://osv.dev/vulnerability/PYSEC-2026-1912","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:52.918Z"}],"updatedAt":"2026-11-25T22:58:26.828Z","epss":{"score":0.01056,"percentile":0.65376,"date":"2026-12-01T12:00:22.000Z"}}