🔍 CVE-2022-22984

5.0
CVSS Score
MEDIUM
2022-11-30
2026-06-17 04:29
✅ 완료

🇰🇷 한글 설명

Snyk CLI 및 관련 플러그인에서 CVE-2022-40764에 대한 불완전한 수정으로 인해 명령 주입(Command Injection) 취약점이 발생합니다. 공격자가 조작된 명령줄 플래그를 전달하면 Snyk CLI가 설치된 호스트 시스템에서 임의의 명령을 실행할 수 있습니다. 특히 CI/CD 파이프라인에서 신뢰할 수 없는 파일을 대상으로 snyk test 명령을 실행할 때 위험합니다.

💡 쉬운 설명

Snyk라는 보안 도구를 사용할 때, 나쁜 의도가 담긴 명령어를 섞어 넣으면 해커가 내 컴퓨터를 마음대로 조종할 수 있는 문제입니다. 주로 자동화된 빌드 시스템에서 검증되지 않은 파일을 검사할 때 발생할 수 있습니다.

🇺🇸 원문 (English)

The package snyk before 1.1064.0; the package snyk-mvn-plugin before 2.31.3; the package snyk-gradle-plugin before 3.24.5; the package @snyk/snyk-cocoapods-plugin before 2.5.3; the package snyk-sbt-plugin before 2.16.2; the package snyk-python-plugin before 1.24.2; the package snyk-docker-plugin before 5.6.5; the package @snyk/snyk-hex-plugin before 1.1.6 are vulnerable to Command Injection due to an incomplete fix for [CVE-2022-40764](https://security.snyk.io/vuln/SNYK-JS-SNYK-3037342). A successful exploit allows attackers to run arbitrary commands on the host system where the Snyk CLI is installed by passing in crafted command line flags. In order to exploit this vulnerability, a user would have to execute the snyk test command on untrusted files. In most cases, an attacker positioned to control the command line arguments to the Snyk CLI would already be positioned to execute arbitrary commands. However, this could be abused in specific scenarios, such as continuous integration pipelines, where developers can control the arguments passed to the Snyk CLI to leverage this component as part of a wider attack against an integration/build pipeline. This issue has been addressed in the latest Snyk Docker images available at https://hub.docker.com/r/snyk/snyk as of 2022-11-29. Images downloaded and built prior to that date should be updated. The issue has also been addressed in the Snyk TeamCity CI/CD plugin as of version v20221130.093605.

📍 영향받는 시스템

snyk (<1.1064.0), snyk-mvn-plugin (<2.31.3), snyk-gradle-plugin (<3.24.5), @snyk/snyk-cocoapods-plugin (<2.5.3), snyk-sbt-plugin (<2.16.2), snyk-python-plugin (<1.24.2), snyk-docker-plugin (<5.6.5), @snyk/snyk-hex-plugin (<1.1.6)

⚔️ 공격 벡터

조작된 명령줄 플래그를 포함한 신뢰할 수 없는 파일을 대상으로 snyk test 명령을 실행하여 공격

🛡️ 대응 방법

Snyk CLI를 최신 버전으로 업데이트하거나, 2022-11-29 이후에 배포된 최신 Snyk Docker 이미지를 사용하십시오.

🔧 검증 코드

출력된 버전이 취약점이 해결된 버전(예: snyk 1.1064.0 이상)인지 확인하십시오.

Shell / Script
snyk --version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker