GHSA-f934-5rqf-xx47: OpenClaw: QMD memory_get restricts reads to canonical or indexed memory paths
With the QMD backend enabled, OpenClaw's memory_get tool before 2026.4.15 could read any Markdown file under the workspace root, not just canonical memory files or files QMD had indexed. Anyone or anything able to call memory_get could read those notes. Upgrade the openclaw npm package to 2026.4.15.
Published Apr 17, 2026 · Analysis Oct 30, 2026
What an attacker can do
memory_get is meant to read memory files: the canonical memory locations, or paths that a QMD search returned. In the QMD backend, the read path only checked that the requested file sat inside the workspace. Any *.md file under the configured workspace root passed, even if it was not a memory file and no search had returned it.
The attacker needs access to the memory tool surface. In practice that is an agent session, or a prompt that steers the agent, since the model calls memory_get with a path of its choosing. The CVSS 4.0 vector shows low privileges and low confidentiality impact only. Reads are limited to Markdown files in the workspace, and nothing is written or executed.
The maintainers rate it low in the text, but it breaks the intended memory-path policy. Workspaces often hold design notes, TODO files, runbooks and README files with internal hostnames or credentials pasted into them. A prompt-injected agent could read these and carry the content into its output.
Who is affected
The openclaw npm package below 2026.4.15, when the QMD memory backend is enabled. Versions with a different memory backend are outside the described path. Check your version:
npm ls openclawThe fix commit 37d5971 is in 2026.4.15 and not in 2026.4.14.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.4.15
- Fixed in
- 2026.4.15
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.15:
npm install [email protected]The fix (PR #66026) changes extensions/memory-core/src/memory/qmd-manager.ts. It rejects workspace Markdown paths that are not default memory paths unless they match an indexed QMD workspace read path. Being inside the workspace is no longer enough. Tests in qmd-manager.test.ts cover reads of QMD session search results and the new restriction.
The advisory gives no workaround. Until you upgrade, avoid keeping secrets in Markdown files under the workspace root, and limit which sessions and prompts can reach memory_get.
How to tell if you were hit
Check tool-call logs for memory_get requests whose path is not a canonical memory file and was not returned by an earlier QMD search, such as README.md, notes in other folders or files near credentials. Look for sessions where the agent read workspace Markdown right after processing untrusted content. Where OpenClaw runs under an agent, Beam records agent file access and MCP tool calls, so reads outside the memory locations can be reviewed. After upgrading, such reads are rejected.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The QMD backend memory_get read path accepted arbitrary workspace Markdown paths that were inside the workspace but outside the canonical memory locations or indexed QMD result set.
Impact
When the QMD backend was enabled, a caller with access to memory_get could read arbitrary *.md files under the configured workspace root, even when those files were not canonical memory files and had not been returned by QMD search. Severity remains low because exploitation requires access to the memory tool surface and is limited to workspace Markdown files, but it bypassed the intended memory-path policy.
Affected versions
- Affected:
< 2026.4.15 - Patched:
2026.4.15
Fix
OpenClaw 2026.4.15 restricts QMD reads to canonical memory paths or previously indexed QMD workspace paths. Workspace containment alone is no longer sufficient.
Verified in v2026.4.15:
extensions/memory-core/src/memory/qmd-manager.tsrejects non-default workspace Markdown paths unless they match an indexed QMD workspace read path.extensions/memory-core/src/memory/qmd-manager.test.tscovers QMD session search-result reads and the read-path restriction behavior.
Fix commit included in v2026.4.15 and absent from v2026.4.14:
37d5971db36491d5050efd42c333cbe0b98ed292via PR #66026
Thanks to @zsxsoft, Keen Security Lab, and @qclawer for reporting this issue.
Credited to zsxsoft, KeenSecurityLab, qclawer.
Questions
- What files could be read?
Any *.md file under the configured workspace root. Files outside the workspace and non-Markdown files were not reachable through this path.
- Is 2026.4.14 fixed?
No. The fix commit is in 2026.4.15 and is absent from 2026.4.14.
- Does it need the QMD backend?
Yes. The advisory describes the flaw in the QMD backend's memory_get read path. It applies when that backend is enabled.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
