Vulnérabilité dans github.com/opencontainers/distribution-spec (CVE-2021-41190)
Résumé
Vulnérabilité dans github.com/opencontainers/distribution-spec (CVE-2021-41190). Risque d'opérations non autorisées ou de divulgation. Exploitable via mediaType. Atténuation : mise à jour vers 1.0.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
In the OCI Distribution Specification version 1.0.0 and prior, the Content-Type header alone was used to determine the type of document during push and pull operations. Documents that contain both “manifests” and “layers” fields could be interpreted as either a manifest or an index in the absence of an accompanying Content-Type header. If a Content-Type header changed between two pulls of the same digest, a client may interpret the resulting content differently.
Patches
The OCI Distribution Specification will be updated to require that a mediaType value present in a manifest or index match the Content-Type header used during the push and pull operations.
Workarounds
Clients pulling from a registry may distrust the Content-Type header and reject an ambiguous document that contains both “manifests” and “layers” fields or “manifests” and “config” fields.
References
https://github.com/opencontainers/image-spec/security/advisories/GHSA-77vh-xpmg-72qh
For more information
If you have any questions or comments about this advisory:
- Open an issue in https://github.com/opencontainers/distribution-spec/
- Email us at security@opencontainers.org
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-2021-41190 a été découverte dans github.com/opencontainers/distribution-spec.
Des attaquants peuvent cibler un point d'entrée spécifique comme mediaType à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/opencontainers/distribution-spec vers 1.0.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/opencontainers/distribution-spec CVE-2021-41190 » sur le site de l'éditeur.
CVE-2021-41190 (github.com/opencontainers/distribution-spec) — CWE-843
Vecteur d'attaque : distant (réseau)
Surface d'attaque : mediaType
Correctif : 1.0.1 — appliquer immédiatement
Contournement : Clients pulling from a registry may distrust the Content-Type header and reject an ambiguous document that contains both “manifests” and “layers” fields or “manifests” and “config” fields.
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-843) affecte github.com/opencontainers/distribution-spec. Les attaquants atteignent le code vulnérable via mediaType.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/opencontainers/distribution-spec. Surface d'attaque : mediaType.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 1.0.1.
Contournement : Clients pulling from a registry may distrust the Content-Type header and reject an ambiguous document that contains both “manifests” and “layers” fields or “manifests” and “config” fields.
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/distribution-spec' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/opencontainers/distribution-specを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Clients pulling from a registry may distrust the Content-Type header and reject an ambiguous document that contains both “manifests” and “layers” fields or “manifests” and “config” fields.パッチが適用されるまでの応急処置として、Clients pulling from a registry may distrust the Content-Type header and reject an ambiguous document that contains both “manifests” and “layers” fields or “manifests” and “config” fields. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade github.com/opencontainers/distribution-spec to 1.0.1ステージング環境で 1.0.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
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
- Ubuntu UBUNTU-CVE-2021-41190 docker.io
Références
- advisory nvd.nist.gov
- package github.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web openwall.com
- web github.com
- web github.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org