CVE-2022-35411
JSON

9.8critical

rpc.py vulnerable to Deserialization of Untrusted Data

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
46.6% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-8rq8-f485-7v8xPYSEC-2026-526

Description

rpc.py through 0.6.0 allows Remote Code Execution because an unpickle occurs when the "serializer: pickle" HTTP header is sent. In other words, although JSON (not Pickle) is the default data format, an unauthenticated client can cause the data to be processed with unpickle.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
rpc-py (PyPI)from 0.4.2 up to 0.6.0GitHub Advisory Database, PyPA Advisory Database
rpc.py_project rpc.pyfrom 0.4.2 up to 0.6.0NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

rpc.py through 0.6.0 allows Remote Code Execution because an unpickle occurs when the "serializer: pickle" HTTP header is sent. In other words, although JSON (not Pickle) is the default data format, an unauthenticated client can cause the data to be processed with unpickle.

GitHub Advisory Database

rpc.py through 0.6.0 allows Remote Code Execution because an unpickle occurs when the "serializer: pickle" HTTP header is sent. In other words, although JSON (not Pickle) is the default data format, an unauthenticated client can cause the data to be processed with unpickle.

Per the maintainer, rpc.py is not designed for an API that is open to the outside world, and external requests cannot reach rpc.py in real world use.

A fix exists on the master branch. As a workaround, use the following code to turn off pickle in older versions:

del SERIALIZER_NAMES[PickleSerializer.name]
del SERIALIZER_TYPES[PickleSerializer.content_type]
NVD (es)

rpc.py versiones hasta 0.6.0, permite una Ejecución de Código Remota porque es producido un unpickle cuando es enviado el encabezado HTTP "serializer: pickle". En otras palabras, aunque JSON (no Pickle) es el formato de datos por defecto, un cliente no autenticado puede causar que los datos sean procesados con unpickle

References

Sources

SourceRecordLicence
CVE ListCVE-2022-35411 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-8rq8-f485-7v8x changed 2026-06-29CC-BY-4.0
NVDCVE-2022-35411 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-526 changed 2026-07-01CC-BY-4.0