🔍 CVE-2024-29735

5.3
CVSS Score
MEDIUM
2024-03-26
2026-06-17 07:22
✅ 완료

🇰🇷 한글 설명

Apache Airflow의 로컬 파일 태스크 핸들러가 로그 폴더의 상위 폴더 권한을 부적절하게 설정하는 취약점입니다. Airflow를 루트 사용자로 실행할 경우 파일 시스템 루트까지 그룹 쓰기 권한이 추가되어 보안 위험을 초래할 수 있습니다.

💡 쉬운 설명

프로그램이 로그를 저장하면서 실수로 폴더의 보안 설정을 너무 느슨하게 바꾸는 문제입니다. 이로 인해 다른 사용자가 중요한 파일을 수정할 수 있는 위험이 생길 수 있습니다.

🇺🇸 원문 (English)

Improper Preservation of Permissions vulnerability in Apache Airflow.This issue affects Apache Airflow from 2.8.2 through 2.8.3. Airflow's local file task handler in Airflow incorrectly set permissions for all parent folders of log folder, in default configuration adding write access to Unix group of the folders. In the case Airflow is run with the root user (not recommended) it added group write permission to all folders up to the root of the filesystem. If your log files are stored in the home directory, these permission changes might impact your ability to run SSH operations after your home directory becomes group-writeable. This issue does not affect users who use or extend Airflow using Official Airflow Docker reference images ( https://hub.docker.com/r/apache/airflow/ ) - those images require to have group write permission set anyway. You are affected only if you install Airflow using local installation / virtualenv or other Docker images, but the issue has no impact if docker containers are used as intended, i.e. where Airflow components do not share containers with other applications and users. Also you should not be affected if your umask is 002 (group write enabled) - this is the default on many linux systems. Recommendation for users using Airflow outside of the containers: * if you are using root to run Airflow, change your Airflow user to use non-root * upgrade Apache Airflow to 2.8.4 or above * If you prefer not to upgrade, you can change the https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#file-task-handler-new-folder-permissions  to 0o755 (original value 0o775). * if you already ran Airflow tasks before and your default umask is 022 (group write disabled) you should stop Airflow components, check permissions of AIRFLOW_HOME/logs in all your components and all parent directories of this directory and remove group write access for all the parent directories

📍 영향받는 시스템

Apache Airflow 2.8.2 ~ 2.8.3 (Docker 공식 이미지는 제외)

⚔️ 공격 벡터

권한이 과도하게 부여된 상위 디렉토리를 통해 로컬 시스템의 파일이나 설정이 변조될 수 있음

🛡️ 대응 방법

Apache Airflow를 2.8.4 이상으로 업그레이드하거나, 루트 사용자가 아닌 일반 사용자로 실행하고 폴더 권한 설정을 0o755로 변경하십시오.

🔧 검증 코드

출력된 버전이 2.8.2 이상 2.8.3 이하인지 확인하십시오.

Shell / Script
pip show apache-airflow | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker