Skip to content
Heist/ feed
Back to feed
Critical

jsonpickle — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-47952

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.

Products
jsonpickle
Affected versions
0.8.0-1build1, 0.9.2-1, 0.9.5-0ubuntu1, 0.9.5-1, 1.2-1, 2.0.0+dfsg1-1, 3.0.0+dfsg1-1, 3.0.2+dfsg-1, 3.0.3+dfsg-1, 4.0.2+dfsg-1, 4.0.2+dfsg-2, 4.0.2+dfsg-3
Fixed versions
Not specified
CVEs
CVE-2021-47952
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:55 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-47952

core-osv · Original source

Published 16 May 2026, 16:16 UTC

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.

osv:UBUNTU-CVE-2021-47952

jsonpickle

Fixed versions: Not specified

jsonpickle

Fixed versions: Not specified

jsonpickle

Fixed versions: Not specified

jsonpickle

Fixed versions: Not specified

jsonpickle

Fixed versions: Not specified

jsonpickle

Fixed versions: Not specified

jsonpickle

Fixed versions: Not specified

jsonpickle

Fixed versions: Not specified

Complete source record
{
  "id": "bb92080db6e4acbdd35663efd26584b5f1a3efb46b1967e3e76497c329cd044d",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-47952",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-47952",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2021-47952",
    "products": [
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.8.0-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.5-0ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.9.5-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.9.5-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.0.0+dfsg1-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.0+dfsg1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.0.2+dfsg-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.0.3+dfsg-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.2+dfsg-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.0.2+dfsg-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.2+dfsg-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4.0.2+dfsg-3",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jsonpickle",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.2+dfsg-2",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2021-47952",
      "aliases": [
        "UBUNTU-CVE-2021-47952"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.8.0-1build1",
            "0.9.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-jsonpickle",
                "binary_version": "0.9.2-1"
              },
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "0.9.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.9.5-0ubuntu1",
            "0.9.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-jsonpickle",
                "binary_version": "0.9.5-1"
              },
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "0.9.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.9.5-1",
            "1.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "1.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.2-1",
            "2.0.0+dfsg1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "2.0.0+dfsg1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.0.0+dfsg1-1",
            "3.0.2+dfsg-1",
            "3.0.3+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "3.0.3+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.0.2+dfsg-1",
            "4.0.2+dfsg-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "4.0.2+dfsg-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.0.2+dfsg-2",
            "4.0.2+dfsg-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "4.0.2+dfsg-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jsonpickle",
            "purl": "pkg:deb/ubuntu/jsonpickle?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.0.2+dfsg-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-47952.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-jsonpickle",
                "binary_version": "4.0.2+dfsg-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:16.184918101Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-47952"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-47952",
        "https://www.cve.org/CVERecord?id=CVE-2021-47952",
        "https://github.com/jsonpickle/jsonpickle",
        "https://jsonpickle.github.io",
        "https://www.exploit-db.com/exploits/49585",
        "https://www.vulncheck.com/advisories/python-jsonpickle-remote-code-execution-via-py-repr"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-47952",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355093,
  "published_at": "2026-05-16T16:16:00+00:00"
}