Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege access to host
-
DeliveryInvoke JsonMemoryStorage API (createDomain/getMemories/saveMemories)
-
ExploitSupply path traversal sequences in domain or memory identifier
-
ExecutionBypass absent path validation in memoryTools.ts
-
ImpactRead or overwrite arbitrary files within process permissions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local system access with at minimum low-privilege credentials on the host running memory-graph (AV:L, PR:L) - remote unauthenticated exploitation is not possible per the CVSS vector. The attacker must be able to supply input to the JsonMemoryStorage API, either through direct interaction with the memory-graph process, through a shared AI agent session, or by influencing the domain or memory identifiers passed by an AI agent using the tool. No special non-default configuration is required; the flaw is present in the core storage layer for any default deployment. Exploitation is bounded by the filesystem permissions of the process owner - files not readable or writable by that account cannot be accessed via traversal. Containerized deployments with restricted volume mounts significantly limit impact. |
| Impact | The CVSS 4.0 score of 4.8 (Medium) is consistent with the constrained attack surface: local vector (AV:L) and low-privilege requirement (PR:L) mean an attacker must already hold a foothold on the target host. All three impact dimensions - confidentiality, integrity, availability - are rated low with no scope change to subsequent systems (SC:N/SI:N/SA:N), correctly reflecting that traversal is bounded by the OS-level permissions of the memory-graph process. The E:P metric confirms a POC exists, which modestly elevates practical risk above a purely theoretical finding. No EPSS probability data was provided in the available intelligence, so exploitation likelihood cannot be quantified numerically. KEV absence indicates no confirmed widespread exploitation. Real-world priority is low for isolated or single-user deployments; it rises in multi-tenant environments or where the memory-graph process runs under an over-privileged account with broad filesystem read/write access. |
| Exploit ScenarioDerived | A local attacker with a low-privilege shell on the host invokes memory-graph's storage API with a crafted domain or memory identifier containing traversal sequences, such as '../../home/admin/.ssh/authorized_keys', passed to getMemories or saveMemories. Because JsonMemoryStorage constructs the target file path without sanitizing the input, the function reads or overwrites the file at the traversed location using the process's own filesystem permissions. A proof-of-concept demonstrating this traversal is publicly available per the CVSS 4.0 E:P supplemental metric. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 08, 2026
Path traversal in aaronsb memory-graph affects three JsonMemoryStorage functions - createDomain, getMemories, and saveMemories - in src/tools/memoryTools.ts, enabling local low-privilege attackers to escape the intended storage directory and read or write arbitrary files accessible to the process. All rolling-release versions through commit 5cfd238 are affected with no vendor patch issued; the project was notified via GitHub issue #14 but has not responded. A proof-of-concept exploit is publicly available (CVSS 4.0 E:P), and no confirmed active exploitation is listed in CISA KEV.
RemediationAI
No vendor-released patch has been identified at time of analysis - the maintainer was informed via GitHub issue #14 but has not responded. Until an upstream fix is committed, administrators should restrict the OS-level filesystem permissions of the account running memory-graph to only the intended storage directory, preventing traversal from reaching sensitive paths. Deploying memory-graph inside a container (e.g., Docker) with volume mounts limited to the storage directory is a higher-assurance workaround, though it may affect integrations that rely on broader filesystem access. Developers can manually patch src/tools/memoryTools.ts by canonicalizing all input paths with Node.js path.resolve() before file operations and asserting the resolved path begins with the configured base directory - throwing an error on violation. Monitor https://github.com/aaronsb/memory-graph/ for upstream commits addressing this issue.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
memory-graph is a TypeScript-based AI agent memory utility, likely functioning as a Model Context Protocol (MCP) server or local memory backend for AI assistants. Its JsonMemoryStorage class in src/tools/memoryTools.ts handles file I/O for storing memory domains as JSON files on the host filesystem. CWE-22 (Path Traversal) arises when caller-controlled domain names or memory identifiers are used to construct file paths without canonicalization - allowing sequences such as '../../' to escape the configured base storage directory. CPE cpe:2.3:a:aaronsb:memory-graph:*:*:*:*:*:*:*:* confirms all releases are affected; because the project uses a rolling release model, there is no version boundary separating vulnerable from patched code.
Know when Memory Graph gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Local attack vector with low privileges to invoke the storage API; all impacts are low and scope is unchanged - no lateral effect on other systems.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in aaronsb memory-graph up to 5cfd2382778837b9f6399080956eee670d00452c. Affected by this vulnerability is the function JsonMemoryStorage.createDomain/JsonMemoryStorage.getMemories/JsonMemoryStorage.saveMemories of the file src/tools/memoryTools.ts. The manipulation results in path traversal. The attack must be initiated from a local position. This product operates on a rolling release basis, ensuring continuous delivery. Consequently, there are no version details for either affected or updated releases. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-54785
GHSA-4297-h6wq-2qm5
NVD
CVE.org
EPSS
VulDB
Exploit-DB