Vulnérabilité dans github.com/cri-o/cri-o (CVE-2022-27652)
Résumé
Vulnérabilité dans github.com/cri-o/cri-o (CVE-2022-27652). Risque d'opérations non autorisées ou de divulgation. Atténuation : mise à jour vers 1.24.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
A bug was found in CRI-O where containers were incorrectly started with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). Normally, when executable programs have specified permitted file capabilities, otherwise unprivileged users and processes can execute those programs and gain the specified file capabilities up to the bounding set. Due to this bug, containers which included executable programs with inheritable file capabilities allowed otherwise unprivileged users and processes to additionally gain these inheritable file capabilities up to the container's bounding set. Containers which use Linux users and groups to perform privilege separation inside the container are most directly impacted.
This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set.
Patches
This bug will been fixed in the following versions of CRI-O:
- v1.24.0
Users should update to the version corresponding to their minor release as soon as possible. Running containers should be stopped, deleted, and recreated for the inheritable capabilities to be reset.
This fix changes CRI-O behavior such that containers are started with a more typical Linux environment. Refer to capabilities(7) for a description of how capab…
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-2022-27652 a été découverte dans github.com/cri-o/cri-o.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/cri-o/cri-o vers 1.24.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/cri-o/cri-o CVE-2022-27652 » sur le site de l'éditeur.
CVE-2022-27652 (github.com/cri-o/cri-o) — CWE-276
Vecteur d'attaque : local
Correctif : 1.24.0 — appliquer immédiatement
Contournement : The entrypoint of a container can be modified to use a utility like capsh(1) to drop inheritable capabilities prior to the primary process starting.
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-276) affecte github.com/cri-o/cri-o.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/cri-o/cri-o.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 1.24.0.
Contournement : The entrypoint of a container can be modified to use a utility like capsh(1) to drop inheritable capabilities prior to the primary process starting.
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/cri-o/cri-o' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/cri-o/cri-oを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
The entrypoint of a container can be modified to use a utility like `capsh(1)` to drop inheritable capabilities prior to the primary process starting.パッチが適用されるまでの応急処置として、The entrypoint of a container can be modified to use a utility like
capsh(1)to drop inheritable capabilities prior to the primary process starting. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade github.com/cri-o/cri-o to 1.24.0ステージング環境で 1.24.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web bugzilla.redhat.com