CVE-2022-35411
Python vulnerability analysis and mitigation

Overview

rpc.py through version 0.6.0 contains a Remote Code Execution vulnerability (CVE-2022-35411) that was discovered in July 2022. The vulnerability exists because an unpickle operation occurs when the 'serializer: pickle' HTTP header is sent, allowing unauthenticated clients to force the processing of data with unpickle despite JSON being the default data format (CVE Details, Medium Blog).

Technical details

The vulnerability stems from the way rpc.py handles serializer selection through request headers. While JSON is the default serializer, the application allows overriding this through the 'serializer: pickle' HTTP header. When this header is sent, the application processes the data using Python's pickle module, which is known to be unsafe for deserializing untrusted data. This vulnerability affects both sync_server.py and async_server.py implementations in the examples folder (Medium Blog).

Impact

The vulnerability allows unauthenticated attackers to execute arbitrary code on the server by sending malicious pickle payloads. This represents a critical security risk as it enables complete compromise of affected systems running rpc.py versions 0.4.2 through 0.6.0 (Medium Blog).

Mitigation and workarounds

The vulnerability was addressed in a commit that disabled the PickleSerializer by default. The fix includes adding a warning comment indicating that pickle serialization should only be enabled when there is physical isolation from external networks (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22612HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22609HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22608HIGH8.9
  • PythonPython
  • fickling
NoYesJan 10, 2026
CVE-2026-22691LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 2026
CVE-2026-22690LOW2.7
  • PythonPython
  • pypdf
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management