Vulnérabilité dans github.com/cri-o/cri-o (CVE-2022-1708)
Résumé
Vulnérabilité dans github.com/cri-o/cri-o (CVE-2022-1708). Risque d'opérations non autorisées ou de divulgation. Atténuation : mise à jour vers 1.24.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Description
An ExecSync request runs a command in a container and returns the output to the Kubelet. It is used for readiness and liveness probes within a pod. The way CRI-O runs ExecSync commands is through conmon. CRI-O asks conmon to start the process, and conmon writes the output to disk. CRI-O then reads the output and returns it to the Kubelet.
If the output of the command is large enough, it is possible to exhaust the memory (or disk usage) of the node. The following deployment is an example yaml file that will output around 8GB of ‘A’ characters, which would be written to disk by conmon and read by CRI-O.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment100
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "seq 1 50000000`; do echo -n 'aaaaaaaaaaaaaaaa'; done"]
Impact
It is possible for the node to be exhausted of memory or disk space, depending on the node the command is being run on. What is further problematic is that the memory and disk usage aren't attributed to the container, as this file and its processing are implementation details of CRI-O. The consequence of the exhaustion is that other services on the node, e.g. other containers, will be unable to allocate memory and…
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-1708 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.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/cri-o/cri-o CVE-2022-1708 » sur le site de l'éditeur.
CVE-2022-1708 (github.com/cri-o/cri-o) — CWE-400
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Correctif : 1.24.1 — appliquer immédiatement
Contournement : At the time of writing, no workaround exists other than ensuring only trusted images are used.
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-400) 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.1.
Contournement : At the time of writing, no workaround exists other than ensuring only trusted images are used.
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
At the time of writing, no workaround exists other than ensuring only trusted images are used.パッチが適用されるまでの応急処置として、At the time of writing, no workaround exists other than ensuring only trusted images are used. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade github.com/cri-o/cri-o to 1.24.1ステージング環境で 1.24.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
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 github.com
- web bugzilla.redhat.com