CVE-2026-97693 CRITICAL 9.9 난이도Difficulty 중급Intermediate

Yuxi 샌드박스 네트워크 격리 실패로 한 테넌트가 다른 테넌트와 내부 서비스에 접근 가능Yuxi sandbox network isolation failure lets one tenant reach other tenants and internal services

공식 참조Official references: NVDCVE.org

CVE-2026-97693는 Yuxi의 Improper Access Control(CWE-284) 취약점으로, CVSS 9.9(CRITICAL)입니다. 영향 버전: 0.6.0.beta1 ≤ v < 0.7.1. 수정 버전: 0.7.1.CVE-2026-97693 is an Improper Access Control (CWE-284) vulnerability in Yuxi, rated CVSS 9.9 (CRITICAL). Affected: 0.6.0.beta1 ≤ v < 0.7.1. Fixed in: 0.7.1.

제품Product Yuxi
영향 버전Affected 0.6.0.beta1 ≤ v < 0.7.1
수정 버전Fixed in 0.7.1
심각도Severity CVSS 9.9 CRITICAL
취약점 유형Weakness CWE-284 Improper Access Control
공격 조건Attack conditions 원격 (네트워크) · 일반 권한 계정 필요 · 사용자 상호작용 불필요Remote (network) · Low-privilege account · No user interaction

1. TL;DR

Yuxi는 사용자가 제어하는 명령을 Docker “샌드박스”에서 실행할 수 있는 에이전트 및 지식 베이스 플랫폼입니다. GitHub 권고에 따르면, 0.6.0.beta1 이상 0.7.1 미만 버전에서는 이 샌드박스가 서로 간에, 그리고 플랫폼의 신뢰 서비스로부터 충분히 격리되지 않았습니다.

  • 자신의 샌드박스에서 명령을 실행할 수 있는 낮은 권한의 사용자가 다른 테넌트의 샌드박스와 공유 내부 서비스에 접근할 수 있었습니다.
  • 인증이 필요 없는 샌드박스 프로비저너 관리 API에도 접근할 수 있었습니다.
  • 컨테이너 탈출이나 커널 버그는 필요하지 않았습니다. 샌드박스가 접근할 수 없어야 할 대상에 네트워크로 접근할 수 있었습니다.
  • 수정은 0.7.1에 포함되어 있습니다. 기존 배포 환경에서는 문서화되었거나 기본 제공된 기본값 그대로인 PostgreSQL, Neo4j, MinIO 자격 증명도 교체해야 합니다. Compose 파일을 업그레이드해도 자격 증명은 교체되지 않습니다.

2. Flaw 분류

항목값
주요 CWECWE-284 Improper Access Control (NVD는 CWE-77 및 CWE-522도 함께 표기)
공격 벡터네트워크 (CVSS:3.1 AV:N). 공격자는 샌드박스 명령 실행 권한이 있는 인증된 사용자이며, 공격은 내부 컨테이너 네트워크를 통해 이루어집니다.
복잡도 / 권한낮은 복잡도, 낮은 권한 (AC:L / PR:L), 사용자 상호작용 없음
범위변경됨 (S:C). 샌드박스가 다른 테넌트와 플랫폼 서비스로 경계를 넘습니다.
영향테넌트 간 시크릿 및 파일 노출, 다른 테넌트의 데이터와 샌드박스 상태 변경, 샌드박스 삭제를 통한 서비스 거부. 노출된 계정이 슈퍼유저인 경우 PostgreSQL 컨테이너에서 명령 실행이 가능합니다.
선행 조건명령 실행이 가능한 샌드박스와 샌드박스 프로비저너가 있는 Docker Compose 배포. 공격자는 자신의 샌드박스에서 명령을 실행할 수 있는 유효한 낮은 권한 계정이 필요합니다. 일부 경로는 변경되지 않은 기본 서비스 자격 증명도 필요합니다.
영향 버전 / 수정 버전영향: >= 0.6.0.beta1 및 < 0.7.1. 수정: 0.7.1.
심각도CVSS 9.9 Critical (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)

3. 근본 원인

이 문제는 신뢰 경계와 네트워크 설계의 문제입니다. 메모리 손상 버그가 아닙니다.

권고에 따르면 약점은 “명령 실행이 가능한 샌드박스와 신뢰 애플리케이션 서비스 간의 불충분한 격리”입니다. 여러 개별 결함이 결합되었습니다.

  1. 단일(flat) 네트워크. 샌드박스는 다른 테넌트의 샌드박스 HTTP API와 공유 애플리케이션 네트워크의 서비스(PostgreSQL, Neo4j, MinIO 등)에 접근할 수 있었습니다. 패치 노트는 수정으로 각 샌드박스에 자체 네트워크를 부여한다고 밝히고 있으며, 이는 수정 전에는 이렇게 분리되어 있지 않았음을 시사합니다.
  2. 인증 없는 관리 평면. 샌드박스 프로비저너의 관리 API가 인증 없이 요청을 받아들였습니다. 패치는 SANDBOX_PROVISIONER_TOKEN을 필수로 추가하며, 이는 이전에 이 요구 사항이 없었음을 확인해 줍니다.
  3. 직접 노출된 샌드박스 엔드포인트. 동적 샌드박스 포트가 게시되었고, 프로비저너가 컨테이너 주소를 직접 전달했습니다.
  4. 취약하거나 기본값인 자격 증명(CWE-522). 운영자가 변경하지 않은 경우 PostgreSQL, Neo4j, MinIO의 기본 제공 자격 증명이 사용되었습니다. 패치는 프로덕션 폴백 자격 증명을 제거합니다.
  5. 과도한 권한의 데이터베이스 계정. 노출된 PostgreSQL 계정이 슈퍼유저인 경우 데이터베이스 컨테이너에서 코드 실행으로 이어졌습니다.

샌드박스는 신뢰할 수 없는 코드가 실행되는 장소여야 했습니다. 그러나 설계는 그 주변 네트워크를 신뢰 영역으로 취급했고, 그 결과 샌드박스에서 실행되는 코드가 그 신뢰를 그대로 물려받았습니다.

권고는 서비스 비밀번호만 변경하는 것은 완전한 우회책이 아니라고 밝힙니다. 테넌트 간 샌드박스 API 경로와 인증 없는 프로비저너 경로는 해당 서비스 자격 증명에 의존하지 않습니다.

4. 익스플로잇 흐름(개념)

이 절은 각 단계를 개념 수준으로만 설명하며, 공격 입력은 포함하지 않습니다.

  1. 공격자는 일반적인 낮은 권한 계정을 보유합니다. 자신의 샌드박스에서 명령을 실행하는 것은 의도된 기능이므로 이 단계 자체는 결함이 아닙니다.
  2. 샌드박스 내부에서 공격자는 컨테이너 네트워크가 어디까지 접근을 허용하는지 확인합니다. 단일 네트워크 때문에 다른 샌드박스, 프로비저너, 내부 서비스에 접근할 수 있습니다.
  3. 공격자는 자격 증명이 필요 없거나 기본값만 필요한 서비스를 이용합니다.
    • 프로비저너 관리 API로 샌드박스를 조회, 생성, 삭제할 수 있습니다.
    • 다른 테넌트의 샌드박스 API는 환경 변수, 워크스페이스 파일, 명령 실행을 노출합니다.
    • 기본 자격 증명이 변경되지 않은 경우 공유 서비스에 접근할 수 있습니다.
  4. 공격자는 다른 테넌트의 시크릿과 파일을 수집하거나, 해당 데이터나 샌드박스 상태를 변경하거나, 샌드박스를 삭제합니다.
  5. 최악의 경우 공격자는 슈퍼유저 데이터베이스 계정을 사용해 PostgreSQL 컨테이너에서 명령 실행 권한을 얻습니다.
  1. own-sandbox access — low-priv user
  2. network discovery — flat network
  3. reach provisioner / peer sandboxes / shared services — no or default auth
  4. cross-tenant data theft, tampering, DoS, DB-container command execution
개념 흐름도 — 실행 가능한 페이로드가 아닙니다

5. 트리거 조건

  • 샌드박스 프로비저너와 명령 실행이 가능한 샌드박스가 활성화된 Docker Compose 배포입니다. 권고는 이 환경에 주로 해당한다고 밝힙니다.
  • 버전이 >= 0.6.0.beta1 및 < 0.7.1입니다.
  • 공격자가 샌드박스에서 명령을 실행할 수 있는 인증된 낮은 권한 계정을 가지고 있습니다.
  • 내부 서비스 경로의 경우 기본 제공 자격 증명이 여전히 사용 중이어야 합니다. PostgreSQL 컨테이너에서의 명령 실행에는 노출된 데이터베이스 계정이 슈퍼유저이기도 해야 합니다.
  • 권고에 따르면 샌드박스 기능이 완전히 비활성화되어 있고 내부 서비스가 독립적으로 격리된 배포는 입증된 공격 경로의 영향을 받지 않습니다.
  • 테넌트 간 샌드박스 및 프로비저너 경로는 관리자, 데이터베이스, MinIO 자격 증명을 알고 있는지에 의존하지 않습니다.

6. 패치 분석

권고가 참조하는 패치 커밋은 열람할 수 없었으므로 diff는 인용하지 않습니다. 이 절은 권고의 변경 목록만을 사용해 수정을 개념 수준으로 설명합니다.

  • 샌드박스별 네트워크. 동적으로 프로비저닝되는 모든 샌드박스는 자체 Docker 네트워크를 갖습니다. 프로비저너만 이 네트워크에 참여할 수 있습니다. 이로써 샌드박스 간 경로와 샌드박스에서 애플리케이션 서비스로 가는 공유 경로가 제거됩니다. 흐름의 2단계와 3단계를 차단합니다.
  • 샌드박스 직접 포트 없음. 동적 샌드박스 포트는 더 이상 게시되지 않으며, 프로비저너는 컨테이너 주소 대신 인증된 프록시 URL을 반환합니다. 모든 접근은 하나의 통제된 게이트웨이를 거칩니다.
  • 프로비저너 토큰. 모든 샌드박스 관리 및 프록시 요청에 배포별 SANDBOX_PROVISIONER_TOKEN이 필요합니다. 이로써 인증 없는 조회/생성/삭제 경로가 막힙니다.
  • PostgreSQL, Neo4j, MinIO의 프로덕션 폴백 자격 증명 제거, 그리고 불필요한 호스트 포트 노출 축소.
  • 기존 배포를 위한 자격 증명 교체 문서화. 이는 운영 절차입니다. Compose 파일을 변경해도 기존 데이터 볼륨에 이미 저장된 비밀번호는 바뀌지 않습니다.

v0.7.1 릴리스 노트도 같은 주제를 요약합니다. 격리된 동적 샌드박스 네트워크, 프로비저너 토큰, 더 엄격한 기본 자격 증명입니다. 정확한 코드 위치, 함수 이름, 토큰 검증 로직은 공개 자료에서 확인되지 않았습니다.

7. 탐지·완화

즉시 조치

  • Yuxi 0.7.1 이상으로 업그레이드합니다.
  • 배포 환경에 맞는 강력하고 고유한 SANDBOX_PROVISIONER_TOKEN을 설정합니다.
  • 문서화되었거나 기본 제공된 기본값으로 설정된 적이 있는 PostgreSQL, Neo4j, MinIO 자격 증명을 교체합니다. 업그레이드가 이를 대신해 주지 않습니다.
  • 신뢰할 수 없는 사용자가 이전에 샌드박스 실행 권한을 가졌을 수 있다면, 사용자 Agent 환경에 저장된 시크릿을 검토하고 교체합니다.
  • 즉시 업그레이드할 수 없다면 권고의 우회책을 사용합니다.
    • 샌드박스 실행을 비활성화하거나 Yuxi를 완전히 신뢰하는 관리자로 제한합니다.
    • 모든 샌드박스를 다른 샌드박스나 애플리케이션 네트워크에 접근할 수 없는 네트워크에 둡니다.
    • 샌드박스에서 PostgreSQL, Neo4j, MinIO, Redis, 프로비저너로의 접근을 차단합니다.
    • 프로비저너를 Yuxi API 및 워커 서비스에서만 접근할 수 있게 합니다.
    • PostgreSQL, MinIO, Neo4j, Redis, 프로비저너 포트를 신뢰할 수 없는 네트워크 인터페이스에서 제거합니다.
  • 애플리케이션 접근용으로 데이터베이스 서비스를 슈퍼유저 계정으로 실행하지 않습니다. 권고는 PostgreSQL 명령 실행 경로가 이에 의존한다고 밝힙니다.

탐지

  • 샌드박스 컨테이너가 애플리케이션 서비스 또는 서로와 Docker 네트워크를 공유하는지 확인합니다. 수정 후에는 각 샌드박스가 프로비저너만 참여하는 자체 네트워크에 있어야 합니다.
  • 프로비저너 API가 토큰 없는 요청에 응답하는지 확인합니다.
  • 프로비저너 및 서비스 로그에서 Yuxi API가 수행하지 않은 샌드박스 조회, 생성, 삭제 호출을 찾습니다. 예기치 않은 샌드박스 삭제도 확인합니다.
  • PostgreSQL, Neo4j, MinIO 로그에서 샌드박스 컨테이너 주소로부터의 로그인을 찾습니다.
  • 샌드박스가 다른 테넌트 소유의 워크스페이스를 읽거나 쓰는지 확인합니다.
  • 구체적인 침해 지표(IoC)는 공개 자료에서 확인되지 않았습니다.

격리된 실습(로컬 Docker 랩)

재현은 인터넷과 격리된 로컬 Docker 랩에서, 본인이 소유한 머신에서만 수행해야 하며, 통제권이 없는 시스템에 대해서는 절대 수행하지 않습니다.

  • 영향받는 버전(예: 0.7.0)과 패치된 버전(0.7.1)을 나란히 두고, 외부 네트워크 접근이 없고 실제 데이터나 실제 자격 증명이 없는 일회용 랩을 구성합니다.
  • docker network inspect와 같은 방어용 도구만으로 네트워크 구성을 읽는 법을 익힙니다. 두 버전에서 어떤 컨테이너가 네트워크를 공유하는지 비교합니다.
  • 패치된 버전에서 샌드박스가 별도 네트워크에 있고 프로비저너가 토큰을 요구하는지 확인합니다.
  • 공격 스크립트를 작성하거나 공개하지 않습니다. 목표는 익스플로잇을 만드는 것이 아니라 격리 모델을 이해하는 것입니다.

8. References

1. TL;DR

Yuxi is an agent and knowledge-base platform that can run user-controlled commands in Docker “sandboxes”. In versions from 0.6.0.beta1 up to (but not including) 0.7.1, those sandboxes were not isolated enough from each other or from the platform’s trusted services, according to the GitHub advisory.

  • A low-privileged user who can run commands in their own sandbox could reach other tenants’ sandboxes and the shared internal services.
  • They could also reach a sandbox provisioner management API that required no authentication.
  • No container escape or kernel bug was needed. The sandbox could reach things on the network that it should not have been able to reach.
  • The fix is in 0.7.1. Existing deployments must also rotate any PostgreSQL, Neo4j or MinIO credentials that were still set to documented or shipped defaults. Upgrading the Compose files does not rotate them.

2. Flaw classification

ItemValue
Primary CWECWE-284 Improper Access Control (NVD also lists CWE-77 and CWE-522)
Attack vectorNetwork (CVSS:3.1 AV:N). The attacker is an authenticated user with sandbox command execution, and the attack runs over the internal container network.
Complexity / privilegesLow complexity, low privileges (AC:L / PR:L), no user interaction
ScopeChanged (S:C). A sandbox crosses into other tenants and into platform services.
ImpactCross-tenant disclosure of secrets and files, modification of other tenants’ data and sandbox state, and denial of service by deleting sandboxes. Command execution in the PostgreSQL container is possible if the exposed account is a superuser.
PrerequisitesA Docker Compose deployment with execution-capable sandboxes and the sandbox provisioner. The attacker needs a valid low-privileged account that can run commands in its own sandbox. Some paths also need unchanged shipped default service credentials.
Affected / fixedAffected: >= 0.6.0.beta1 and < 0.7.1. Fixed: 0.7.1.
SeverityCVSS 9.9 Critical (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)

3. Root cause

This is a trust-boundary and network-design problem. It is not a memory-corruption bug.

According to the advisory, the weakness is “insufficient isolation between execution-capable sandboxes and trusted application services”. Several separate gaps combined:

  1. Flat network. Sandboxes could reach other tenants’ sandbox HTTP APIs and the services on the shared application network (PostgreSQL, Neo4j, MinIO and others). The patch notes say the fix gives each sandbox its own network, which implies that before the fix they were not separated this way.
  2. Unauthenticated management plane. The sandbox provisioner’s management API accepted requests without authentication. The patch adds a required SANDBOX_PROVISIONER_TOKEN, which confirms that this requirement was missing before.
  3. Directly exposed sandbox endpoints. Dynamic sandbox ports were published, and the provisioner handed out direct container addresses.
  4. Weak or default credentials (CWE-522). Shipped default credentials for PostgreSQL, Neo4j and MinIO were used where operators had not changed them. The patch removes the production fallback credentials.
  5. Over-privileged database account. If the exposed PostgreSQL account was a superuser, code execution in the database container followed.

The sandbox was meant to be the place where untrusted code runs. The design treated the network around it as trusted, so code running in a sandbox inherited that trust.

The advisory states that changing service passwords alone is not a complete workaround. The cross-tenant sandbox API and unauthenticated provisioner paths do not depend on those service credentials.

4. Exploit flow (conceptual)

This section describes each step as a concept only. It contains no attack input.

  1. The attacker holds a normal low-privileged account. Running commands in their own sandbox is an intended feature, so this step is not itself a flaw.
  2. From inside the sandbox, the attacker looks at what the container network lets it reach. Because of the flat network, other sandboxes, the provisioner and internal services are reachable.
  3. The attacker uses the services that need no credentials or only default ones:
    • The provisioner management API can list, create and delete sandboxes.
    • Other tenants’ sandbox APIs expose environment variables, workspace files and command execution.
    • Shared services can be reached with default credentials where those were never changed.
  4. The attacker collects secrets and files from other tenants, changes their data or sandbox state, or deletes their sandboxes.
  5. In the worst case, the attacker uses a superuser database account to gain command execution in the PostgreSQL container.
  1. own-sandbox access — low-priv user
  2. network discovery — flat network
  3. reach provisioner / peer sandboxes / shared services — no or default auth
  4. cross-tenant data theft, tampering, DoS, DB-container command execution
Conceptual flow — not an executable payload

