Kiota
Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota info`
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.30.0, < 1.31.1
- < 1.29.1
Fixed in 1.31.1, 1.29.1
Mitigation
Upgrade kiota to 1.31.1 or 1.29.1 or later.
References
- Vendor advisory github.com/microsoft/kiota/security/advisories…
- Patch github.com/microsoft/kiota/pull/7883
- Patch github.com/microsoft/kiota/commit/e1d6d76c6eec…
1 more
- Release notes github.com/microsoft/kiota/releases/tag/v1.32.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.