CVE-2026-64777:
NixOS 취약성 분석 및 완화
개요
CVE-2026-64777 is a path traversal vulnerability (CWE-22) in Apple's container tool for Swift that allows a malicious builder peer to request in-context files by name from the host and receive the contents of files that resolve outside the intended build context. It affects all versions of apple/container up to and including 1.1.0, and was published on August 20, 2026. The vulnerability was addressed in container version 1.2.0. It carries a CVSS v3.1 base score of 4.3 (Medium) (GitHub Advisory).
기술적 세부 사항
The root cause is improper path validation (CWE-22) in the BuildFSSync.read() and BuildFSSync.info() functions within Sources/ContainerBuild/BuildFSSync.swift, present since the file's initial commit on 2025-06-03. The host-side code enforces containment only on the lexical path of a requested filename — checking whether the name is textually inside the context directory — rather than verifying where the path ultimately resolves after symlink resolution. A malicious builder peer (e.g., a compromised or custom build.image) can exploit this by requesting a file whose name is lexically valid but which is a symlink pointing outside the build context, causing the host to return the contents of the symlink's target. Exploitation requires two preconditions: a builder peer willing to make direct file requests (not the default stock builder behavior), and a build context containing a symlink that resolves outside the context root (GitHub Advisory).
영향
A successful exploit allows an authenticated builder peer to read arbitrary files from the host filesystem that lie outside the intended build context, resulting in a confidentiality breach. The disclosure occurs in-memory during the build process and does not leave a durable artifact on the host filesystem, making post-hoc detection difficult. There is no integrity or availability impact; the vulnerability is limited to unauthorized file read access (GitHub Advisory).
악용 가능성
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.0023 (0.23%), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is not automatable and requires low privileges (authenticated builder peer access), limiting the practical attack surface.
착취 단계
- Gain builder peer access: Compromise or substitute the builder peer image by setting a custom
build.imagein the target's~/.config/container/config.toml, or by executing a supply-chain attack on the default builder image. - Prepare a malicious build context: Ensure the build context (or convince the victim to use one) that contains a symlink whose target resolves to a sensitive file outside the context root (e.g., a symlink
secret -> /etc/passwd). - Initiate a build: Trigger a
container buildoperation on the host using the malicious builder peer and the prepared build context. - Request the out-of-context file: From the malicious builder peer, issue a direct gRPC file request via
BuildFSSync.read()orBuildFSSync.info()using the lexically valid in-context symlink name. - Receive file contents: The host resolves the symlink and returns the contents of the target file (e.g.,
/etc/passwd) to the builder peer, bypassing the intended build context boundary (GitHub Advisory).
타협의 징후
- Configuration: Presence of a non-default
build.imageentry in~/.config/container/config.tomlor container system properties that points to an untrusted or unexpected image. - File System: Symlinks within the build context directory that resolve to paths outside the context root, detectable with:
find <context_dir> -type l | while read -r l; do case "$(readlink -f "$l")" in "$(readlink -f <context_dir>)"/*) ;; *) echo "escapes context: $l -> $(readlink -f "$l")";; esac done - Process/Network: Unexpected or anomalous gRPC
BuildFSSyncfile read requests from the builder peer process targeting filenames that correspond to symlinks in the build context (GitHub Advisory).
완화 및 해결 방법
Upgrade apple/container to version 1.2.0 or later, which fixes the path traversal in BuildFSSync.read() and BuildFSSync.info() (GitHub Advisory). If immediate upgrade is not possible, only use the default, unmodified builder image and do not set a custom build.image in the container configuration unless the publisher is fully trusted. Additionally, before building any cloned or downloaded context, scan it for out-of-context symlinks using find -type l -exec sh -c 'case "$(readlink -f "$1")" in "$2"/*) ;; *) echo "$1 -> $(readlink -f "$1")";; esac' _ {} \; and remove any symlinks whose targets fall outside the context root.
커뮤니티 반응
The advisory was published by Apple's security team (credited to reporters liyander, DebasishTripathy13, SergeyMalych-Novee, SergeyMalych, blackcon, and 0xdkay) and assigned a Moderate severity rating (GitHub Advisory). No significant broader media coverage or notable public researcher commentary beyond the official advisory has been identified at this time.
추가 자료
근원: 이 보고서는 AI를 사용하여 생성되었습니다.
관련 NixOS 취약점:
무료 취약성 평가
클라우드 보안 태세를 벤치마킹합니다
9개의 보안 도메인에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 식별합니다.
추가 Wiz 리소스
맞춤형 데모 받기
맞춤형 데모 신청하기
"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."