CVE-2021-47935 Sentry 8.2.0 Remote Code Execution via Pickle Deserialization

High 8.7 Published Updated

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.

PackageAffectedFixed in
sentry PyPIAll versions to 8.2.0None
sentry PyPIAll versions8.1.4
sentry PyPIAll versions8.1.4
sentry PyPIFrom 8.2.08.2.2
sentry PyPIFrom 8.2.08.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.

Sources

Also known as GHSA-444r-2whx-3685, PYSEC-2026-131.

Is CVE-2021-47935 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free