Read the docs

Race condition in memtomem-stm causes duplicate reconnects

Priority LOW 11CWE-362Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · Low · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

memtomem-stm from 0.1.2 before 0.1.34 is affected. Improper synchronization of a shared resource (CWE-362) lets concurrent recovery after surfacing RPC failures start more than one reconnect for the same session. A cancelled post-reconnect retry can leave the replacement transport reusable after an interrupted protocol exchange. A local user with low privileges can trigger session-state integrity loss or local service degradation.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

Description from the CNA

memtomem-stm is a short-term memory proxy gateway with proactive memory surfacing for AI agents. From 0.1.2 until 0.1.34, concurrent surfacing RPC failures can start more than one reconnect for the same dirty session because concurrent LTM recovery is not uniquely owned by a session generation. Cancellation during a post-reconnect retry can also leave the replacement transport reusable after an interrupted protocol exchange, causing session-state integrity loss or local service degradation. The duplicate-reconnect subcase was introduced in 0.1.24, while the cancellation-recovery subcase affects the broader listed range. This issue is fixed in version 0.1.34.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00272 12th percentileScored 2026-11-30
Fix Fixed memtomem-stm (memtomem): 0.1.34memtomem-stm (PyPI): 0.1.34

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
memtomemmemtomem-stm0.1.2 to before 0.1.340.1.34Patch availableCNA
—memtomem-stm (PyPI)0.1.2 to before 0.1.340.1.34Patch availableGHSA-72jh-722p-rqr3
  • memtomem-stm Vendormemtomem Affected 0.1.2 to before 0.1.34 Fixed in 0.1.34 Patch available CNA
  • memtomem-stm (PyPI) Vendor— Affected 0.1.2 to before 0.1.34 Fixed in 0.1.34 Patch available GHSA-72jh-722p-rqr3

Remediation

Update memtomem-stm to version 0.1.34, the fixed version for both the memtomem and PyPI entries.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

  • Fix · CNA memtomem-stm (memtomem) Fixed in 0.1.34
  • Fix · GHSA-72jh-722p-rqr3 memtomem-stm (PyPI) Fixed in 0.1.34 Advisory →

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-77331
  2. 2026-11-20 CISA SSVC decision points changed
  3. 2026-11-21 Alias added: GHSA-72jh-722p-rqr3
  4. 2026-11-21 Fix available: PyPI/[email protected] · GHSA-72jh-722p-rqr3
  5. 2026-11-21 CVSS score added · GHSA-72jh-722p-rqr3
  6. 2026-11-21 Weakness changed · GHSA-72jh-722p-rqr3
  7. 2026-11-21 5 new references · GHSA-72jh-722p-rqr3

References

  • TI-2026-95938 memtomem-stm surfaced memory can escape Markdown compatibility boundary CVSS 4.0LOW 2.3

Sources