Ontola atomic-server
Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.30.0, < 0.40.3
Fixed in 0.40.3
Mitigation
Upgrade atomic-server to 0.40.3 or later.
References
- Vendor advisory github.com/ontola/atomic-server/security/advis…
- Patch github.com/ontola/atomic-server/commit/59d067c…
- Release notes github.com/ontola/atomic-server/releases/tag/v…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.