Intel

AIKIDO-2026-628180

memo-map is vulnerable to Memory safety

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 15, 2026
October 15, 2026

30

CVE Score

Low

Memory safety

Are you affected? Scan for Free

TL;DR

Public iter and keys on MemoMap hand back a &K that outlives the internal Mutex, while the key remains stored inline in the HashMap. A caller who keeps that key reference and then inserts enough new entries to resize the map is left holding a reference to moved or freed memory. MemoMap is also Sync for any Send key and value, so sharing a map whose key or value is not Sync (for example Cell) is a data race. The fix stores each key-value pair in one pinned allocation so those key references stay valid across resizes, and implements Sync only when both the key and the value are Send and Sync.

How do I fix this?

Upgrade the memo-map library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and retain a key reference from iter or keys across an insertion that can resize the map, or share the map across threads when the key or value type is not Sync.

Package

Versions

0.1.0 - 0.3.3

Fixed in 0.3.4

Background info

memo-map is vulnerable to Memory safety in versions 0.1.0 - 0.3.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea