Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
microsoft kiota
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Microsoft.OpenApi.Kiota NuGet |
|
|
| Microsoft.OpenApi.Kiota.Builder NuGet |
|
microsoft kiota
| Product | Affected | Fixed in |
|---|---|---|
| Microsoft.OpenApi.Kiota NuGet |
|
|
| Microsoft.OpenApi.Kiota.Builder NuGet |
|
|
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.5, `kiota info` read x-ms-kiota-info.languagesInformation.<language>.dependencyInstallCommand plus dependency name and version values from an OpenAPI description and presented the spec-supplied command as Kiota's recommended install command, allowing an attacker-controlled or compromised description to cause command injection when the suggested command was run manually or through the Kiota VS Code extension's kiota info --json dependency-install flow. This issue is fixed in version 1.29.1 and 1.32.5.
From the CVE record · GitHub_M
Affected Kiota packages present an install command from an OpenAPI description as Kiota’s recommended command. An attacker who controls or compromises the description can inject a command if someone runs the suggestion manually or through the Kiota VS Code extension’s dependency-install flow.
Check users of the NuGet packages Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder on versions below 1.29.1 or from 1.30.0 up to, but not including, 1.32.5.