kcve.ai취약점 정보 · 내 자산 확인

CVE-2022-25865 Command Injection

명령 주입

설명

0.18.4 이전의 패키지 workspace-tools는 git 인수 주입을 통해 Command Injection에 취약합니다. fetchRemoteBranch(remote: string, remoteBranch: string, cwd: string) 함수를 호출할 때, remote와 remoteBranch 파라미터는 git fetch subcommand에 전달되어 추가적인 플래그를 설정할 수 있습니다. 추가 플래그는 명령 주입을 수행하는 데 사용할 수 있습니다.

원문 보기

The package workspace-tools before 0.18.4 are vulnerable to Command Injection via git argument injection. When calling the fetchRemoteBranch(remote: string, remoteBranch: string, cwd: string) function, both the remote and remoteBranch parameters are passed to the git fetch subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.

영향 받는 제품 제품 1개

  • workspace-tools

    해결 버전 있음

    영향 받는 버전

    • 0.18.4 미만

    해결 버전

    • 0.18.4 이상

참고 자료 3건

‹ 목록

점검 지원 범위 문의

도입 문의