CVE-2024-27317 Apache Pulsar: Pulsar Functions Worker's Archive Extraction Vulnerability Allows Unauthorized File Modification
아파치 펄서: 펄서 함수 워커의 아카이브 추출 취약점으로 인한 권한 없는 파일 수정
설명
In Pulsar Functions Worker, authenticated users can upload functions in jar or nar files. These files, essentially zip files, are extracted by the Functions Worker. However, if a malicious file is uploaded, it could exploit a directory traversal vulnerability. This occurs when the filenames in the zip files, which aren't properly validated, contain special elements like "..", altering the directory path. This could allow an attacker to create or modify files outside of the designated extraction directory, potentially influencing system behavior. This vulnerability also applies to the Pulsar Broker when it is configured with "functionsWorkerEnabled=true". This issue affects Apache Pulsar versions from 2.4.0 to 2.10.5, from 2.11.0 to 2.11.3, from 3.0.0 to 3.0.2, from 3.1.0 to 3.1.2, and 3.2.0. 2.10 Pulsar Function Worker users should upgrade to at least 2.10.6. 2.11 Pulsar Function Worker users should upgrade to at least 2.11.4. 3.0 Pulsar Function Worker users should upgrade to at least 3.0.3. 3.1 Pulsar Function Worker users should upgrade to at least 3.1.3. 3.2 Pulsar Function Worker users should upgrade to at least 3.2.1. Users operating versions prior to those listed above should upgrade to the aforementioned patched versions or newer versions.
Pulsar Functions Worker에서는 인증된 사용자가 jar 또는 nar 파일에 함수를 업로드할 수 있습니다. 이러한 파일, 본질적으로 zip 파일은 Functions Worker에 의해 추출됩니다. 그러나 악성 파일이 업로드되면 디렉터리 탐색 취약성을 악용할 수 있습니다. 이것은 제대로 검증되지 않은 zip 파일의 파일 이름이 디렉토리 경로를 변경하여 ".."와 같은 특수 요소를 포함 할 때 발생합니다. 이렇게 하면 공격자가 지정된 추출 디렉터리 외부에서 파일을 만들거나 수정할 수 있으므로 시스템 동작에 영향을 줄 수 있습니다. 이 취약점은 펄서 브로커가 "functionsWorkerEnabled=true"로 구성되었을 때도 적용됩니다. 이 문제는 Apache Pulsar 버전 2.4.0에서 2.10.5로, 2.11.0에서 2.11.3으로, 3.0.0에서 3.0.2로, 3.1.0에서 3.1.2로, 3.2.0으로 영향을 줍니다. 2.10 Pulsar Function Worker 사용자는 최소 2.10.6 이상으로 업그레이드해야 합니다. 2.11 Pulsar Function Worker 사용자는 최소 2.11.4 이상으로 업그레이드해야 합니다. 3.0 Pulsar Function Worker 사용자는 최소 3.0.3 이상으로 업그레이드해야 합니다. 3.1 Pulsar Function Worker 사용자는 최소 3.1.3 이상으로 업그레이드해야 합니다. 3.2 Pulsar Function Worker 사용자는 최소 3.2.1 이상으로 업그레이드해야 합니다. 위에 나열된 버전 이전에 버전을 사용하는 사용자는 앞서 언급한 패치 버전 또는 최신 버전으로 업그레이드해야 합니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
Apache Software Foundation
Apache Pulsar
영향 받는 버전
- 2.4.0 이상 2.10.6 미만
- 2.11.0 이상 2.11.4 미만
- 3.0.0 이상 3.0.3 미만
- 3.1.0 이상 3.1.3 미만
- 3.2.0 이상 3.2.1 미만
해결 버전
- 2.10.6 이상
- 2.11.4 이상
- 3.0.3 이상
- 3.1.3 이상
- 3.2.1 이상