CVE-2021-47935 Sentry 8.2.0 Remote Code Execution via Pickle Deserialization
Authenticated superusers can execute arbitrary code by injecting malicious pickle payloads into the audit log data parameter.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47935?
CVE-2021-47935 is a high-severity unsafe deserialization vulnerability in Sentry, published on 10 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-94
Which versions are affected by CVE-2021-47935?
5 open source packages ship an affected version, including sentry. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sentry PyPI | All versions to 8.2.0 | None |
sentry PyPI | All versions | 8.1.4 |
sentry PyPI | All versions | 8.1.4 |
sentry PyPI | From 8.2.0 | 8.2.2 |
sentry PyPI | From 8.2.0 | 8.2.2 |
Products include Sentry Sentry.
How do I fix CVE-2021-47935?
Upgrade sentry to a fixed version for your release line: 8.1.4 or 8.2.2.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2021-47935 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-47935 exists.
Other vulnerabilities in Sentry
- CVE-2026-42354 Sentry: Improper authentication on SAML SSO process allows user identity linking
- CVE-2026-27197 Sentry: Improper Authentication on SAML SSO process allows user identity linking
- CVE-2023-39349 Sentry vulnerable to privilege escalation via ApiTokensEndpoint
- CVE-2023-36826 Sentry vulnerable to improper authorization on debug and artifact file downloads
- CVE-2026-52794 Sentry: Inefficient Regular Expression Complexity in sentry
Sources
Also known as GHSA-444r-2whx-3685, PYSEC-2026-131.