GHSA-8rq8-f485-7v8x

Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-8rq8-f485-7v8x/GHSA-8rq8-f485-7v8x.json
Aliases
  • CVE-2022-35411
Published
2022-07-09T00:00:19Z
Modified
2022-08-16T03:33:17.262942Z
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, 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 SERIALIZERNAMES[PickleSerializer.name] del SERIALIZERTYPES[PickleSerializer.content_type]

References

Affected packages

PyPI / rpc-py

rpc-py

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0

Affected versions

0.*

0.1.1
0.2.1
0.2.2
0.3.0
0.3.1
0.4.0
0.4.1
0.4.2
0.4.3
0.5.0
0.5.1
0.6.0

Ecosystem specific

{
    "affected_functions": [
        "rpcpy.serializers.SERIALIZER_NAMES",
        "rpcpy.serializers.SERIALIZER_TYPES"
    ]
}

Database specific

{
    "last_known_affected_version_range": "<= 0.6.0"
}