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

CVE-2022-33891 Apache Spark shell command injection vulnerability via Spark UI

Spark UI를 통한 Apache Spark 셸 명령 주입 취약점

실제 악용 확인(KEV)

설명

The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If ACLs are enabled, a code path in HttpSecurityFilter can allow someone to perform impersonation by providing an arbitrary user name. A malicious user might then be able to reach a permission check function that will ultimately build a Unix shell command based on their input, and execute it. This will result in arbitrary shell command execution as the user Spark is currently running as. This affects Apache Spark versions 3.0.3 and earlier, versions 3.1.1 to 3.1.2, and versions 3.2.0 to 3.2.1.

Apache Spark UI는 구성 옵션 spark.acls.enable을 통해 ACL을 활성화할 수 있습니다. 인증 필터를 사용하면 사용자가 애플리케이션을 보거나 수정할 수 있는 액세스 권한을 가지고 있는지 여부를 확인합니다. ACL이 활성화된 경우, HttpSecurityFilter의 코드 경로는 누군가가 임의의 사용자 이름을 제공하여 가장을 수행하도록 허용할 수 있습니다. 그러면 악의적인 사용자가 권한 검사 함수에 도달하여 궁극적으로 입력을 기반으로 Unix 셸 명령을 빌드하고 실행할 수 있습니다. 이것은 사용자 Spark가 현재 실행되고 있는 임의의 쉘 명령 실행을 초래할 것이다. 이 문제는 Apache Spark 버전 3.0.3 이하, 버전 3.1.1~3.1.2, 버전 3.2.0~3.2.1에 영향을 줍니다.

영향 받는 제품 제품 1개

  • Apache Software Foundation

    Apache Spark

    영향 받는 버전

    • 3.0.3 이하
    • 3.1.1 이상 3.1.2 이하
    • 3.2.0 이상 3.2.1 이하

    해결 버전

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

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

  • PyPI · pyspark

    해결 버전 있음

    영향 받는 버전 · 해결 버전

    • 영향 3.1.3 미만 · 해결 3.1.3 이상
    • 영향 3.2.0 이상 3.2.2 미만 · 해결 3.2.2 이상

출처: GitHub Advisory Database · CC-BY 4.0

참고 자료 3건

‹ 목록

점검 지원 범위 문의

도입 문의