9.3 CRITICAL
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): None (N)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Vulnerable System Impact Confidentiality (VC): High (H)
- Vulnerable System Impact Integrity (VI): High (H)
- Vulnerable System Impact Availability (VA): High (H)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): None (N)
- Subsequent System Impact Availability (SA): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): None (N)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Vulnerable System Impact Confidentiality (MVC): High (H)
- Modified Vulnerable System Impact Integrity (MVI): High (H)
- Modified Vulnerable System Impact Availability (MVA): High (H)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Negligible (N)
- Modified Subsequent System Impact Availability (MSA): Negligible (N)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
Activity log
- Created suggestion
Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceName
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.32.5, Kiota emitted x-ms-kiota-info clientClassName and clientNamespaceName values without identifier or path sanitization as both generated client class or namespace names and generated output path components when `kiota generate` ran without -c/--class-name, allowing an attacker-controlled or compromised OpenAPI description to write generated source outside the -o output directory and inject arbitrary text into generated class or namespace declarations. This issue is fixed in version 1.32.5 by GenerationConfiguration.SanitizeClientClassName and SanitizeClientNamespaceName.
References
-
https://github.com/microsoft/kiota/security/advisories/GHSA-4vv7-jj25-4gh6 x_refsource_CONFIRM
-
https://github.com/microsoft/kiota/pull/7884 x_refsource_MISC
-
https://github.com/microsoft/kiota/releases/tag/v1.32.5 x_refsource_MISC
Affected products
- ==< 1.32.5
Matching in nixpkgs
pkgs.python313Packages.microsoft-kiota-http
HTTP request adapter implementation for Kiota clients for Python
pkgs.python314Packages.microsoft-kiota-http
HTTP request adapter implementation for Kiota clients for Python
pkgs.python313Packages.microsoft-kiota-abstractions
Abstractions library for Kiota generated Python clients
pkgs.python314Packages.microsoft-kiota-abstractions
Abstractions library for Kiota generated Python clients
pkgs.python313Packages.microsoft-kiota-serialization-form
Form serialization implementation for Kiota clients in Python
pkgs.python313Packages.microsoft-kiota-serialization-json
JSON serialization implementation for Kiota clients in Python
pkgs.python313Packages.microsoft-kiota-serialization-text
Text serialization implementation for Kiota generated clients in Python
pkgs.python314Packages.microsoft-kiota-serialization-form
Form serialization implementation for Kiota clients in Python
pkgs.python314Packages.microsoft-kiota-serialization-json
JSON serialization implementation for Kiota clients in Python
pkgs.python314Packages.microsoft-kiota-serialization-text
Text serialization implementation for Kiota generated clients in Python
pkgs.python313Packages.microsoft-kiota-authentication-azure
Kiota Azure authentication provider
pkgs.python314Packages.microsoft-kiota-authentication-azure
Kiota Azure authentication provider
pkgs.python313Packages.microsoft-kiota-serialization-multipart
Multipart serialization implementation for Kiota clients in Python
Package maintainers
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>