Injection de code dans Microsoft.OpenApi.Kiota (CVE-2026-105796)
Résumé
Injection de code dans Microsoft.OpenApi.Kiota (CVE-2026-105796). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via Microsoft.OpenApi.Kiota. Atténuation : mise à jour vers 1.35.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
An attacker who controls or tampers with an OpenAPI description can cause Kiota to emit attacker-controlled Java or PHP source outside a generated documentation comment. The affected sanitizers remove comment terminators rather than neutralizing them, allowing a terminator to reform from overlapping characters or from subsequent normalization. The Java sanitizer also removes non-ASCII characters after removing terminators, which can create a new terminator.
Exploitation requires a developer or build pipeline to generate a client from the malicious description and subsequently compile and load the Java output, or load the PHP output. Code executes in the consuming application's or build environment's security context, not merely because Kiota reads the description.
Affected versions
The affected NuGet packages are Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder. The Java normalization-order defect was introduced in version 0.5.0 and remains present through version 1.34.1, including the separate 1.29.1 security-backport release. The PHP delimiter-reformation variant is also present in version 1.34.1 and 1.29.1. Version 1.35.0 fixes both variants.
The package version range below reflects the Java defect; it does not assert that PHP generation existed in every version in that range.
Patches
Upgrade to Kiota 1.35.0 or later and regenerate affected clients. The fix neutralizes block-comment delimiters instead of deleting them, and performs…
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-2026-105796 a été découverte dans Microsoft.OpenApi.Kiota.
Des attaquants peuvent cibler un point d'entrée spécifique comme Microsoft.OpenApi.Kiota à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 8.8/10.
Action : mettez à jour Microsoft.OpenApi.Kiota vers 1.35.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « Microsoft.OpenApi.Kiota CVE-2026-105796 » sur le site de l'éditeur.
CVE-2026-105796 (Microsoft.OpenApi.Kiota) — CWE-94 / CVSS v3 8.8
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : Microsoft.OpenApi.Kiota / Microsoft.OpenApi.Kiota.Builder
Correctif : 1.35.0 — appliquer immédiatement
Contournement : Until upgrading, generate clients only from trusted, integrity-protected OpenAPI descriptions.
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 exécution de code arbitraire (CWE-94) affecte Microsoft.OpenApi.Kiota. Les attaquants atteignent le code vulnérable via Microsoft.OpenApi.Kiota sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de Microsoft.OpenApi.Kiota. Surface d'attaque : Microsoft.OpenApi.Kiota / Microsoft.OpenApi.Kiota.Builder.
Gravité : Élevée (CVSS 8.8/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 1.35.0.
Contournement : Until upgrading, generate clients only from trusted, integrity-protected OpenAPI descriptions.
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 'Microsoft.OpenApi.Kiota' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Microsoft.OpenApi.Kiotaを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Until upgrading, generate clients only from trusted, integrity-protected OpenAPI descriptions.パッチが適用されるまでの応急処置として、Until upgrading, generate clients only from trusted, integrity-protected OpenAPI descriptions. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade Microsoft.OpenApi.Kiota to 1.35.0ステージング環境で 1.35.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。