Kiota
Kiota: Generation-time SSRF + remote/local file inclusion via unrestricted $ref
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.5, Kiota resolved OpenAPI $ref values by fetching remote http(s) URLs and reading local absolute or out-of-tree file paths, allowing `kiota generate` on an attacker-controlled or attacker-influenced description to perform build-time SSRF, remote file inclusion, and local file inclusion by inlining external schemas such as REMOTE_KIOTA_PROP or Leaked into generated clients. This issue is fixed in version 1.29.1 and 1.32.5 by AllowedExternalOriginsStreamLoader and the --allowed-external-origins option.
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/7888
- Patch github.com/microsoft/kiota/commit/cccd798027f0…
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.