{"id":"PYSEC-2026-526","summary":"rpc.py vulnerable to Deserialization of Untrusted Data","details":"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.\n\n[Per the maintainer](https://github.com/abersheeran/rpc.py/issues/22), 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.\n\nA [fix](https://github.com/abersheeran/rpc.py/commit/491e7a841ed9a754796d6ab047a9fb16e23bf8bd) exists on the `master` branch. As a workaround, use the following code to turn off pickle in older versions:\n```\ndel SERIALIZER_NAMES[PickleSerializer.name]\ndel SERIALIZER_TYPES[PickleSerializer.content_type]","aliases":["CVE-2022-35411","GHSA-8rq8-f485-7v8x"],"modified":"2026-07-01T20:23:04.195521Z","published":"2026-06-29T11:50:33.689769Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35411"},{"type":"WEB","url":"https://github.com/abersheeran/rpc.py/issues/22"},{"type":"WEB","url":"https://github.com/abersheeran/rpc.py/commit/491e7a841ed9a754796d6ab047a9fb16e23bf8bd"},{"type":"PACKAGE","url":"https://github.com/abersheeran/rpc.py"},{"type":"WEB","url":"https://github.com/ehtec/rpcpy-exploit"},{"type":"WEB","url":"https://medium.com/%40elias.hohl/remote-code-execution-0-day-in-rpc-py-709c76690c30"},{"type":"WEB","url":"https://medium.com/@elias.hohl/remote-code-execution-0-day-in-rpc-py-709c76690c30"},{"type":"WEB","url":"http://packetstormsecurity.com/files/167872/rpc.py-0.6.0-Remote-Code-Execution.html"},{"type":"PACKAGE","url":"https://pypi.org/project/rpc-py"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8rq8-f485-7v8x"}],"affected":[{"package":{"name":"rpc-py","ecosystem":"PyPI","purl":"pkg:pypi/rpc-py"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.2"},{"last_affected":"0.6.0"}]}],"versions":["0.4.2","0.4.3","0.5.0","0.5.1","0.6.0"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/rpc-py/PYSEC-2026-526.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}