{"id":"CVE-2023-39349","state":"PUBLISHED","title":"Sentry vulnerable to privilege escalation via ApiTokensEndpoint","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.","publishedAt":"2023-08-07T18:27:12.396Z","updatedAt":"2024-10-04T19:12:12.595Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["getsentry sentry"],"affected":[{"vendor":"getsentry","product":"sentry","versions":[{"version":">= 22.1.0, < 23.7.2","status":"affected"}]}],"references":["https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c","https://github.com/getsentry/sentry/pull/53850","https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083","https://github.com/getsentry/self-hosted/releases/tag/23.7.2","https://github.com/getsentry/sentry/releases/tag/23.7.2"],"weaknesses":["CWE-284","CWE-287"],"ingestedAt":"2026-10-29T20:06:08.715Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/39xxx/CVE-2023-39349.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-39349","state":"PUBLISHED","datePublished":"2023-08-07T18:27:12.396Z","dateUpdated":"2024-10-04T19:12:12.595Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-07-28T13:26:46.477Z"},"containers":{"cna":{"title":"Sentry vulnerable to privilege escalation via ApiTokensEndpoint","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"getsentry","product":"sentry","versions":[{"version":">= 22.1.0, < 23.7.2","status":"affected"}]}],"references":[{"url":"https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c","name":"https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getsentry/sentry/pull/53850","name":"https://github.com/getsentry/sentry/pull/53850","tags":["x_refsource_MISC"]},{"url":"https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083","name":"https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083","tags":["x_refsource_MISC"]},{"url":"https://github.com/getsentry/self-hosted/releases/tag/23.7.2","name":"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","name":"https://github.com/getsentry/sentry/releases/tag/23.7.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","lang":"en","description":"CWE-284: Improper Access Control","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-287","lang":"en","description":"CWE-287: Improper Authentication","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-08-07T18:27:12.396Z"},"source":{"advisory":"GHSA-9jcq-jf57-c62c","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c","name":"https://github.com/getsentry/sentry/security/advisories/GHSA-9jcq-jf57-c62c","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/getsentry/sentry/pull/53850","name":"https://github.com/getsentry/sentry/pull/53850","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083","name":"https://github.com/getsentry/sentry/commit/fad12c1150d1135edf9666ea72ca11bc110c1083","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/getsentry/self-hosted/releases/tag/23.7.2","name":"https://github.com/getsentry/self-hosted/releases/tag/23.7.2","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/getsentry/sentry/releases/tag/23.7.2","name":"https://github.com/getsentry/sentry/releases/tag/23.7.2","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T18:02:06.994Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"getsentry","product":"sentry","defaultStatus":"unknown","versions":[{"version":"22.1.0","status":"affected","lessThan":"23.7.2","versionType":"custom"}],"cpes":["cpe:2.3:a:getsentry:sentry:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-04T18:24:29.865480Z","id":"CVE-2023-39349","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-04T19:12:12.595Z"}}]}}}