# CVE-2021-47935: Sentry insecure pickle deserialization in admin audit log

Source: https://junglewise.ai/threats/cve-2021-47935-sentry-insecure-pickle-deserialization-in-admin-audit-log  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-10. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2021-47935 · Severity: high · CVSS 8.8 · Published 2026-05-10

Sentry is an application monitoring and error tracking platform used by developers to identify and fix software bugs. A security vulnerability in version 8.2.0 allows an administrative user to take full control of the server by uploading malicious data through the audit log system. This could lead to a complete compromise of the application, unauthorized access to sensitive error logs, or disruption of monitoring services.

Technologies: [sentry (PyPI)](https://junglewise.ai/threats/technologies/pypi-sentry). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-47935 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-47935 being exploited in the wild.

**How severe is CVE-2021-47935?** High severity, with a CVSS score of 8.8, published 10 May 2026.

**Which products and versions are affected?** sentry (PyPI) ECOSYSTEM:introduced=0,fixed=8.1.4, ECOSYSTEM:introduced=0,last_affected=8.2.0.

**Is there a fix for CVE-2021-47935?** Yes. sentry (PyPI): upgrade to 8.1.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2021-47935 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2021-47935?** Check whether you run sentry (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- sentry (PyPI): upgrade to 8.1.4 or later

  ```sh
  pip install "sentry>=8.1.4"
  ```


## Technical details

A remote code execution (RCE) vulnerability exists in Sentry 8.2.0 due to insecure deserialization of Python 'pickle' objects. The vulnerability is located in the admin audit log endpoint, specifically within the 'data' parameter of the audit log entry. An attacker with superuser privileges can submit a POST request to '/admin/sentry/auditlogentry/add/' containing a base64-encoded, compressed pickle payload. When the application attempts to process this data, it deserializes the object, leading to arbitrary command execution with the privileges of the application process. While the exploit requires authentication, the impact is a total compromise of the host. Fixed versions are reported to be 8.1.4 and 8.2.2.

## Affected products

- Sentry Sentry 8.2.0

## Identifiers

- CVE-2021-47935
- GHSA-444r-2whx-3685
- PYSEC-2026-131

## Timeline

- 2021-09-22: disclosed: Exploit code published on Exploit-DB
- 2026-05-10: advisory: NVD and VulnCheck advisory published

## References

- [https://sentry.io/welcome/](https://sentry.io/welcome/)
- [https://www.exploit-db.com/exploits/50318](https://www.exploit-db.com/exploits/50318)
- [https://www.vulncheck.com/advisories/sentry-remote-code-execution-via-pickle-deserialization](https://www.vulncheck.com/advisories/sentry-remote-code-execution-via-pickle-deserialization)

## Related threats

- [PYSEC-2026-1916 - Sentry improperly authorizes muting of alert rules](https://junglewise.ai/threats/cve-2024-45606-sentry-improperly-authorizes-muting-of-alert-rules)
- [PYSEC-2026-1910 - Sentry improperly authorizes deletion of user issue alert notifications](https://junglewise.ai/threats/cve-2024-45605-sentry-improperly-authorizes-deletion-of-user-issue-alert)
- [PYSEC-2026-1914 - Sentry vulnerable to stored Cross-Site Scripting (XSS)](https://junglewise.ai/threats/cve-2024-41656-sentry-vulnerable-to-stored-cross-site-scripting-xss)
- [PYSEC-2026-1913 - Slack integration leaks sensitive information in logs](https://junglewise.ai/threats/cve-2024-35196-slack-integration-leaks-sensitive-information-in-logs)
- [PYSEC-2026-1911 - Sentry vulnerable to leaking superuser cleartext password in logs](https://junglewise.ai/threats/cve-2024-32474-sentry-vulnerable-to-leaking-superuser-cleartext-password-in-logs)
