CVE-2026-136625
Predictable wiki-sync staging symlink overwrites outside files
akitaonrails · ai-memory-wikisync
First documented disclosure · Review checkpoint
Summary
A planted hidden temporary-file symlink redirects a wiki sync write outside the destination.
Severity and exploitation evidence
Medium · 5.2/10 · CVSS 4.0. Severity source.
Exploitation not established: Reviewed public sources establish the reported weakness or a controlled demonstration; malicious exploitation against users is not established.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
The old atomic_write used a predictable dotfile and File::create, while directory enumeration skipped hidden entries before checking symlinks.
Conditions required
A user syncs into an untrusted/shared checkout containing a planted symlink, or an attacker can plant that symlink locally.
Potential impact
Truncation and overwrite of files reachable with the syncing user’s privileges.
Affected versions and configurations
CNA: 2.6.0 through versions before 3.3.2; GHSA uses the broader range before 3.3.2.
Fix and mitigation status
3.3.2.
Practical next steps
Upgrade to 3.3.2 or later and avoid syncing into attacker-writable destinations. Inspect sensitive files if an untrusted checkout was synchronized.
Operating lesson
Validate and exclusively create the actual staging file, not just the final destination.
Evidence and limits
Tagged sync.rs delegates to atomic::write_atomic; the tagged helper was inspected for unpredictable names and exclusive creation. CNA CVSS 4.0 is 5.2 and 3.1 is 6.6, while the original GHSA gives 3.1 8.2 with different prerequisites/scope. These are source conflicts, not a single reconciled score. No exploit was executed during this review.
Sources
- CVE authority record
Primary source ·
- Maintainer security advisory
Primary source ·