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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| rpc-py (PyPI) | from 0.4.2 up to 0.6.0 | GitHub Advisory Database, PyPA Advisory Database |
| rpc.py_project rpc.py | from 0.4.2 up to 0.6.0 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS: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
| https://medium.com/%40elias.hohl/remote-code-execution-0-day-in-rpc-py-709c76690c30 | exploit, web | |
| https://github.com/ehtec/rpcpy-exploit | exploit, third-party-advisory, web | |
| https://github.com/abersheeran/rpc.py/commit/491e7a841ed9a754796d6ab047a9fb16e23bf8bd | patch, third-party-advisory, web | |
| http://packetstormsecurity.com/files/167872/rpc.py-0.6.0-Remote-Code-Execution.html | exploit, third-party-advisory, vdb-entry, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-35411 | advisory | |
| https://github.com/abersheeran/rpc.py/issues/22 | web | |
| https://github.com/abersheeran/rpc.py | package | |
| https://medium.com/@elias.hohl/remote-code-execution-0-day-in-rpc-py-709c76690c30 | web | |
| https://pypi.org/project/rpc-py | package | |
| https://github.com/advisories/GHSA-8rq8-f485-7v8x | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-35411 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8rq8-f485-7v8x changed 2026-06-29 | CC-BY-4.0 |
| NVD | CVE-2022-35411 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-526 changed 2026-07-01 | CC-BY-4.0 |