GHSA-8rq8-f485-7v8x

    Dashboard / Vulnerabilities / GHSA-8rq8-f485-7v8x

    GHSA-8rq8-f485-7v8x

    Published: 9 Jul 2022Last Modified: 29 Jun 2026

    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. [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. A [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: ``` del SERIALIZER_NAMES[PickleSerializer.name] del SERIALIZER_TYPES[PickleSerializer.content_type]

    Affected packages

    Package

    Name: rpc-py

    Purl: pkg:pypi/rpc-py

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0.4.2
    Fixed -None

    Affected versions

    0.4.2
    0.4.3

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-8rq8-f485-7v8x | CVE-DB