🔍 CVE-2026-40977

4.7
CVSS Score
MEDIUM
2026-04-28
2026-07-24 21:10
✅ 완료

🇰🇷 한글 설명

Spring Boot의 ApplicationPidFileWriter 기능 사용 시, PID 파일 위치에 쓰기 권한이 있는 로컬 공격자가 애플리케이션이 시작될 때마다 호스트의 파일을 손상시킬 수 있는 취약점입니다. 심각도는 중간(CVSS 4.7)입니다.

💡 쉬운 설명

Spring Boot 애플리케이션이 PID 파일을 만들 때, 해당 위치에 쓰기 권한이 있는 누군가가 악의적으로 파일을 조작할 수 있습니다. 이를 통해 애플리케이션이 시작될 때마다 시스템의 다른 파일들을 손상시킬 수 있습니다.

🇺🇸 원문 (English)

When an application is configured to use `ApplicationPidFileWriter`, a local attacker with write access to the PID file's location can corrupt one file on the host each time the application is started. Affected: Spring Boot 4.0.0–4.0.5 (fix 4.0.6), 3.5.0–3.5.13 (fix 3.5.14), 3.4.0–3.4.15 (fix 3.4.16), 3.3.0–3.3.18 (fix 3.3.19), 2.7.0–2.7.32 (fix 2.7.33); PID file / symlink behavior (`ApplicationPidFileWriter`). Versions that are no longer supported are also affected per vendor advisory.

📍 영향받는 시스템

Spring Boot 2.7.0-2.7.32, 3.3.0-3.3.18, 3.4.0-3.4.15, 3.5.0-3.5.13, 4.0.0-4.0.5

⚔️ 공격 벡터

로컬 공격자가 PID 파일 위치에 대한 쓰기 권한을 이용하여 ApplicationPidFileWriter 취약점을 악용

🛡️ 대응 방법

Spring Boot를 2.7.33, 3.3.19, 3.4.16, 3.5.14, 또는 4.0.6 이상으로 업그레이드

🔧 검증 코드

표시된 Spring Boot 버전이 취약 범위(2.7.32 이하, 3.3.18 이하, 3.4.15 이하, 3.5.13 이하, 4.0.5 이하)에 속하면 즉시 업그레이드 필요합니다.

Shell / Script
grep -oE '[0-9]+\.[0-9]+\.[0-9]+' pom.xml 2>/dev/null | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Framework