Race condition in memtomem-stm causes duplicate reconnects
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| memtomem | memtomem-stm | 0.1.2 to before 0.1.34 | 0.1.34 | Patch available | CNA |
| — | memtomem-stm (PyPI) | 0.1.2 to before 0.1.34 | 0.1.34 | Patch available | GHSA-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
- 2026-11-20 Threatist record created from CVE-2026-77331
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-21 Alias added: GHSA-72jh-722p-rqr3
- 2026-11-21 Fix available: PyPI/[email protected] · GHSA-72jh-722p-rqr3
- 2026-11-21 CVSS score added · GHSA-72jh-722p-rqr3
- 2026-11-21 Weakness changed · GHSA-72jh-722p-rqr3
- 2026-11-21 5 new references · GHSA-72jh-722p-rqr3
References
More memtomem vulnerabilities
- TI-2026-95938 memtomem-stm surfaced memory can escape Markdown compatibility boundary CVSS 4.0LOW 2.3
Sources
- CVE-2026-77331 · CVE Program
- CVE-2026-77331 · NVD
- FIRST EPSS
- GHSA-72jh-722p-rqr3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences