CVE-2025-22146 Improper authentication on SAML SSO process allows user impersonation in sentry
Attackers can impersonate users via malicious SAML SSO if multiple organizations are enabled, requiring an upgrade to fix.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-22146?
CVE-2025-22146 is a critical authentication bypass vulnerability in getsentry sentry, published on 15 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Sentry is a developer-first error tracking and performance monitoring tool. A critical vulnerability was discovered in the SAML SSO implementation of Sentry. It was reported to us via our private bug bounty program. The vulnerability allows an attacker to take over any user account by using a malicious SAML Identity Provider and another organization on the same Sentry instance. The victim email address must be known in order to exploit this vulnerability. The Sentry SaaS fix was deployed on Jan 14, 2025. For self hosted users; if only a single organization is allowed `(SENTRY_SINGLE_ORGANIZATION = True)`, then no action is needed. Otherwise, users should upgrade to version 25.1.0 or higher. There are no known workarounds for this vulnerability.
Weakness: CWE-287
Which versions are affected by CVE-2025-22146?
3 open source packages ship an affected version, including sentry.
| Package | Affected | Fixed in |
|---|---|---|
sentry PyPI | From 21.12.0 | 25.1.0 |
sentry PyPI | From 21.12.0 | 25.1.0 |
sentry PyPI | From 21.12.0 | 25.1.0 |
How do I fix CVE-2025-22146?
Upgrade sentry to 25.1.0 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2025-22146 being exploited?
There is no known exploitation of CVE-2025-22146 in the wild and no public exploit code.
Sources
Also known as GHSA-7pq6-v88g-wf3w, PYSEC-2026-532.