Vulnérabilité dans github.com/opencontainers/runc (CVE-2024-21626)
Résumé
Vulnérabilité dans github.com/opencontainers/runc (CVE-2024-21626). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via process.cwd. Atténuation : mise à jour vers 1.1.12 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
In runc 1.1.11 and earlier, due to an internal file descriptor leak, an attacker could cause a newly-spawned container process (from runc exec) to have a working directory in the host filesystem namespace, allowing for a container escape by giving access to the host filesystem ("attack 2"). The same attack could be used by a malicious image to allow a container process to gain access to the host filesystem through runc run ("attack 1"). Variants of attacks 1 and 2 could be also be used to overwrite semi-arbitrary host binaries, allowing for complete container escapes ("attack 3a" and "attack 3b").
Strictly speaking, while attack 3a is the most severe from a CVSS perspective, attacks 2 and 3b are arguably more dangerous in practice because they allow for a breakout from inside a container as opposed to requiring a user execute a malicious image. The reason attacks 1 and 3a are scored higher is because being able to socially engineer users is treated as a given for UI:R vectors, despite attacks 2 and 3b requiring far more minimal user interaction (just reasonable runc exec operations on a container the attacker has access to). In any case, all four attacks can lead to full control of the host system.
Attack 1: process.cwd "mis-configuration"
In runc 1.1.11 and earlier, several file descriptors were inadvertently leaked internally within runc into runc init, including a handle to the host's /sys/fs/cgroup (this leak was added in v1.0.0-rc93). If t…
Source: NIST National Vulnerability Database NVD GitHub Advisory
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-21626 a été découverte dans github.com/opencontainers/runc.
Des attaquants peuvent cibler un point d'entrée spécifique comme process.cwd à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 8.6/10.
Action : mettez à jour github.com/opencontainers/runc vers 1.1.12 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/opencontainers/runc CVE-2024-21626 » sur le site de l'éditeur.
CVE-2024-21626 (github.com/opencontainers/runc) — CWE-403 / CVSS v3 8.6
Vecteur d'attaque : local / non authentifié
Surface d'attaque : process.cwd / runc / ONBUILD / PR_SET_DUMPABLE
Correctif : 1.1.12 — appliquer immédiatement
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-403) affecte github.com/opencontainers/runc. Les attaquants atteignent le code vulnérable via process.cwd sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/opencontainers/runc. Surface d'attaque : process.cwd / runc / ONBUILD / PR_SET_DUMPABLE.
Gravité : Élevée (CVSS 8.6/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 1.1.12.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
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 'github.com/opencontainers/runc' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/opencontainers/runcを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/opencontainers/runc to 1.1.12ステージング環境で 1.1.12 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-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-21626 runc Corrigé dans: 1.0.0~rc93+ds1-5+deb11u3
- Ubuntu UBUNTU-CVE-2024-21626 runc Corrigé dans: 1.1.4-0ubuntu1~18.04.2+esm1
Références
- exploit packetstormsecurity.com
- exploit github.com
- mailing openwall.com
- mailing openwall.com
- mailing lists.fedoraproject.org
- patch github.com
- web github.com
- web lists.debian.org
- web lists.fedoraproject.org
- web vicarius.io
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web access.redhat.com
- web bugzilla.redhat.com
- web security.access.redhat.com
- web nvd.nist.gov
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web github.com