Every CVE Search/ Get API key

CVE-2024-27758

RPyC's missing security check results in code execution when using numpy.array on the server-side.

8.4 HighFix available

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.51%Up 0.5 points since Mar 13, 2024
90%50%10%1%

What each source reports

CVE List Score used 8.4

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Record
CVE-2024-27758
CVSS 3.1
8.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-306
Updated
2026-11-02
EUVDEUVD-2024-0160 8.4

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Record
EUVD-2024-0160
CVSS 3.1
8.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-h5cg-53g7-gqjw 8.4

RPyC's missing security check results in code execution when using numpy.array on the server-side.

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 execution

Impact

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 to True 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 for NetrefClass.

References

Record
GHSA-h5cg-53g7-gqjw
CVSS 4.0
8.4 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
CVSS 3.1
8.5 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Weakness
CWE-306, CWE-358, CWE-913
Updated
2026-11-02
NVD 8.4

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Record
CVE-2024-27758
CVSS 3.1
8.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-306
Updated
2026-11-02
OSV 8.4

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Record
CVE-2024-27758
CVSS 3.1
8.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2024-27758 8.4

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Record
DEBIAN-CVE-2024-27758
CVSS 3.1
8.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVGHSA-h5cg-53g7-gqjw 8.4

RPyC's missing security check results in code execution when using numpy.array on the server-side.

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 execution

Impact

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 to True 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 for NetrefClass.

References

Record
GHSA-h5cg-53g7-gqjw
CVSS 4.0
8.4 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
CVSS 3.1
8.5 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Weakness
CWE-306, CWE-358, CWE-913
Updated
2026-11-02
OSVUBUNTU-CVE-2024-27758 8.4

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Record
UBUNTU-CVE-2024-27758
CVSS 3.1
8.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVopenSUSE-SU-2024:0082-1 No score

Security update for python-rpyc

This update for python-rpyc fixes the following issues:

  • CVE-2024-27758: Fixed remote code execution via exposed methods (boo#1221331).
Record
openSUSE-SU-2024:0082-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:13768-1 No score

python310-rpyc-6.0.0-1.1 on GA media

These are all security issues fixed in the python310-rpyc-6.0.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13768-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:12040-1 No score

python313-rpyc-6.0.2-1.5 on GA media

These are all security issues fixed in the python313-rpyc-6.0.2-1.5 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:12040-1
Updated
2026-11-02
OSVPYSEC-2024-44 No score

In RPyC before 6.0.0, when a server exposes a method that calls the attribute named array for a client-provided netref (e.g., np.array(client_netref)), a remote attacker can craft a class that results in remote code execution.

Record
PYSEC-2024-44
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
rpyc
PyPI
4.0.0 up to 6.0.0
6.0.0
rpyc
Debian:12
All versions, plus listed versions
5.3.0-25.3.1-16.0.0-16.0.1-16.0.2-1
None known
rpyc
Debian:13
before 6.0.0-1
6.0.0-1
rpyc
Debian:14
before 6.0.0-1
6.0.0-1
rpyc
PyPI
4.0.0 up to 6.0.0, plus listed versions
4.0.14.0.24.1.04.1.14.1.2
Show 11 moreShow less
4.1.34.1.44.1.55.0.05.0.15.1.05.2.15.2.25.2.35.3.05.3.1
6.0.0
rpyc
PyPI
before 6.0.0, plus listed versions
3.2.03.2.13.2.23.2.33.3.0
Show 22 moreShow less
3.4.03.4.13.4.23.4.33.4.44.0.04.0.14.0.24.1.04.1.14.1.24.1.34.1.44.1.55.0.05.0.15.1.05.2.15.2.25.2.35.3.05.3.1
6.0.0
rpyc
Ubuntu:18.04:LTS
All versions, plus listed versions
3.4.4-1
None known
rpyc
Ubuntu:22.04:LTS
All versions, plus listed versions
5.0.1-15.0.1-25.0.1-3
None known
rpyc
Ubuntu:24.04:LTS
All versions, plus listed versions
5.3.1-1
None known
rpyc
Ubuntu:25.10
All versions, plus listed versions
6.0.1-1
None known
Show 7 moreShow less
Affected packages
PackageAffectedFixed
rpyc
Ubuntu:26.10
All versions, plus listed versions
6.0.2-1
None known
rpyc
Ubuntu:26.04:LTS
All versions, plus listed versions
6.0.1-16.0.2-1
None known
python-rpyc
SUSE:Package Hub 15 SP5
before 4.1.5-bp155.3.3.1
4.1.5-bp155.3.3.1
python-rpyc-test
SUSE:Package Hub 15 SP5
before 4.1.5-bp155.3.3.1
4.1.5-bp155.3.3.1
python-rpyc
openSUSE:Leap 15.5
before 4.1.5-bp155.3.3.1
4.1.5-bp155.3.3.1
python-rpyc-test
openSUSE:Leap 15.5
before 4.1.5-bp155.3.3.1
4.1.5-bp155.3.3.1
python-rpyc
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 6.0.2-1.5
6.0.2-1.5

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-27758 is a high vulnerability (CVSS 8.4) in Rpyc Project Rpyc, published March 6, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.51%, the 43rd percentile. Fixed in rpyc 6.0.0.

References

Show 12 moreShow less
MoveEnter Open