개요
이 취약점이 무엇인지
Nix is a package manager for Linux and other Unix systems. A bug in the fix for CVE-2024-27297 allowed for arbitrary overwrites of files writable by the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation output registration. This affects sandboxed Linux builds - sandboxed macOS builds are unaffected. The location of the temporary output used for the output copy was located inside the build chroot. A symlink, pointing to an arbitrary location in the filesystem, could be created by the derivation builder at that path. During output registration, the Nix process (running in the host mount namespace) would follow that symlink and overwrite the destination with the derivation's output contents. In multi-user installations, this allows all users able to submit builds to the Nix daemon (allowed-users - defaulting to all users) to gain root privileges by modifying sensitive files. This vulnerability is fixed in 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3, and 2.28.6.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| nixnixos | 2.18.2 | ≤ | 취약 | ≤ | 2.18.9 | 벤더 공지 확인 |
| 2.19.4 | ≤ | 취약 | ≤ | 2.19.7 | 벤더 공지 확인 | |
| 2.20.5 | ≤ | 취약 | ≤ | 2.20.9 | 벤더 공지 확인 | |
| 2.21.0 | ≤ | 취약 | < | 2.28.6 | 2.28.6이상 | |
| 2.29.0 | ≤ | 취약 | < | 2.29.3 | 2.29.3이상 | |
| 2.30.0 | ≤ | 취약 | < | 2.30.4 | 2.30.4이상 | |
| 2.31.0 | ≤ | 취약 | < | 2.31.4 | 2.31.4이상 | |
| 2.32.0 | ≤ | 취약 | < | 2.32.7 | 2.32.7이상 | |
| 2.33.0 | ≤ | 취약 | < | 2.33.4 | 2.33.4이상 | |
| 2.34.0 | ≤ | 취약 | < | 2.34.5 | 2.34.5이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| nixNixOS | 이 버전만 | 취약 | = | >= 2.21, < 2.28.6 | 벤더 공지 확인 | |
| 이 버전만 | 취약 | = | >= 2.29.0, < 2.29.3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.30.0, < 2.30.4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.31.0, < 2.31.4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.32.0, < 2.32.7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.33.0, < 2.33.4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.34.0, < 2.34.5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.20.5, <= 2.20.9 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.19.4, <= 2.19.7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 2.18.2, <= 2.18.9 | 벤더 공지 확인 | ||
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치6
- github.com/NixOS/nix/commit/244f3eee0bbc7f11e9b383a15ed7368e2c4becc9
- github.com/NixOS/nix/commit/4bc5a3510fa3735798f9ed3a2a30a3ea7b32343a
- github.com/NixOS/nix/commit/7794354a982449927ee7401cdeb573ddd16c4688
- github.com/NixOS/nix/commit/a3163b9eabb952b4aa96e376dea95ebcca97b31a
- github.com/NixOS/nix/pull/10178