Vulnérabilité dans rpyc (CVE-2024-27758)
Résumé
Vulnérabilité dans rpyc (CVE-2024-27758). Des informations confidentielles peuvent être exposées. Exploitable via __array__. Atténuation : mise à jour vers 6.0.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
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
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2024-27758 a été découverte dans rpyc.
Des attaquants peuvent cibler un point d'entrée spécifique comme __array__ à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées.
Action : mettez à jour rpyc vers 6.0.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « rpyc CVE-2024-27758 » sur le site de l'éditeur.
CVE-2024-27758 (rpyc) — CWE-306
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : __array__ / allow_pickle / True / NetrefClass
Correctif : 6.0.0 — appliquer immédiatement
Contournement : While the recommend fix is to upgrade to RPyC 6.0.0, the workaround is to apply bba1d356 as patch.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-306) affecte rpyc. Les attaquants atteignent le code vulnérable via __array__.
Consultez l'avis de l'éditeur pour les versions affectées de rpyc. Surface d'attaque : __array__ / allow_pickle / True / NetrefClass.
Gravité : ?. Des informations confidentielles peuvent être exposées.
Mettre à jour vers 6.0.0.
Contournement : While the recommend fix is to upgrade to RPyC 6.0.0, the workaround is to apply bba1d356 as patch.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'rpyc' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
rpycを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
While 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)パッチが適用されるまでの応急処置として、While the recommend fix is to upgrade to RPyC 6.0.0, the workaround is to apply bba1d356 as patch. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade rpyc to 6.0.0ステージング環境で 6.0.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- Debian DEBIAN-CVE-2024-27758 rpyc
- Ubuntu UBUNTU-CVE-2024-27758 rpyc
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web gist.github.com
- web github.com
- web github.com