Remote Code Execution Vulnerability in RPyC Package

rpyc Updated 02 Oct 2025

Summary

12/03/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-27758: 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 exec... Affects rpyc versions < 6.0.0-1. Fixed in 6.0.0-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

RPyC (Remote Python Call) is a Python library that allows for remote procedure calls, enabling communication between Python programs over a network. It is designed to facilitate the execution of Python code on a remote server as if it were local. The library supports various features such as object serialization and remote method invocation, making it a popular choice for distributed applications. However, a critical vulnerability has been identified in versions prior to 6.0.0, which exposes users to potential remote code execution risks.

Vulnerability Detail

In RPyC versions before 6.0.0, a security flaw exists when a server exposes a method that calls the attribute named array for a client-provided netref. This vulnerability allows a remote attacker to craft a malicious class that can lead to remote code execution when the server processes the client-provided netref, potentially compromising the server's integrity and security.

How To Fix

Minimum fixed version

6.0.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rpyc

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid exposing methods that utilize the array attribute for client-provided netrefs until the package can be updated. This can help mitigate the risk of exploitation until a proper fix is applied.

Conclusion

The RPyC package has a critical vulnerability that allows for remote code execution in versions prior to 6.0.0. Users are strongly advised to update to the latest version to mitigate risks. In the meantime, implementing workarounds can help reduce exposure to potential attacks.

See every vulnerability recorded for rpyc →

Share this vulnerability

FAQ

RPyC is a Python library that enables remote procedure calls, allowing Python programs to communicate and execute code on remote servers.

The vulnerability allows remote attackers to execute arbitrary code on the server by exploiting methods that handle client-provided netrefs.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Yes, the vulnerability has been patched in version 6.0.0-1 of the RPyC package. Updating to this version will resolve the issue.

If immediate updates are not possible, consider implementing workarounds such as avoiding the exposure of methods that utilize the array attribute for client-provided netrefs.

Related vulnerabilities

Recent vulnerabilities recorded for rpyc.

How To Fix

Minimum fixed version

6.0.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rpyc

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback