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

CVE-2022-25168 Command injection in org.apache.hadoop.fs.FileUtil.unTarUsingTar

설명

Apache Hadoop's FileUtil.unTar(File, File) API does not escape the input file name before being passed to the shell. An attacker can inject arbitrary commands. This is only used in Hadoop 3.3 InMemoryAliasMap.completeBootstrapTransfer, which is only ever run by a local user. It has been used in Hadoop 2.x for yarn localization, which does enable remote code execution. It is used in Apache Spark, from the SQL command ADD ARCHIVE. As the ADD ARCHIVE command adds new binaries to the classpath, being able to execute shell scripts does not confer new permissions to the caller. SPARK-38305. "Check existence of file before untarring/zipping", which is included in 3.3.0, 3.1.4, 3.2.2, prevents shell commands being executed, regardless of which version of the hadoop libraries are in use. Users should upgrade to Apache Hadoop 2.10.2, 3.2.4, 3.3.3 or upper (including HADOOP-18136).

영향 받는 제품 제품 1개

  • Apache Software Foundation

    Apache Hadoop

    영향 받는 버전

    • 2.0.0 이상 2.10.1 이하
    • 3.0.0-alpha 이상 3.2.3 이하
    • 3.3.0 이상 3.3.2 이하

    해결 버전

    해결된 버전 정보가 없습니다.

패키지 기준 해결 버전 패키지 1개

  • Maven · org.apache.hadoop:hadoop-common

    해결 버전 있음

    영향 받는 버전 · 해결 버전

    • 영향 2.0.0 이상 2.10.2 미만 · 해결 2.10.2 이상
    • 영향 3.0.0-alpha 이상 3.2.4 미만 · 해결 3.2.4 이상
    • 영향 3.3.0 이상 3.3.3 미만 · 해결 3.3.3 이상

출처: GitHub Advisory Database · CC-BY 4.0

참고 자료 2건

‹ 목록

점검 지원 범위 문의

도입 문의