Skip to content
Heist/ feed
Back to feed
High

rpyc — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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 execution.

Products
rpyc
Affected versions
3.4.4-1, 5.0.1-1, 5.0.1-2, 5.0.1-3, 5.3.1-1, 6.0.1-1, 6.0.2-1
Fixed versions
Not specified
CVEs
CVE-2024-27758
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:12 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-27758

core-osv · Original source

Published 12 Mar 2024, 16:15 UTC

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.

osv:UBUNTU-CVE-2024-27758

rpyc

Fixed versions: Not specified

rpyc

Fixed versions: Not specified

rpyc

Fixed versions: Not specified

rpyc

Fixed versions: Not specified

rpyc

Fixed versions: Not specified

rpyc

Fixed versions: Not specified

Complete source record
{
  "id": "90294614ae50b3c862f128c02fc1f786637ee4aee63fa5065bd5eb8104e91db4",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-27758",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-27758",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2024-27758",
    "products": [
      {
        "name": {
          "value": "rpyc",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.4.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rpyc",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.0.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.0.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.0.1-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rpyc",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.3.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rpyc",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.1-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rpyc",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.2-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rpyc",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.0.2-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2024-27758",
      "aliases": [
        "UBUNTU-CVE-2024-27758"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rpyc",
            "purl": "pkg:deb/ubuntu/rpyc?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.4.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27758.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-rpyc",
                "binary_version": "3.4.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rpyc",
            "purl": "pkg:deb/ubuntu/rpyc?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "5.0.1-1",
            "5.0.1-2",
            "5.0.1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27758.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-rpyc",
                "binary_version": "5.0.1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rpyc",
            "purl": "pkg:deb/ubuntu/rpyc?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "5.3.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27758.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-rpyc",
                "binary_version": "5.3.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rpyc",
            "purl": "pkg:deb/ubuntu/rpyc?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "6.0.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27758.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-rpyc",
                "binary_version": "6.0.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rpyc",
            "purl": "pkg:deb/ubuntu/rpyc?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "6.0.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27758.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-rpyc",
                "binary_version": "6.0.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rpyc",
            "purl": "pkg:deb/ubuntu/rpyc?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "6.0.1-1",
            "6.0.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27758.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-rpyc",
                "binary_version": "6.0.2-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:43.908353221Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-27758"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-27758",
        "https://github.com/tomerfiliba-org/rpyc/security/advisories/GHSA-h5cg-53g7-gqjw",
        "https://github.com/tomerfiliba-org/rpyc/issues/551",
        "https://github.com/tomerfiliba-org/rpyc/commit/bba1d3562e6f9f1256ec64048cc23001c0bb7516",
        "https://gist.github.com/renbou/957f70d27470982994f12a1d70153d09",
        "https://www.cve.org/CVERecord?id=CVE-2024-27758"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-27758",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356077,
  "published_at": "2024-03-12T16:15:00+00:00"
}