{"id":"CVE-2024-27758","aliases":["DEBIAN-CVE-2024-27758","EUVD-2024-0160","GHSA-h5cg-53g7-gqjw","PYSEC-2024-44","UBUNTU-CVE-2024-27758","openSUSE-SU-2024:0082-1","openSUSE-SU-2024:13768-1","openSUSE-SU-2026:12040-1"],"status":"published","title":"RPyC's missing security check results in code execution when using numpy.array on the server-side.","description":"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.","severity":{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.00507,"percentile":0.43769,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-306","CWE-358","CWE-913"],"published":"2024-03-06T17:05:30Z","modified":"2026-11-02T12:02:10Z","fixes":[{"ecosystem":"PyPI","package":"rpyc","fixed_in":["6.0.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:13","package":"rpyc","fixed_in":["6.0.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rpyc","fixed_in":["6.0.0-1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP5","package":"python-rpyc","fixed_in":["4.1.5-bp155.3.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP5","package":"python-rpyc-test","fixed_in":["4.1.5-bp155.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.5","package":"python-rpyc","fixed_in":["4.1.5-bp155.3.3.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.5","package":"python-rpyc-test","fixed_in":["4.1.5-bp155.3.3.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"6.0.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.3.0-2","5.3.1-1","6.0.0-1","6.0.1-1","6.0.2-1"]},{"source":"osv","ecosystem":"Debian:13","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"6.0.0"}]}],"versions":["4.0.0","4.0.1","4.0.2","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","5.0.0","5.0.1","5.1.0","5.2.1","5.2.2","5.2.3","5.3.0","5.3.1"]},{"source":"osv","ecosystem":"PyPI","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0"}]}],"versions":["3.2.0","3.2.1","3.2.2","3.2.3","3.3.0","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","4.0.0","4.0.1","4.0.2","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","5.0.0","5.0.1","5.1.0","5.2.1","5.2.2","5.2.3","5.3.0","5.3.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.4-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.1-1","5.0.1-2","5.0.1-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.3.1-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.2-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.1-1","6.0.2-1"]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP5","package":"python-rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.5-bp155.3.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP5","package":"python-rpyc-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.5-bp155.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.5","package":"python-rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.5-bp155.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.5","package":"python-rpyc-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.5-bp155.3.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-rpyc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1.5"}]}],"bundled":2}],"products":[{"vendor":"rpyc_project","product":"rpyc"}],"references":[{"url":"https://gist.github.com/renbou/957f70d27470982994f12a1d70153d09","tags":["x_transferred","web","report"]},{"url":"https://github.com/tomerfiliba-org/rpyc/security/advisories/GHSA-h5cg-53g7-gqjw","tags":["x_transferred","advisory","web","report"]},{"url":"https://github.com/tomerfiliba-org/rpyc/commit/9f45f8269d4106905db61d82cd529cacdb178911","tags":["web"]},{"url":"https://github.com/tomerfiliba-org/rpyc/commit/bba1d3562e6f9f1256ec64048cc23001c0bb7516","tags":["web","report"]},{"url":"https://github.com/tomerfiliba-org/rpyc/blob/5.3.1/rpyc/core/netref.py#L252-L255","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27758","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/rpyc/PYSEC-2024-44.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h5cg-53g7-gqjw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27758.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-27758","tags":["advisory"]},{"url":"https://github.com/tomerfiliba-org/rpyc","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-27758","tags":["report"]},{"url":"https://github.com/tomerfiliba-org/rpyc/issues/551","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-27758","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/AQXPI4PTGO5Y3OJPY3PCERYEYZAUX2VW/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1221331","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2024-27758","tags":["web"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2019-16328","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2024-27758","description":"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.","status":"published","published":"2024-03-12T00:00:00Z","modified":"2024-08-02T00:34:52.544Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-306"],"updated_at":"2026-11-02T14:34:12.982241Z"}],"euvd":[{"id":"EUVD-2024-0160","description":"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.","status":"published","published":"2024-03-12T00:00:00Z","modified":"2024-08-02T00:34:52Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:50:27.194572Z"}],"ghsa":[{"id":"GHSA-h5cg-53g7-gqjw","title":"RPyC's missing security check results in code execution when using numpy.array on the server-side.","description":"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](https://github.com/tomerfiliba-org/rpyc/commit/9f45f8269d4106905db61d82cd529cacdb178911).\n\n### Attack Vector\nRPyC 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\n\n### Impact\nAssuming the system exposes a method that calls the attribute `__array__`, an attacker can execute code using the vulnerable component. \n\n### Patches\nThe 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.\n\n### Workarounds\nWhile the recommend fix is to upgrade to RPyC 6.0.0, the workaround is to [apply bba1d356 as patch.](https://github.com/tomerfiliba-org/rpyc/commit/bba1d3562e6f9f1256ec64048cc23001c0bb7516)\n\n### Affected Component\n[The affected component](https://github.com/tomerfiliba-org/rpyc/blob/5.3.1/rpyc/core/netref.py#L252-L255) is the `__array__` method constructed for `NetrefClass`.\n\n### References\n- [Original disclosure](https://gist.github.com/renbou/957f70d27470982994f12a1d70153d09) by [renbou (Artem Mikheev)](https://gist.github.com/renbou)\n- [CVE-2024-27758](https://nvd.nist.gov/vuln/detail/CVE-2024-27758)\n","status":"published","published":"2024-03-06T17:05:30Z","modified":"2024-08-02T15:37:29Z","cvss":[{"version":"4.0","score":8.4,"vector":"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","level":"high"},{"version":"3.1","score":8.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","level":"high"}],"cwes":["CWE-306","CWE-358","CWE-913"],"updated_at":"2026-11-02T14:37:57.422393Z"}],"nvd":[{"id":"CVE-2024-27758","description":"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.","status":"published","published":"2024-03-12T16:15:08.6Z","modified":"2026-06-17T07:20:14.82Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-306"],"updated_at":"2026-11-02T14:09:40.831473Z"}],"osv":[{"id":"CVE-2024-27758","description":"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.","status":"published","published":"2024-03-12T00:00:00Z","modified":"2026-10-28T02:30:28.115119942Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:39.569658Z"},{"id":"DEBIAN-CVE-2024-27758","description":"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.","status":"published","published":"2024-03-12T16:15:08.6Z","modified":"2026-11-02T12:02:10.154038261Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:42.530184Z"},{"id":"GHSA-h5cg-53g7-gqjw","title":"RPyC's missing security check results in code execution when using numpy.array on the server-side.","description":"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](https://github.com/tomerfiliba-org/rpyc/commit/9f45f8269d4106905db61d82cd529cacdb178911).\n\n### Attack Vector\nRPyC 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\n\n### Impact\nAssuming the system exposes a method that calls the attribute `__array__`, an attacker can execute code using the vulnerable component. \n\n### Patches\nThe 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.\n\n### Workarounds\nWhile the recommend fix is to upgrade to RPyC 6.0.0, the workaround is to [apply bba1d356 as patch.](https://github.com/tomerfiliba-org/rpyc/commit/bba1d3562e6f9f1256ec64048cc23001c0bb7516)\n\n### Affected Component\n[The affected component](https://github.com/tomerfiliba-org/rpyc/blob/5.3.1/rpyc/core/netref.py#L252-L255) is the `__array__` method constructed for `NetrefClass`.\n\n### References\n- [Original disclosure](https://gist.github.com/renbou/957f70d27470982994f12a1d70153d09) by [renbou (Artem Mikheev)](https://gist.github.com/renbou)\n- [CVE-2024-27758](https://nvd.nist.gov/vuln/detail/CVE-2024-27758)\n","status":"published","published":"2024-03-06T17:05:30Z","modified":"2026-07-08T06:53:10.308767863Z","cvss":[{"version":"3.1","score":8.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","level":"high"},{"version":"4.0","score":8.4,"vector":"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","level":"high"}],"cwes":["CWE-306","CWE-358","CWE-913"],"updated_at":"2026-11-02T15:46:48.546324Z"},{"id":"UBUNTU-CVE-2024-27758","description":"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.","status":"published","published":"2024-03-12T16:15:00Z","modified":"2026-10-17T12:56:43.908353221Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:48.333535Z"},{"id":"openSUSE-SU-2024:0082-1","title":"Security update for python-rpyc","description":"This update for python-rpyc fixes the following issues:\n\n- CVE-2024-27758: Fixed remote code execution via exposed methods (boo#1221331).\n","status":"published","published":"2024-03-15T16:00:10Z","modified":"2026-02-04T04:39:06.28714Z","updated_at":"2026-11-02T16:58:33.135986Z"},{"id":"openSUSE-SU-2024:13768-1","title":"python310-rpyc-6.0.0-1.1 on GA media","description":"These are all security issues fixed in the python310-rpyc-6.0.0-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:45:58.162305Z","updated_at":"2026-11-02T16:58:36.327643Z"},{"id":"openSUSE-SU-2026:12040-1","title":"python313-rpyc-6.0.2-1.5 on GA media","description":"These are all security issues fixed in the python313-rpyc-6.0.2-1.5 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-10-04T00:00:00Z","modified":"2026-10-05T10:15:52.537214261Z","updated_at":"2026-11-02T16:58:40.245664Z"},{"id":"PYSEC-2024-44","description":"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.","status":"published","published":"2024-03-12T16:15:00Z","modified":"2024-03-12T19:41:32.129797Z","updated_at":"2026-11-02T15:52:54.242332Z"}]}}