5. Trigger conditions

  • The deployment is a Docker Compose deployment with the sandbox provisioner and execution-capable sandboxes enabled. The advisory says this is where the issue mainly applies.
  • The version is >= 0.6.0.beta1 and < 0.7.1.
  • The attacker has an authenticated, low-privileged account that can run commands in a sandbox.
  • For the internal-service paths, the shipped default credentials must still be in use. For command execution in the PostgreSQL container, the exposed database account must also be a superuser.
  • Deployments with sandbox functionality completely disabled and internal services independently isolated are not affected by the demonstrated attack path, according to the advisory.
  • The cross-tenant sandbox and provisioner paths do not depend on knowing any administrator, database or MinIO credential.

6. Patch analysis

The patch commit is referenced by the advisory. I could not open it, so no diff is quoted here. This section describes the fix at a conceptual level, using only the advisory’s list of changes:

  • Per-sandbox networks. Every dynamically provisioned sandbox gets its own Docker network. Only the provisioner may join it. This removes the shared path between sandboxes and from sandboxes to application services. It breaks steps 2 and 3 of the flow.
  • No direct sandbox ports. Dynamic sandbox ports are no longer published, and the provisioner returns authenticated proxy URLs instead of direct container addresses. All access goes through one controlled gateway.
  • Provisioner token. All sandbox management and proxy requests now require a deployment-specific SANDBOX_PROVISIONER_TOKEN. This closes the unauthenticated enumerate/create/delete path.
  • No production fallback credentials for PostgreSQL, Neo4j and MinIO, and less unnecessary host-port exposure.
  • Documented credential rotation for existing deployments. This is an operational step. Changing the Compose files does not change passwords already stored in existing data volumes.

The v0.7.1 release notes summarize the same theme: isolated dynamic sandbox networks, a provisioner token, and tighter default credentials. Exact code locations, function names and the token validation logic are not confirmed in public sources.

7. Detection & mitigation

Immediate actions

  • Upgrade to Yuxi 0.7.1 or later.
  • Set a strong, unique SANDBOX_PROVISIONER_TOKEN for your deployment.
  • Rotate PostgreSQL, Neo4j and MinIO credentials that were ever set to documented or shipped defaults. Upgrading does not do this for you.
  • Review and rotate secrets stored in user Agent environments if an untrusted user may previously have had sandbox execution.
  • If you cannot upgrade right away, use the advisory’s workarounds:
    • Disable sandbox execution, or limit Yuxi to fully trusted administrators.
    • Put every sandbox in a network that cannot reach other sandboxes or the application network.
    • Block sandbox access to PostgreSQL, Neo4j, MinIO, Redis and the provisioner.
    • Make the provisioner reachable only from the Yuxi API and worker services.
    • Remove PostgreSQL, MinIO, Neo4j, Redis and provisioner ports from untrusted network interfaces.
  • Do not run the database service with a superuser account for application access. The advisory notes the PostgreSQL command-execution path depends on this.

Detection

  • Check whether sandbox containers share a Docker network with application services or with each other. After the fix, each sandbox should sit on its own network that only the provisioner joins.
  • Check whether the provisioner API answers requests that carry no token.
  • Look in provisioner and service logs for sandbox list, create or delete calls that the Yuxi API did not make. Also look for unexpected sandbox deletions.
  • Look in PostgreSQL, Neo4j and MinIO logs for logins from sandbox container addresses.
  • Look for sandboxes reading from or writing to workspaces that belong to other tenants.
  • Specific indicators of compromise are not confirmed in public sources.

Isolated practice (local Docker lab)

Reproduction must happen only in a local Docker lab that is isolated from the internet, on machines you own, and never against systems you do not control.

  • Build a throwaway lab with an affected version (for example 0.7.0) and a patched version (0.7.1) side by side, with no outbound network access and no real data or real credentials.
  • Learn to read the network layout with defensive tools only, such as docker network inspect. Compare which containers share a network in the two versions.
  • Confirm that in the patched version, sandboxes are on separate networks and the provisioner requires its token.
  • Do not write or publish attack scripts. The goal is to understand the isolation model, not to build an exploit.

8. References