🔍 CVE-2026-59862

7.5
CVSS Score
HIGH
2026-07-16
2026-10-24 20:10
✅ 완료

🇰🇷 한글 설명

Kiota의 Python 생성기에서 x-ms-enum.values[].description에 포함된 공격자 제어 값이 줄바꿈 검증 없이 처리되는 취약점이 발견되었습니다. 이로 인해 생성된 Python 모듈을 임포트할 때 공격자가 삽입한 코드가 모듈 범위에서 실행될 수 있습니다.

💡 쉬운 설명

프로그램 코드를 자동으로 만들어주는 도구에 결함이 있어, 나쁜 의도를 가진 설명 문구를 넣으면 코드가 실행될 수 있습니다. 생성된 파일을 불러오기만 해도 해커의 명령이 실행될 위험이 있습니다.

🇺🇸 원문 (English)

Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.0, Kiota's Python generator let attacker-controlled enum value descriptions from x-ms-enum.values[].description flow through KiotaBuilder.SetEnumOptions into Documentation.DescriptionTemplate and PythonConventionService.RemoveInvalidDescriptionCharacters without newline sanitization, allowing generated inline comments to split and execute attacker-controlled Python code at module scope when generated modules were imported. This issue is fixed in version 1.29.1 and 1.32.0.

📍 영향받는 시스템

Kiota Python generator (version 1.29.1 및 1.32.0 미만 버전)

⚔️ 공격 벡터

OpenAPI 정의 파일의 enum description 필드에 줄바꿈 문자와 악성 Python 코드를 삽입하여 공격

🛡️ 대응 방법

Kiota를 버전 1.29.1 또는 1.32.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 Version이 1.29.1 또는 1.32.0보다 낮은지 확인하십시오.

Shell / Script
pip show kiota 2>/dev/null | grep -E 'Version'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Python