🇰🇷 한글 설명
openapi-python-client 0.29.1 미만 버전에서 악성 OpenAPI 문서를 기반으로 Python 클라이언트를 생성할 때 보안 취약점이 발생합니다. 생성된 코드 내의 문자열, docstring, f-string 컨텍스트에 공격자가 제어하는 코드가 포함될 수 있으며, 사용자가 해당 클라이언트를 임포트하는 즉시 코드가 실행되어 시스템의 무결성, 기밀성, 가용성에 영향을 줄 수 있습니다.
💡 쉬운 설명
나쁜 의도를 가진 설계도를 사용해 파이썬 프로그램을 만들면, 그 프로그램 안에 몰래 실행되는 악성 코드가 숨겨질 수 있습니다. 사용자가 이 프로그램을 불러오는 순간 컴퓨터가 해킹될 위험이 있습니다.
🇺🇸 원문 (English)
openapi-python-client generates Python clients from OpenAPI documents. Prior to 0.29.1, the generator does not safely neutralize malicious OpenAPI document content before rendering string, docstring, and f-string contexts in generated Python. The generated Python client can contain attacker-controlled Python that executes when a user imports the client, affecting the importing environment's integrity and potentially its confidentiality and availability. This issue is fixed in version 0.29.1.
📍 영향받는 시스템
openapi-python-client version < 0.29.1
⚔️ 공격 벡터
악성 내용이 포함된 OpenAPI 문서를 사용하여 Python 클라이언트를 생성한 후, 사용자가 생성된 클라이언트를 import할 때 발생
🛡️ 대응 방법
openapi-python-client를 0.29.1 버전 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.29.1보다 낮으면 취약한 상태입니다.
pip show openapi-python-client 2>/dev/null | grep Version