🔍 CVE-2024-27317

8.4
CVSS Score
HIGH
2024-03-12
2026-06-17 07:19
✅ 완료

🇰🇷 한글 설명

Pulsar Functions Worker에서 인증된 사용자가 jar 또는 nar 파일을 업로드할 때 디렉토리 트래버설 취약점이 발생합니다. 압축 파일 내의 파일 이름에 '..'과 같은 특수 문자가 포함되어 있을 경우, 검증되지 않은 경로를 통해 지정된 디렉토리 외부의 파일을 생성하거나 수정할 수 있습니다. 이 취약점은 functionsWorkerEnabled가 true로 설정된 Pulsar Broker에도 적용됩니다.

💡 쉬운 설명

악의적인 사용자가 특수하게 조작된 압축 파일을 업로드하여 시스템의 허용된 폴더를 벗어나 중요한 파일을 마음대로 만들거나 바꿀 수 있는 문제입니다. 이를 통해 시스템의 동작을 방해하거나 제어권을 얻을 위험이 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

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

⚔️ 공격 벡터

인증된 사용자가 디렉토리 트래버설 경로('..')가 포함된 악성 jar/nar 파일을 업로드하여 공격

🛡️ 대응 방법

Pulsar 버전을 2.10.6, 2.11.4, 3.0.3, 3.1.3, 3.2.1 이상으로 업그레이드

🔧 검증 코드

설치된 Apache Pulsar의 버전을 확인하여 취약점이 존재하는 버전 범위에 해당하는지 대조합니다.

Shell / Script
pulsar-admin cluster list | grep -i 'pulsar' && echo 'Check your installed pulsar version via package manager or binary version command'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring for Apache Pulsar