CVE-2021-47952
published critical CVSS 4.0 · 9.3python jsonpickle 2.0.0 Remote Code Execution via py/repr
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Jsonpickle | — | python jsonpickle2.0.0 | Affected | Not stated | VulnCheck |
| Red Hat | — | ansible-automation-platform-24/lightspeed-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/lightspeed-rhel8Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
Description
python jsonpickle 2.0.0 contains a remote code execution vulnerability that allows attackers to execute arbitrary Python commands by deserializing malicious JSON payloads containing py/repr objects. Attackers can craft JSON strings with py/repr directives that invoke the eval function during deserialization to execute arbitrary code.
A flaw was found in python-jsonpickle. A remote attacker can exploit this vulnerability by crafting and sending malicious JSON payloads. When these payloads, which contain specially crafted py/repr objects, are deserialized, they can trigger the execution of arbitrary Python commands and system commands. This can lead to arbitrary code execution on the affected system.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
| 3.1 | 9.8 | critical | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Jsonpickle | python jsonpickle | 2.0.0 (affected) | VulnCheck · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-94 Improper Control of Generation of Code ('Code Injection')
- CWE-502 Deserialization of Untrusted Data
References
7- https://access.redhat.com/security/cve/CVE-2021-47952
- RHBZ#2478170 https://bugzilla.redhat.com/show_bug.cgi?id=2478170
- Product Reference https://github.com/jsonpickle/jsonpickle
- Official Product Homepage https://jsonpickle.github.io
- https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-47952.json
- ExploitDB-49585 https://www.exploit-db.com/exploits/49585
- VulnCheck Advisory: python jsonpickle 2.0.0 Remote Code Execution via py/repr https://www.vulncheck.com/advisories/python-jsonpickle-remote-code-execution-via-py-repr
Provider assertions
3VulnCheck · cna
python jsonpickle 2.0.0 Remote Code Execution via py/repr
redhat-SADP · adp
python-jsonpickle: python-jsonpickle: Arbitrary Code Execution via Malicious JSON Deserialization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e6d7492eee9f4b15679631416f919fbcd856c1281283acf0f5517a4795424ff6
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record