CVE-2026-27197

9.1 CRITICAL

📋 TL;DR

This critical vulnerability in Sentry's SAML SSO implementation allows attackers to take over any user account by exploiting misconfigured multi-organization instances. Self-hosted Sentry deployments with multiple organizations are primarily affected, especially when SENTRY_SINGLE_ORGANIZATION is set to True or when malicious users have SSO configuration access. The vulnerability enables complete account compromise through authentication bypass.

💻 Affected Systems

Products:
  • Sentry
Versions: 21.12.0 through 26.1.0
Operating Systems: All
Default Config Vulnerable: ✅ No
Notes: Only affects self-hosted deployments with multiple organizations (SENTRY_SINGLE_ORGANIZATION = True) or where attackers have SSO configuration access in multi-org instances.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete account takeover of any user, including administrators, leading to data theft, privilege escalation, and full system compromise.

🟠

Likely Case

Targeted account takeover of specific users by attackers with existing access to SSO configuration settings in multi-organization environments.

🟢

If Mitigated

Limited impact if 2FA is enabled on all accounts, as attackers cannot complete authentication even with compromised credentials.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires attacker to have access to configure SSO settings for another organization or exploit multi-org misconfigurations.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 26.2.0

Vendor Advisory: https://github.com/getsentry/sentry/security/advisories/GHSA-ggmg-cqg6-j45g

Restart Required: Yes

Instructions:

1. Backup your Sentry instance. 2. Update to Sentry version 26.2.0 or later. 3. Restart all Sentry services. 4. Verify the update was successful.

🔧 Temporary Workarounds

Enable Two-Factor Authentication

all

Require all users to enable 2FA on their accounts to prevent attackers from completing authentication even with compromised credentials.

🧯 If You Can't Patch

  • Enable mandatory 2FA for all user accounts immediately
  • Review and restrict SSO configuration permissions to trusted administrators only

🔍 How to Verify

Check if Vulnerable:

Check Sentry version and verify if running 21.12.0 through 26.1.0 with multiple organizations configured.

Check Version:

sentry --version

Verify Fix Applied:

Confirm Sentry version is 26.2.0 or later and test SAML SSO functionality.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SAML authentication attempts
  • SSO configuration changes from unexpected users
  • Multiple failed login attempts followed by successful SAML auth

Network Indicators:

  • SAML requests from unexpected identity providers
  • Authentication traffic patterns deviating from normal

SIEM Query:

source="sentry" AND (event="sso_config_change" OR event="saml_auth" AND result="success") | stats count by user, src_ip

🔗 References

📤 Share & Export