Vulnérabilité dans github.com/apple/swift-nio-http2 (CVE-2022-24668)
Résumé
Vulnérabilité dans github.com/apple/swift-nio-http2 (CVE-2022-24668). Risque d'opérations non autorisées ou de divulgation. Atténuation : mise à jour vers 1.19.2 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
A program using swift-nio-http2 is vulnerable to a denial of service attack caused by a network peer sending ALTSVC or ORIGIN frames. This attack affects all swift-nio-http2 versions from 1.0.0 to 1.19.1. It is fixed in 1.19.2 and later releases.
This vulnerability is caused by a logical error after frame parsing but before frame handling. ORIGIN and ALTSVC frames are not currently supported by swift-nio-http2, and should be ignored. However, one code path that encounters them has a deliberate trap instead. This was left behind from the original development process and was never removed.
Sending an ALTSVC or ORIGIN frame does not require any special permission, so any HTTP/2 connection peer may send such a frame. For clients, this means any server to which they connect may launch this attack. For servers, anyone they allow to connect to them may launch such an attack.
The attack is low-effort: it takes very little resources to send one of these frames. The impact on availability is high: receiving the frame immediately crashes the server, dropping all in-flight connections and causing the service to need to restart. It is straightforward for an attacker to repeatedly send these frames, so attackers require very few resources to achieve a substantial denial of service.
The attack does not have any confidentiality or integrity risks in and of itself. This is a controlled, intentional crash. However, sudden process crashes can lead to violations of invariants in services, so…
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-24668 a été découverte dans github.com/apple/swift-nio-http2.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/apple/swift-nio-http2 vers 1.19.2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/apple/swift-nio-http2 CVE-2022-24668 » sur le site de l'éditeur.
CVE-2022-24668 (github.com/apple/swift-nio-http2) — CWE-241
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Correctif : 1.19.2 — 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-241) affecte github.com/apple/swift-nio-http2.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/apple/swift-nio-http2.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 1.19.2.
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/apple/swift-nio-http2' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/apple/swift-nio-http2を grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/apple/swift-nio-http2 to 1.19.2ステージング環境で 1.19.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-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 github.com