{"id":"CVE-2022-35411","aliases":["CVE-2022-35411","GHSA-8rq8-f485-7v8x","PYSEC-2026-526"],"related":[],"kind":"vulnerability","state":"published","title":"rpc.py vulnerable to Deserialization of Untrusted Data","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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]","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-07-08T18:07:40.000Z","modified":"2026-07-01T20:23:04.195Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502","CWE-522"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.4.2","status":"affected","lastAffected":"0.6.0"}],"ecosystem":"PyPI","package":"rpc-py","purl":"pkg:pypi/rpc-py","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.4.2","lastAffected":"0.6.0"}],"vendor":"rpc.py_project","product":"rpc.py","cpe":"cpe:2.3:a:rpc.py_project:rpc.py:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.4.2","status":"affected","lastAffected":"0.6.0"}],"ecosystem":"PyPI","package":"rpc-py","purl":"pkg:pypi/rpc-py","source":"pysec"}],"references":[{"url":"https://medium.com/%40elias.hohl/remote-code-execution-0-day-in-rpc-py-709c76690c30","tags":["exploit","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ehtec/rpcpy-exploit","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/abersheeran/rpc.py/commit/491e7a841ed9a754796d6ab047a9fb16e23bf8bd","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://packetstormsecurity.com/files/167872/rpc.py-0.6.0-Remote-Code-Execution.html","tags":["exploit","third-party-advisory","vdb-entry","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35411","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/abersheeran/rpc.py/issues/22","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/abersheeran/rpc.py","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://medium.com/@elias.hohl/remote-code-execution-0-day-in-rpc-py-709c76690c30","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/rpc-py","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8rq8-f485-7v8x","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-35411","url":"https://www.cve.org/CVERecord?id=CVE-2022-35411","licence":"CVE Terms of Use","modified":"2024-08-03T09:36:44.447Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8rq8-f485-7v8x","url":"https://github.com/advisories/GHSA-8rq8-f485-7v8x","licence":"CC-BY-4.0","modified":"2026-06-29T12:26:20.712Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-35411","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35411","licence":"Public domain","modified":"2026-06-17T04:51:47.433Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-526","url":"https://osv.dev/vulnerability/PYSEC-2026-526","licence":"CC-BY-4.0","modified":"2026-07-01T20:23:04.195Z"}],"updatedAt":"2026-11-25T22:58:12.768Z","epss":{"score":0.46647,"percentile":0.98846,"date":"2026-12-01T12:00:22.000Z"}}