Vulnerabilities in pkg:pypi/sentry
PACKAGECVE-2021-47935 is a HIGH (CVSS 8.8) superusers can execute arbitrary commands vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Sentry libraries in the PyPI ecosystem. The issue involves superusers can execute arbitrary commands by injecting malicious pickle-serialized objects through audit log entry data parameter. Remediation is available by upgrading affected packages to version 8.1.4, 8.2.2.
pkg:pypi/sentry
Vulnerability advisories affecting package pkg:pypi/sentry. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-444r-2whx-3685 | CVE-2021-47935 | HIGH | Sentry: Superusers can execute arbitrary commands by injecting malicious pickle-serialized objects through audit log entry data parameter |
| GHSA-v5h2-q2w4-gpcx | CVE-2024-53253 | MODERATE | Sentry improper error handling leaks Application Integration Client Secret |
| GHSA-rcmw-7mc7-3rj7 | CVE-2026-42354 | CRITICAL | Sentry's improper authentication on SAML SSO process allows user identity linking |
| GHSA-ggmg-cqg6-j45g | CVE-2026-27197 | CRITICAL | Sentry: Improper authentication on SAML SSO process allows user identity linking |
| GHSA-fm88-hc3v-3www | CVE-2024-41656 | HIGH | Sentry vulnerable to stored Cross-Site Scripting (XSS) |
| GHSA-6cjm-4pxw-7xp9 | CVE-2024-32474 | HIGH | Sentry vulnerable to leaking superuser cleartext password in logs |
| GHSA-7pq6-v88g-wf3w | CVE-2025-22146 | CRITICAL | Sentry's improper authentication on SAML SSO process allows user impersonation |
| GHSA-54m3-95j9-v89j | CVE-2024-45605 | HIGH | Sentry improperly authorizes deletion of user issue alert notifications |
| GHSA-m4hc-m2v6-hfw8 | CVE-2023-36826 | HIGH | Improper authorization on debug and artifact file downloads |
| GHSA-v345-w9f2-mpm5 | CVE-2024-45606 | HIGH | Sentry improperly authorizes muting of alert rules |
| GHSA-jv85-mqxj-3f9j | CVE-2022-23485 | MODERATE | Sentry vulnerable to invite code reuse via cookie manipulation |
| GHSA-c2g2-gx4j-rj3j | CVE-2024-35196 | LOW | Slack integration leaks sensitive information in logs |
| GHSA-hgj4-h2x3-rfx4 | CVE-2023-39531 | MODERATE | Sentry vulnerable to incorrect credential validation on OAuth token requests |
| GHSA-9jcq-jf57-c62c | CVE-2023-39349 | HIGH | Privilege escalation via ApiTokensEndpoint |
| GHSA-4xqm-4p72-87h6 | CVE-2023-36829 | MODERATE | Sentry CORS misconfiguration |
CVE-2021-47935 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-47935
To remediate this vulnerability, upgrade all affected Sentry dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install sentry>=8.1.4
pip install sentry>=8.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show sentry
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-47935, inspect your installed packages using pip:
pip show sentry
Analyze the terminal output to locate any version of Sentry in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.1.4), your application is affected.
Note: The pip show sentry command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Sentry, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-47935 Affected Sentry Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sentry
|
PyPI |
< 8.1.4
|
8.1.4
|
|
sentry
|
PyPI |
≥ 8.2.0
< 8.2.2
|
8.2.2
|
References
Frequently Asked Questions
What is CVE-2021-47935?
Which Sentry versions are affected?
What version fixes CVE-2021-47935?
Is sentry affected?
What is the CVSS score of CVE-2021-47935?
What CWE is associated with CVE-2021-47935?
How can I check PyPI dependencies for CVE-2021-47935?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-444r-2whx-3685",
"modified" : "2026-06-09T20:49:59Z",
"published" : "2026-05-10T15:31:19Z",
"aliases" : [ "CVE-2021-47935" ],
"summary" : "Sentry: Superusers can execute arbitrary commands by injecting malicious pickle-serialized objects through audit log entry data parameter",
"details" : "Sentry 8.2.0 contains a remote code execution vulnerability that allows authenticated superusers to execute arbitrary commands by injecting malicious pickle-serialized objects through the audit log entry data parameter. Attackers can submit crafted POST requests to the admin audit log endpoint with base64-encoded compressed pickle payloads in the data field to achieve code execution with application privileges.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "sentry"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.1.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "sentry"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.2.0"
}, {
"fixed" : "8.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-47935"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry/commit/19a0ba63d9ffb6aff79c7b78e2fa951a94edd61a"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry/commit/1f6090dc64b237c3da22bf35a5863a7136ac4669"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getsentry/sentry"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/sentry/PYSEC-2026-131.yaml"
}, {
"type" : "WEB",
"url" : "https://sentry.io/welcome"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/50318"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/sentry-remote-code-execution-via-pickle-deserialization"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-09T20:49:59Z",
"nvd_published_at" : "2026-05-10T13:16:29Z"
}
}