# CVE-2023-39349: Sentry vulnerable to privilege escalation via ApiTokensEndpoint

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.06%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-07T18:27:12.396Z
- Modified: 2026-07-07T17:57:26.373Z
- Also known as: GHSA-9jcq-jf57-c62c, PYSEC-2026-1912
- Weaknesses: CWE-284, CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- getsentry sentry: >= 22.1.0, < 23.7.2; from 22.1.0 before 23.7.2
- sentry (PyPI): from 22.1.0 before 23.7.2
- sentry sentry: from 22.1.0 before 23.7.2

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c> (exploit, patch, third-party-advisory, web)
- <https://github.com/getsentry/sentry/pull/53850> (patch, web)
- <https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083> (patch, web)
- <https://github.com/getsentry/self-hosted/releases/tag/23.7.2> (release-notes, web)
- <https://github.com/getsentry/sentry/releases/tag/23.7.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-39349> (advisory)
- <https://github.com/getsentry/sentry> (package)
- <https://pypi.org/project/sentry> (package)
- <https://github.com/advisories/GHSA-9jcq-jf57-c62c> (advisory)

## Sources

- CVE List: [CVE-2023-39349](https://www.cve.org/CVERecord?id=CVE-2023-39349), CVE Terms of Use, modified 2024-10-04
- GitHub Advisory Database: [GHSA-9jcq-jf57-c62c](https://github.com/advisories/GHSA-9jcq-jf57-c62c), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-39349](https://nvd.nist.gov/vuln/detail/CVE-2023-39349), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1912](https://osv.dev/vulnerability/PYSEC-2026-1912), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-39349 · Whole record: https://cve.day/CVE-2023-39349.json · Rebuilt by cve.day 2026-11-25T22:58:26.828Z
