Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
Summary
| CVE | CVE-2026-105796 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-06 15:17:16 UTC |
| Updated | 2026-10-06 16:00:36 UTC |
| Description | Kiota is an OpenAPI based HTTP Client code generator. From 0.5.0 until 1.35.0, Kiota's Java and PHP documentation-comment sanitizers delete block-comment terminators rather than neutralizing them, allowing overlapping characters to reform a terminator and place attacker-controlled OpenAPI text outside a generated documentation comment. The Java sanitizer also removes non-ASCII characters after deleting terminators, which can create a new terminator during normalization. Exploitation requires a developer or build pipeline to generate source from the malicious description and then compile and load the Java output or load the PHP output, after which injected code executes in the consuming application or build environment context. The version range is based on the Java defect and does not assert that PHP generation existed in every affected release. This issue is fixed in version 1.35.0. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-94 | CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Microsoft | Kiota | affected >= 0.5.0, < 1.35.0 | Not specified |
| CNA | Microsoft | Microsoft.OpenApi.Kiota | affected >= 0.5.0, < 1.35.0 | Not specified |
| CNA | Microsoft | Microsoft.OpenApi.Kiota.Builder | affected >= 0.5.0, < 1.35.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/microsoft/kiota/pull/8017 | [email protected] | github.com | |
| github.com/microsoft/kiota/security/advisories/GHSA-rm89-rhwj-9j92 | [email protected] | github.com | |
| github.com/microsoft/kiota/commit/68f33b865be9273464a6efbbe17379760e51f1a4 | [email protected] | github.com | |
| github.com/microsoft/kiota/releases/tag/v1.35.0 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.