🔍 CVE-2023-51702

6.5
CVSS Score
MEDIUM
2024-01-24
2026-07-02 17:01
✅ 완료

🇰🇷 한글 설명

Airflow 5.2.0 버전부터 deferrable 모드 사용 시 Kubernetes 인증 설정 파일을 암호화 없이 딕셔너리 형태로 직렬화하여 메타데이터에 저장합니다. 특히 Airflow 2.3.0에서 2.6.0 사이의 버전을 사용할 경우, 해당 설정 내용이 트리거러 로그에 마스킹 없이 평문으로 기록되어 클러스터 접근 권한이 유출될 수 있습니다.

💡 쉬운 설명

Kubernetes에 접속하기 위한 중요한 비밀번호나 설정 파일이 암호화되지 않은 채로 시스템 기록(로그)에 그대로 남는 문제입니다. 이 기록을 볼 수 있는 사람은 누구나 여러분의 클러스터에 몰래 접속할 수 있습니다.

🇺🇸 원문 (English)

Since version 5.2.0, when using deferrable mode with the path of a Kubernetes configuration file for authentication, the Airflow worker serializes this configuration file as a dictionary and sends it to the triggerer by storing it in metadata without any encryption. Additionally, if used with an Airflow version between 2.3.0 and 2.6.0, the configuration dictionary will be logged as plain text in the triggerer service without masking. This allows anyone with access to the metadata or triggerer log to obtain the configuration file and use it to access the Kubernetes cluster. This behavior was changed in version 7.0.0, which stopped serializing the file contents and started providing the file path instead to read the contents into the trigger. Users are recommended to upgrade to version 7.0.0, which fixes this issue.

📍 영향받는 시스템

Apache Airflow 5.2.0 이상 (2.3.0 ~ 2.6.0 버전에서 로그 유출 위험 가중)

⚔️ 공격 벡터

메타데이터 데이터베이스 또는 트리거러 서비스의 로그 파일에 접근하여 평문으로 기록된 인증 정보 탈취

🛡️ 대응 방법

파일 내용을 직접 직렬화하지 않고 경로만 전달하도록 수정된 Airflow 7.0.0 이상 버전으로 업그레이드

🔧 검증 코드

출력된 버전이 7.0.0 미만인 경우 해당 취약점에 노출될 가능성이 있습니다.

Shell / Script
pip show apache-airflow | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Kubernetes