Update dependency rpyc to v6 [SECURITY] #3948
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.3.1
->6.0.0
GitHub Vulnerability Alerts
CVE-2024-27758
An issue in Open Source: RPyC v.4.00 thru v.5.3.1 allows a remote attacker to execute arbitrary code via a crafted script to the
__array__
attribute component. This vulnerability was introduced in 9f45f826.Attack Vector
RPyC services that rely on the
__array__
attribute used by numpy are impacted. When the server-side exposes a method that calls the attribute named__array__
for a a client provided netref (e.g.,np.array(client_netref)
), a remote attacker can craft a class which results in remote code executionImpact
Assuming the system exposes a method that calls the attribute
__array__
, an attacker can execute code using the vulnerable component.Patches
The fix is available in RPyC 6.0.0. The major version change is because some users may need to set
allow_pickle
toTrue
when migrating to RPyC 6.Workarounds
While the recommend fix is to upgrade to RPyC 6.0.0, the workaround is to apply bba1d356 as patch.
Affected Component
The affected component is the
__array__
method constructed forNetrefClass
.References
Release Notes
tomerfiliba-org/rpyc (rpyc)
v6.0.0
Compare Source
=====
Date: 2024-02-23
#551
_ Resolves security issue that results in RCE. The fix breaks backwards compatibility for those that rely on the__array__
attribute used bynumpy
. This RCE is only exploitable when the server-side gets the attribute__array__
and calls it (e.g.,np.array(x)
). This issues effects all versions since major release 4... _#551:https://github.com/tomerfiliba-org/rpyc/issues/5511
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.