CVE-2024-27758
RPyC's missing security check results in code execution when using numpy.array on the server-side.
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
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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
rpycPyPI |
4.0.0 up to 6.0.0 | 6.0.0 |
rpycDebian:12 |
All versions, plus listed versions 5.3.0-25.3.1-16.0.0-16.0.1-16.0.2-1 |
None known |
rpycDebian:13 |
before 6.0.0-1 | 6.0.0-1 |
rpycDebian:14 |
before 6.0.0-1 | 6.0.0-1 |
rpycPyPI |
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 less4.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 |
rpycPyPI |
before 6.0.0, plus listed versions 3.2.03.2.13.2.23.2.33.3.0 Show 22 moreShow less3.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 |
rpycUbuntu:18.04:LTS |
All versions, plus listed versions 3.4.4-1 |
None known |
rpycUbuntu:22.04:LTS |
All versions, plus listed versions 5.0.1-15.0.1-25.0.1-3 |
None known |
rpycUbuntu:24.04:LTS |
All versions, plus listed versions 5.3.1-1 |
None known |
rpycUbuntu:25.10 |
All versions, plus listed versions 6.0.1-1 |
None known |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rpycUbuntu:26.10 |
All versions, plus listed versions 6.0.2-1 |
None known |
rpycUbuntu:26.04:LTS |
All versions, plus listed versions 6.0.1-16.0.2-1 |
None known |
python-rpycSUSE:Package Hub 15 SP5 |
before 4.1.5-bp155.3.3.1 | 4.1.5-bp155.3.3.1 |
python-rpyc-testSUSE:Package Hub 15 SP5 |
before 4.1.5-bp155.3.3.1 | 4.1.5-bp155.3.3.1 |
python-rpycopenSUSE:Leap 15.5 |
before 4.1.5-bp155.3.3.1 | 4.1.5-bp155.3.3.1 |
python-rpyc-testopenSUSE:Leap 15.5 |
before 4.1.5-bp155.3.3.1 | 4.1.5-bp155.3.3.1 |
python-rpycopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 6.0.2-1.5 | 6.0.2-1.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE 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
gist.github.com/renbou/957f70d27470982994f12a1d70153d09
github.com/tomerfiliba-org/rpyc/security/advisories/GHSA-h5cg-53g7-gqjw
github.com/tomerfiliba-org/rpyc/commit/9f45f8269d4106905db61d82cd529cacdb178911
github.com/tomerfiliba-org/rpyc/commit/bba1d3562e6f9f1256ec64048cc23001c0bb7516
github.com/tomerfiliba-org/rpyc/blob/5.3.1/rpyc/core/netref.py
nvd.nist.gov/vuln/detail/CVE-2024-27758
Show 12 moreShow less
github.com/pypa/advisory-database/tree/main/vulns/rpyc/PYSEC-2024-44.yaml
github.com/advisories/GHSA-h5cg-53g7-gqjw
github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27758.json
security-tracker.debian.org/tracker/CVE-2024-27758
github.com/tomerfiliba-org/rpyc
ubuntu.com/security/CVE-2024-27758
github.com/tomerfiliba-org/rpyc/issues/551
cve.org/CVERecord?id=CVE-2024-27758
lists.opensuse.org/archives/list/[email protected]/thread/AQXPI4PTGO5Y3OJPY3PCERYEYZAUX2VW
bugzilla.suse.com/1221331
suse.com/security/cve/CVE-2024-27758
suse.com/security/cve/CVE-2019-16328