Description
ai-memory 2.6.0 before 3.3.2 contains a symlink following vulnerability in the ai-memory-wikisync companion that allows local attackers to overwrite arbitrary files by planting symlinks at predictable temporary names. Attackers can place a .wikisync-tmp-<page>.md symlink in a shared destination so atomic_write() truncates and overwrites its target with the victim's privileges.
Affected products and versions
akitaonrails ai-memory2.6.0 – < 3.3.2Fixed in: 3.3.2
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-61 UNIX Symbolic Link (Symlink) Following
References
- github.com/akitaonrails/ai-memory/security/advisories/GHSA-jr85-7366-xrm2 vendor advisory
- github.com/akitaonrails/ai-memory/commit/59616c6a37948afd273c1d416a698abad5a25b0a patch
- github.com/akitaonrails/ai-memory/releases/tag/v3.3.2
- github.com/akitaonrails/ai-memory/blob/v3.3.1/companions/ai-memory-wikisync/src/sync.rs#L3
- www.vulncheck.com/advisories/ai-memory-2.6.0-before-3.3.2-symlink-arbitrary-file-overwrite
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.